Fix color picker layout problems for some screen sizes

This commit is contained in:
Peter Osterlund 2020-04-07 23:00:44 +02:00
parent d0d6049554
commit 303d535bcc
2 changed files with 5 additions and 2 deletions

View File

@ -24,6 +24,7 @@
android:id="@+id/color_picker_view"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="1.0"
android:tag="landscape" />
<LinearLayout
@ -56,6 +57,7 @@
<net.margaritov.preference.colorpicker.ColorPickerPanelView
android:id="@+id/old_color_panel"
android:layout_weight="1.0"
android:layout_width="fill_parent"
android:layout_height="40dp" />
@ -70,6 +72,7 @@
<net.margaritov.preference.colorpicker.ColorPickerPanelView
android:id="@+id/new_color_panel"
android:layout_weight="1.0"
android:layout_width="fill_parent"
android:layout_height="40dp" />
</LinearLayout>

View File

@ -24,6 +24,7 @@
android:id="@+id/color_picker_view"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="1.0"
android:tag="portrait" />
<EditText
@ -49,7 +50,6 @@
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="40dp"
android:layout_below="@id/color_picker_view"
android:layout_marginBottom="10dp"
android:orientation="horizontal">
@ -71,7 +71,7 @@
<net.margaritov.preference.colorpicker.ColorPickerPanelView
android:id="@+id/new_color_panel"
android:layout_width="0px"
android:layout_height="wrap_content"
android:layout_height="fill_parent"
android:layout_weight="0.5" />
</LinearLayout>
</LinearLayout>