Revision 6f3024ae
Added by Leszek Koltunski over 7 years ago
src/main/java/org/distorted/examples/girl/GirlActivity.java | ||
---|---|---|
60 | 60 |
barSize.setProgress(50); |
61 | 61 |
barHips.setProgress(0); |
62 | 62 |
|
63 |
textSwing.setText("Swing: 0");
|
|
64 |
textSize.setText("Size: 1.0");
|
|
65 |
textHips.setText("Hips: 0");
|
|
63 |
textSwing.setText(getString(R.string.swing_placeholder,0.0f));
|
|
64 |
textSize.setText(getString(R.string.size_placeholder,1.0f));
|
|
65 |
textHips.setText(getString(R.string.hips_placeholder,0.0f));
|
|
66 | 66 |
} |
67 | 67 |
|
68 | 68 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
... | ... | |
108 | 108 |
{ |
109 | 109 |
case R.id.girlSeekSwing: v = progress/5; |
110 | 110 |
view.getRenderer().setSwing(v); |
111 |
textSwing.setText("Swing: "+v);
|
|
111 |
textSwing.setText(getString(R.string.swing_placeholder,v));
|
|
112 | 112 |
break; |
113 |
case R.id.girlSeekSize : if( progress> 50) |
|
114 |
{ |
|
115 |
s = (progress-50)/16.0f + 1.0f; |
|
116 |
} |
|
117 |
else |
|
118 |
{ |
|
119 |
s = 0.015f*progress + 0.25f; |
|
120 |
} |
|
113 |
case R.id.girlSeekSize : if( progress> 50) s = (progress-50)/16.0f + 1.0f; |
|
114 |
else s = 0.015f*progress + 0.25f; |
|
121 | 115 |
view.getRenderer().setSize(s); |
122 |
textSize.setText("Size: "+(((int)(s*10))/10.0f));
|
|
116 |
textSize.setText(getString(R.string.size_placeholder,(((int)(s*10))/10.0f)));
|
|
123 | 117 |
break; |
124 | 118 |
case R.id.girlSeekHips : v = progress/5; |
125 | 119 |
view.getRenderer().setHips(v); |
126 |
textHips.setText("Hips: "+v);
|
|
120 |
textHips.setText(getString(R.string.hips_placeholder,v));
|
|
127 | 121 |
break; |
128 | 122 |
} |
129 | 123 |
} |
Also available in: Unified diff
Fix a lot of Lint warnings in the apps.