Revision 6f3024ae
Added by Leszek Koltunski over 7 years ago
src/main/java/org/distorted/examples/deform/DeformActivity.java | ||
---|---|---|
53 | 53 |
|
54 | 54 |
barR.setProgress(50); |
55 | 55 |
|
56 |
textR.setText("Radius: 50");
|
|
56 |
textR.setText(getString(R.string.radius_placeholder,"50"));
|
|
57 | 57 |
|
58 | 58 |
RadioButton effect = (RadioButton)findViewById(R.id.deformDistortButton); |
59 | 59 |
effect.setChecked(true); |
... | ... | |
127 | 127 |
{ |
128 | 128 |
case R.id.deformSeekRadius: DeformSurfaceView view = (DeformSurfaceView) this.findViewById(R.id.deformSurfaceView); |
129 | 129 |
view.getRenderer().setRegionRadius(progress); |
130 |
textR.setText("Radius: "+(progress<100 ? progress: "Infinity"));
|
|
130 |
textR.setText(getString(R.string.radius_placeholder,(progress<100 ? (""+progress): "Infinity") ));
|
|
131 | 131 |
break; |
132 | 132 |
} |
133 | 133 |
} |
Also available in: Unified diff
Fix a lot of Lint warnings in the apps.