summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohn Hoford <hoford@google.com>2013-09-25 14:16:20 -0700
committerAndroid Git Automerger <android-git-automerger@android.com>2013-09-25 14:16:20 -0700
commitab41218d4fe965d367e99b5db93ae30d3df483ae (patch)
treee0b1018b47c5cfb3aa980f1663aabd3d55f53ff3
parent21b0e557af41bd97bcc678fe10859c072be3a9dd (diff)
parent375a5f379a2115a244560d8ede4337ffde47b80c (diff)
downloadandroid_packages_apps_Gallery2-ab41218d4fe965d367e99b5db93ae30d3df483ae.tar.gz
android_packages_apps_Gallery2-ab41218d4fe965d367e99b5db93ae30d3df483ae.tar.bz2
android_packages_apps_Gallery2-ab41218d4fe965d367e99b5db93ae30d3df483ae.zip
am 375a5f37: am 14b2d1d8: am c0b8a86e: Merge "fix layout issues with border" into gb-ub-photos-carlsbad
* commit '375a5f379a2115a244560d8ede4337ffde47b80c': fix layout issues with border
-rw-r--r--res/layout-land/filtershow_color_border_ui.xml76
-rw-r--r--src/com/android/gallery3d/filtershow/editors/EditorColorBorderTabletUI.java11
2 files changed, 40 insertions, 47 deletions
diff --git a/res/layout-land/filtershow_color_border_ui.xml b/res/layout-land/filtershow_color_border_ui.xml
index e65c3485a..9945d9d63 100644
--- a/res/layout-land/filtershow_color_border_ui.xml
+++ b/res/layout-land/filtershow_color_border_ui.xml
@@ -37,13 +37,6 @@
android:orientation="vertical"
android:visibility="visible">
- <Button
- android:id="@+id/clearButton"
- android:layout_width="match_parent"
- android:layout_height="0dp"
- android:layout_weight="1"
- android:text="@string/color_border_clear"/>
-
<GridLayout
android:layout_width="match_parent"
android:layout_height="0dp"
@@ -174,68 +167,79 @@
android:layout_marginLeft="1dp"
android:layout_marginRight="1dp">
- <HorizontalScrollView
- android:id="@+id/scrollList"
- android:layout_width="0dp"
- android:layout_weight="5"
- android:layout_height="match_parent"
- android:scrollbars="none">
+ <LinearLayout
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:orientation="horizontal"
+ android:layout_marginBottom="10dp"
+ android:layout_marginTop="10dp"
+ android:layout_marginLeft="1dp"
+ android:layout_marginRight="1dp">
<LinearLayout
android:id="@+id/listColors"
+ android:layout_weight="5"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="horizontal">
<Button
android:id="@+id/draw_color_button01"
- android:layout_width="0dip"
- android:layout_height="wrap_content"
+ android:layout_width="0dp"
android:layout_weight="1"
+ android:layout_height="wrap_content"
android:background="@drawable/filtershow_color_picker_circle"
- android:layout_margin="2dp"/>
+ android:layout_marginRight="4dp"/>
<Button
android:id="@+id/draw_color_button02"
- android:layout_width="0dip"
- android:layout_height="wrap_content"
+ android:layout_width="0dp"
android:layout_weight="1"
+ android:layout_height="wrap_content"
android:background="@drawable/filtershow_color_picker_circle"
- android:layout_margin="2dp"/>
+ android:layout_marginRight="4dp"/>
<Button
android:id="@+id/draw_color_button03"
- android:layout_width="0dip"
- android:layout_height="wrap_content"
+ android:layout_width="0dp"
android:layout_weight="1"
+ android:layout_height="wrap_content"
android:background="@drawable/filtershow_color_picker_circle"
- android:layout_margin="2dp"/>
+ android:layout_marginRight="4dp"/>
<Button
android:id="@+id/draw_color_button04"
- android:layout_width="0dip"
- android:layout_height="wrap_content"
+ android:layout_width="0dp"
android:layout_weight="1"
+ android:layout_height="wrap_content"
android:background="@drawable/filtershow_color_picker_circle"
- android:layout_margin="2dp"/>
+ android:layout_marginRight="4dp"/>
<Button
android:id="@+id/draw_color_button05"
- android:layout_width="0dip"
- android:layout_height="wrap_content"
+ android:layout_width="0dp"
android:layout_weight="1"
+ android:layout_height="wrap_content"
android:background="@drawable/filtershow_color_picker_circle"
- android:layout_margin="2dp"/>
+ android:layout_marginRight="4dp"/>
</LinearLayout>
- </HorizontalScrollView>
+ <FrameLayout
+ android:background="@color/background_main_toolbar"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_gravity="center">
+ <Button
+ android:id="@+id/draw_color_popupbutton"
+ android:layout_width="48dp"
+ android:layout_gravity="center"
+ android:layout_height="wrap_content"
+ android:background="@drawable/ic_action_overflow"
+ />
+ </FrameLayout>
+ </LinearLayout>
+
+
- <Button
- android:id="@+id/draw_color_popupbutton"
- android:layout_width="0dp"
- android:layout_height="match_parent"
- android:layout_weight="1"
- android:background="@android:drawable/ic_menu_more"
- android:layout_margin="1dp"/>
</LinearLayout>
</LinearLayout>
diff --git a/src/com/android/gallery3d/filtershow/editors/EditorColorBorderTabletUI.java b/src/com/android/gallery3d/filtershow/editors/EditorColorBorderTabletUI.java
index 0b2ae37a0..9f1a11b58 100644
--- a/src/com/android/gallery3d/filtershow/editors/EditorColorBorderTabletUI.java
+++ b/src/com/android/gallery3d/filtershow/editors/EditorColorBorderTabletUI.java
@@ -102,22 +102,11 @@ public class EditorColorBorderTabletUI {
mCBSizeSeekBar = (SeekBar) lp.findViewById(R.id.colorBorderSizeSeekBar);
mCBSizeValue = (TextView) lp.findViewById(R.id.colorBorderSizeValue);
- setupClearButton(lp);
setupCBSizeSeekBar(lp);
setupCBCornerSizeSeekBar(lp);
setupColor(lp, res);
}
- private void setupClearButton(LinearLayout lp) {
- Button clearButton = (Button) lp.findViewById(R.id.clearButton);
- clearButton.setOnClickListener(new View.OnClickListener() {
- @Override
- public void onClick(View view) {
- mEditorDraw.clearFrame();
- }
- });
- }
-
private void setupCBSizeSeekBar(LinearLayout lp) {
mCBSizeSeekBar.setOnSeekBarChangeListener(new SeekBar.OnSeekBarChangeListener() {
@Override