From 90ace7d8025efbfd72cf4887c693578797e0488c Mon Sep 17 00:00:00 2001 From: sonora Date: Thu, 15 Jun 2017 17:52:14 +0200 Subject: [PATCH] adjust button size --- .../src/net/osmand/plus/development/TestVoiceActivity.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/OsmAnd/src/net/osmand/plus/development/TestVoiceActivity.java b/OsmAnd/src/net/osmand/plus/development/TestVoiceActivity.java index 5f9c7c189a..216b7241c1 100644 --- a/OsmAnd/src/net/osmand/plus/development/TestVoiceActivity.java +++ b/OsmAnd/src/net/osmand/plus/development/TestVoiceActivity.java @@ -293,7 +293,12 @@ public class TestVoiceActivity extends OsmandActionBarActivity { button.setTransformationMethod(null); //or else button text is all upper case button.setText(description); button.setLayoutParams(new LayoutParams(LayoutParams.FILL_PARENT, LayoutParams.WRAP_CONTENT)); - button.setPadding(10, 5, 10, 2); + if (!description.startsWith("\u25BA (")) { + // Section headline buttons + button.setPadding(60, 20, 60, 5); + } else { + button.setPadding(10, 5, 10, 5); + } if (description.startsWith("\u25BA (11.1)")) { infoButton = button; }