Leftalign text
This commit is contained in:
parent
4535a6d438
commit
40491f2944
1 changed files with 1 additions and 0 deletions
|
@ -229,6 +229,7 @@ public class TestVoiceActivity extends OsmandActionBarActivity {
|
||||||
|
|
||||||
public void addButton(ViewGroup layout, String description, final CommandBuilder builder){
|
public void addButton(ViewGroup layout, String description, final CommandBuilder builder){
|
||||||
Button button = new Button(this);
|
Button button = new Button(this);
|
||||||
|
button.setGravity(Gravity.LEFT);
|
||||||
button.setText(description);
|
button.setText(description);
|
||||||
button.setLayoutParams(new LayoutParams(LayoutParams.FILL_PARENT, LayoutParams.WRAP_CONTENT));
|
button.setLayoutParams(new LayoutParams(LayoutParams.FILL_PARENT, LayoutParams.WRAP_CONTENT));
|
||||||
button.setPadding(10, 5, 10, 2);
|
button.setPadding(10, 5, 10, 2);
|
||||||
|
|
Loading…
Reference in a new issue