diff options
| author | John Hoford <hoford@google.com> | 2013-09-24 16:55:58 -0700 |
|---|---|---|
| committer | John Hoford <hoford@google.com> | 2013-09-24 16:56:39 -0700 |
| commit | e7c3060c9bdc3def890d4e6f6c05c7629269f83f (patch) | |
| tree | 05c782596b3e31888d5feb7f3a132e2da6c56d8b | |
| parent | 59e93986efb957b361a03ad08033f169c958a184 (diff) | |
| download | android_packages_apps_Gallery2-e7c3060c9bdc3def890d4e6f6c05c7629269f83f.tar.gz android_packages_apps_Gallery2-e7c3060c9bdc3def890d4e6f6c05c7629269f83f.tar.bz2 android_packages_apps_Gallery2-e7c3060c9bdc3def890d4e6f6c05c7629269f83f.zip | |
fix layout issues with border
Change-Id: I92e7a86524a40f379eaa39af4b56500c33e97423
| -rw-r--r-- | res/layout-land/filtershow_color_border_ui.xml | 76 | ||||
| -rw-r--r-- | src/com/android/gallery3d/filtershow/editors/EditorColorBorderTabletUI.java | 11 |
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 |
