make buttons not resize weirdly with long strings

This commit is contained in:
Nathan Freitas 2015-04-11 21:19:42 -04:00
parent 421764bf33
commit 3c6f173ede
1 changed files with 8 additions and 2 deletions

View File

@ -172,28 +172,34 @@
android:background="@drawable/button"
android:layout_margin="3dp"
android:ellipsize="end"
android:singleLine="true"
/>
<ToggleButton
android:id="@+id/btnVPN"
android:layout_width="wrap_content"
android:layout_width="80dp"
android:layout_height="wrap_content"
android:textOff="@string/menu_vpn"
android:textOn="@string/menu_vpn"
android:background="@drawable/toggle"
android:layout_margin="3dp"
android:ellipsize="end"
android:singleLine="true"
/>
<ToggleButton
android:id="@+id/btnBridges"
android:layout_width="wrap_content"
android:layout_width="80dp"
android:layout_height="wrap_content"
android:textOff="@string/bridges"
android:textOn="@string/bridges"
android:background="@drawable/toggle"
android:layout_margin="3dp"
android:ellipsize="end"
android:singleLine="true"
/>
</LinearLayout>