Home
last modified time | relevance | path

Searched refs:UI_BAR (Results 1 – 1 of 1) sorted by relevance

/development/samples/LunarLander/src/com/example/android/lunarlander/
DLunarView.java87 public static final int UI_BAR = 100; // width of the bar(s) field in LunarView.LunarThread
632 int fuelWidth = (int) (UI_BAR * mFuel / PHYS_FUEL_MAX); in doDraw()
638 int speedWidth = (int) (UI_BAR * speed / PHYS_SPEED_MAX); in doDraw()
641 mScratchRect.set(4 + UI_BAR + 4, 4, in doDraw()
642 4 + UI_BAR + 4 + speedWidth, 4 + UI_BAR_HEIGHT); in doDraw()
647 mScratchRect.set(4 + UI_BAR + 4, 4, in doDraw()
648 4 + UI_BAR + 4 + speedWidth, 4 + UI_BAR_HEIGHT); in doDraw()
650 int goalWidth = (UI_BAR * mGoalSpeed / PHYS_SPEED_MAX); in doDraw()
651 mScratchRect.set(4 + UI_BAR + 4, 4, 4 + UI_BAR + 4 + goalWidth, in doDraw()