Create DialogButton and DialogButtonSpacer styles.

Modify mytracks_send_to_google.xml dialog to use these styles.
This commit is contained in:
Jimmy Shih
2011-09-15 11:20:20 -07:00
parent e4da671cbc
commit 7134edf2f2
2 changed files with 22 additions and 22 deletions
@@ -135,34 +135,16 @@ limitations under the License.
android:paddingRight="2dip"
android:paddingTop="4dip">
<!-- left spacer -->
<LinearLayout
android:layout_height="wrap_content"
android:layout_weight="0.25"
android:layout_width="0dip"
android:orientation="horizontal"
android:visibility="gone"/>
<LinearLayout style="@style/DialogButtonSpacer"/>
<Button android:id="@+id/sendtogoogle_cancel"
android:layout_gravity="left"
android:layout_height="48dip"
android:layout_weight="1"
android:layout_width="0dip"
android:maxLines="2"
android:text="@string/cancel"
android:textSize="14dip"/>
style="@style/DialogButton"/>
<Button android:id="@+id/sendtogoogle_send_now"
android:layout_gravity="right"
android:layout_height="48dip"
android:layout_weight="1"
android:layout_width="0dip"
android:maxLines="2"
android:text="@string/sendtogoogle_send_now"
android:textSize="14dip"/>
style="@style/DialogButton"/>
<!-- right spacer -->
<LinearLayout
android:layout_height="wrap_content"
android:layout_weight="0.25"
android:layout_width="0dip"
android:orientation="horizontal"
android:visibility="gone"/>
<LinearLayout style="@style/DialogButtonSpacer"/>
</LinearLayout>
</LinearLayout>
+18
View File
@@ -85,4 +85,22 @@ limitations under the License.
<style name="WidgetText.Register">
<item name="android:width">160px</item>
</style>
<!-- The style for the buttons on the bottom of a dialog. -->
<style name="DialogButton">
<item name="android:layout_height">48dip</item>
<item name="android:layout_weight">1</item>
<item name="android:layout_width">0dip</item>
<item name="android:maxLines">2</item>
<item name="android:textSize">14dip</item>
</style>
<!-- The style for the spacer on the left and right of the dialog buttons. -->
<style name="DialogButtonSpacer">
<item name="android:layout_height">wrap_content</item>
<item name="android:layout_weight">0.25</item>
<item name="android:layout_width">0dip</item>
<item name="android:orientation">horizontal</item>
<item name="android:visibility">gone</item>
</style>
</resources>