OSDN Git Service

Fix slider layout
authornicolasroard <nicolasroard@google.com>
Tue, 23 Oct 2012 22:25:39 +0000 (15:25 -0700)
committernicolasroard <nicolasroard@google.com>
Tue, 23 Oct 2012 22:26:36 +0000 (15:26 -0700)
bug:7383094
Change-Id: I271728577e5a9fa4e1dbff354b37aee5d2aefb5c

res/layout/filtershow_activity.xml

index 9ccb755..6cebb36 100644 (file)
                 android:scaleType="centerInside"
                 android:src="@drawable/filtershow_button_show_original" />
                  -->
-            <SeekBar
-                android:id="@+id/filterSeekBar"
-                android:layout_width="match_parent"
-                android:layout_height="wrap_content"
-                android:layout_gravity="bottom"
-                android:padding="16dip"
-                android:visibility="gone" />
+
+            <com.android.gallery3d.filtershow.CenteredLinearLayout
+              xmlns:custom="http://schemas.android.com/apk/res/com.android.gallery3d"
+              android:layout_width="match_parent"
+              android:layout_height="wrap_content"
+              android:layout_gravity="center_horizontal|bottom"
+              android:background="@android:color/transparent"
+              custom:max_width="600dip"
+              android:orientation="vertical">
+
+              <SeekBar
+                  android:id="@+id/filterSeekBar"
+                  android:layout_width="match_parent"
+                  android:layout_height="wrap_content"
+                  android:layout_gravity="bottom"
+                  android:padding="16dip"
+                  android:visibility="gone" />
+
+            </com.android.gallery3d.filtershow.CenteredLinearLayout>
         </FrameLayout>
 
         <com.android.gallery3d.filtershow.CenteredLinearLayout