OSDN Git Service

Set width of filmstrip/grid spinner to wrap content
authorBobby Georgescu <georgescu@google.com>
Wed, 10 Oct 2012 18:12:14 +0000 (11:12 -0700)
committerBobby Georgescu <georgescu@google.com>
Wed, 10 Oct 2012 18:12:14 +0000 (11:12 -0700)
Bug: 7322464
Change-Id: I273370a212a2b63e195cae11b48b96191672e996

res/layout/action_bar_two_line_text.xml

index 37cb375..aeb9907 100644 (file)
@@ -17,7 +17,7 @@
     android:paddingLeft="18dp"
     android:paddingRight="18dp"
     android:background="?android:attr/activatedBackgroundIndicator"
-    android:layout_width="fill_parent"
+    android:layout_width="wrap_content"
     android:layout_height="wrap_content"
     android:minHeight="?android:attr/listPreferredItemHeight"
     android:mode="twoLine"
@@ -25,7 +25,7 @@
 >
     <TextView xmlns:android="http://schemas.android.com/apk/res/android"
         android:id="@android:id/text1"
-        android:layout_width="match_parent"
+        android:layout_width="wrap_content"
         android:layout_height="wrap_content"
         android:singleLine="true"
         android:ellipsize="end"
@@ -35,7 +35,7 @@
     />
     <TextView xmlns:android="http://schemas.android.com/apk/res/android"
         android:id="@android:id/text2"
-        android:layout_width="match_parent"
+        android:layout_width="wrap_content"
         android:layout_height="wrap_content"
         android:gravity="bottom"
         android:textAppearance="?android:attr/textAppearanceSmall"