Fix buttons so that they can support 2 lines of text.

This commit is contained in:
Jimmy Shih
2012-09-06 14:53:59 -07:00
parent eef7279319
commit 868a42f106
7 changed files with 14 additions and 0 deletions
+2
View File
@@ -17,10 +17,12 @@ limitations under the License.
<merge xmlns:android="http://schemas.android.com/apk/res/android" >
<Button
android:id="@+id/help_about"
android:layout_gravity="left"
android:text="@string/help_about"
style="@style/BottomButton" />
<Button
android:id="@+id/help_ok"
android:layout_gravity="right"
android:text="@string/generic_ok"
style="@style/BottomButton" />
</merge>
@@ -17,9 +17,11 @@ limitations under the License.
<merge xmlns:android="http://schemas.android.com/apk/res/android" >
<Button
android:id="@+id/marker_edit_cancel"
android:layout_gravity="left"
android:text="@string/generic_cancel"
style="@style/BottomButton" />
<Button
android:id="@+id/marker_edit_done"
android:layout_gravity="right"
style="@style/BottomButton" />
</merge>
@@ -17,10 +17,12 @@ limitations under the License.
<merge xmlns:android="http://schemas.android.com/apk/res/android" >
<Button
android:id="@+id/track_edit_cancel"
android:layout_gravity="left"
android:text="@string/generic_cancel"
style="@style/BottomButton" />
<Button
android:id="@+id/track_edit_save"
android:layout_gravity="right"
android:text="@string/generic_save"
style="@style/BottomButton" />
</merge>
+2
View File
@@ -17,10 +17,12 @@ limitations under the License.
<merge xmlns:android="http://schemas.android.com/apk/res/android" >
<Button
android:id="@+id/help_ok"
android:layout_gravity="left"
android:text="@string/generic_ok"
style="@style/BottomButton" />
<Button
android:id="@+id/help_about"
android:layout_gravity="right"
android:text="@string/help_about"
style="@style/BottomButton" />
</merge>
@@ -17,9 +17,11 @@ limitations under the License.
<merge xmlns:android="http://schemas.android.com/apk/res/android" >
<Button
android:id="@+id/marker_edit_done"
android:layout_gravity="left"
style="@style/BottomButton" />
<Button
android:id="@+id/marker_edit_cancel"
android:layout_gravity="right"
android:text="@string/generic_cancel"
style="@style/BottomButton" />
</merge>
@@ -17,10 +17,12 @@ limitations under the License.
<merge xmlns:android="http://schemas.android.com/apk/res/android" >
<Button
android:id="@+id/track_edit_save"
android:layout_gravity="left"
android:text="@string/generic_save"
style="@style/BottomButton" />
<Button
android:id="@+id/track_edit_cancel"
android:layout_gravity="right"
android:text="@string/generic_cancel"
style="@style/BottomButton" />
</merge>
+2
View File
@@ -24,12 +24,14 @@ limitations under the License.
<item name="android:layout_height">wrap_content</item>
<item name="android:layout_weight">1</item>
<item name="android:layout_width">0dp</item>
<item name="android:maxLines">2</item>
</style>
<!-- The style for the bottom button bar -->
<style name="BottomButtonBar" parent="@android:style/DeviceDefault.ButtonBar">
<item name="android:layout_height">wrap_content</item>
<item name="android:layout_width">fill_parent</item>
<item name="android:orientation">horizontal</item>
<item name="android:measureWithLargestChild">true</item>
</style>
<!-- The style for choose upload service check box -->
<style name="ChooseUploadServiceCheckBox" parent="@style/TextMedium">