OSDN Git Service

AI 145861: am: CL 145578 Tweak buttons in ChooseLockPatternTutorial to accomodate...
authorJim Miller <>
Mon, 13 Apr 2009 15:57:57 +0000 (08:57 -0700)
committerThe Android Open Source Project <initial-contribution@android.com>
Mon, 13 Apr 2009 15:57:57 +0000 (08:57 -0700)
  Original author: jaggies
  Merged from: //branches/cupcake/...

Automated import of CL 145861

res/layout/choose_lock_pattern_example.xml
res/layout/choose_lock_pattern_tutorial.xml

index b2d32e6..d1e816c 100644 (file)
         
         <Button android:id="@+id/skip_button"
             android:layout_height="wrap_content"
-            android:layout_width="0dip"
-            android:layout_weight="1"
+            android:layout_width="140dip"
+            android:ellipsize="marquee"
+            android:singleLine="true"
             android:text="@string/skip_button_label"
         />
       
+        <!-- Placeholder to get blank space between the two buttons -->
         <View
             android:visibility="invisible"
             android:layout_height="0dip"
-            android:layout_width="0dip"
-            android:layout_weight="1"
-        />
-
+            android:layout_width="1dip"
+            android:layout_weight="1" />
+            
         <Button android:id="@+id/next_button"
             android:layout_height="wrap_content"
-            android:layout_width="0dip"
-            android:layout_weight="1"
+            android:layout_width="140dip"
+            android:ellipsize="marquee"
+            android:singleLine="true"
             android:drawableRight="@drawable/ic_btn_next"
             android:drawablePadding="3dip"
             android:text="@string/next_button_label"
index 47af50b..8eadc01 100644 (file)
 
         <Button android:id="@+id/skip_button"
             android:layout_height="wrap_content"
-            android:layout_width="0dip"
-            android:layout_weight="1"
+            android:layout_width="140dip"
+            android:ellipsize="marquee"
+            android:singleLine="true"
             android:text="@string/skip_button_label"
         />
         
+        <!-- Placeholder to get blank space between the two buttons -->
         <View
             android:visibility="invisible"
             android:layout_height="0dip"
-            android:layout_width="0dip"
-            android:layout_weight="1"
-        />
-
+            android:layout_width="1dip"
+            android:layout_weight="1" />
+        
         <Button android:id="@+id/next_button"
             android:layout_height="wrap_content"
-            android:layout_width="0dip"
-            android:layout_weight="1"
+            android:layout_width="140dip"
             android:drawableRight="@drawable/ic_btn_next"
             android:drawablePadding="3dip"
+            android:ellipsize="marquee"
+            android:singleLine="true"
             android:text="@string/next_button_label"
         />