|
@@ -1,70 +1,65 @@
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
-<android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
|
+<merge xmlns:android="http://schemas.android.com/apk/res/android"
|
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
|
+ xmlns:tools="http://schemas.android.com/tools"
|
|
|
+ tools:parentTag="android.widget.HorizontalScrollView"
|
|
|
android:layout_width="match_parent"
|
|
|
- android:layout_height="match_parent"
|
|
|
- android:background="@android:color/white">
|
|
|
+ android:layout_height="wrap_content">
|
|
|
|
|
|
- <com.kdanmobile.reader.screen.view.ColorOvalView
|
|
|
- android:id="@+id/colorSelect_column1"
|
|
|
- android:layout_width="24dp"
|
|
|
- android:layout_height="24dp"
|
|
|
- app:color="#d0021b"
|
|
|
- app:layout_constraintLeft_toLeftOf="parent"
|
|
|
- app:layout_constraintRight_toLeftOf="@id/colorSelect_column2" />
|
|
|
+ <LinearLayout
|
|
|
+ android:orientation="horizontal"
|
|
|
+ android:gravity="center"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content">
|
|
|
|
|
|
- <com.kdanmobile.reader.screen.view.ColorOvalView
|
|
|
- android:id="@+id/colorSelect_column2"
|
|
|
- android:layout_width="24dp"
|
|
|
- android:layout_height="24dp"
|
|
|
- app:color="#f5a623"
|
|
|
- app:layout_constraintLeft_toRightOf="@id/colorSelect_column1"
|
|
|
- app:layout_constraintRight_toLeftOf="@id/colorSelect_column3" />
|
|
|
+ <com.kdanmobile.reader.screen.view.ColorOvalView
|
|
|
+ android:id="@+id/colorSelect_column1"
|
|
|
+ style="@style/ReaderColorSelectorItemStyle"
|
|
|
+ app:color="@color/reader_color_selector_color_1" />
|
|
|
|
|
|
- <com.kdanmobile.reader.screen.view.ColorOvalView
|
|
|
- android:id="@+id/colorSelect_column3"
|
|
|
- android:layout_width="24dp"
|
|
|
- android:layout_height="24dp"
|
|
|
- app:color="#f8e71c"
|
|
|
- app:layout_constraintLeft_toRightOf="@id/colorSelect_column2"
|
|
|
- app:layout_constraintRight_toLeftOf="@id/colorSelect_column4" />
|
|
|
+ <com.kdanmobile.reader.screen.view.ColorOvalView
|
|
|
+ android:id="@+id/colorSelect_column2"
|
|
|
+ style="@style/ReaderColorSelectorItemStyle"
|
|
|
+ app:color="@color/reader_color_selector_color_2" />
|
|
|
|
|
|
- <com.kdanmobile.reader.screen.view.ColorOvalView
|
|
|
- android:id="@+id/colorSelect_column4"
|
|
|
- android:layout_width="24dp"
|
|
|
- android:layout_height="24dp"
|
|
|
- app:color="#8b572a"
|
|
|
- app:layout_constraintLeft_toRightOf="@id/colorSelect_column3"
|
|
|
- app:layout_constraintRight_toLeftOf="@id/colorSelect_column5" />
|
|
|
+ <com.kdanmobile.reader.screen.view.ColorOvalView
|
|
|
+ android:id="@+id/colorSelect_column3"
|
|
|
+ style="@style/ReaderColorSelectorItemStyle"
|
|
|
+ app:color="@color/reader_color_selector_color_3" />
|
|
|
|
|
|
- <com.kdanmobile.reader.screen.view.ColorOvalView
|
|
|
- android:id="@+id/colorSelect_column5"
|
|
|
- android:layout_width="24dp"
|
|
|
- android:layout_height="24dp"
|
|
|
- app:color="#7ed321"
|
|
|
- app:layout_constraintLeft_toRightOf="@id/colorSelect_column4"
|
|
|
- app:layout_constraintRight_toLeftOf="@id/colorSelect_column6" />
|
|
|
+ <com.kdanmobile.reader.screen.view.ColorOvalView
|
|
|
+ android:id="@+id/colorSelect_column4"
|
|
|
+ style="@style/ReaderColorSelectorItemStyle"
|
|
|
+ app:color="@color/reader_color_selector_color_4" />
|
|
|
|
|
|
- <com.kdanmobile.reader.screen.view.ColorOvalView
|
|
|
- android:id="@+id/colorSelect_column6"
|
|
|
- android:layout_width="24dp"
|
|
|
- android:layout_height="24dp"
|
|
|
- app:color="#417505"
|
|
|
- app:layout_constraintLeft_toRightOf="@id/colorSelect_column5"
|
|
|
- app:layout_constraintRight_toLeftOf="@id/colorSelect_column7" />
|
|
|
+ <com.kdanmobile.reader.screen.view.ColorOvalView
|
|
|
+ android:id="@+id/colorSelect_column5"
|
|
|
+ style="@style/ReaderColorSelectorItemStyle"
|
|
|
+ app:color="@color/reader_color_selector_color_5" />
|
|
|
|
|
|
- <com.kdanmobile.reader.screen.view.ColorOvalView
|
|
|
- android:id="@+id/colorSelect_column7"
|
|
|
- android:layout_width="24dp"
|
|
|
- android:layout_height="24dp"
|
|
|
- app:color="#4a90e2"
|
|
|
- app:layout_constraintLeft_toRightOf="@id/colorSelect_column6"
|
|
|
- app:layout_constraintRight_toLeftOf="@id/colorSelect_column8" />
|
|
|
+ <com.kdanmobile.reader.screen.view.ColorOvalView
|
|
|
+ android:id="@+id/colorSelect_column6"
|
|
|
+ style="@style/ReaderColorSelectorItemStyle"
|
|
|
+ app:color="@color/reader_color_selector_color_6" />
|
|
|
|
|
|
- <com.kdanmobile.reader.screen.view.ColorOvalView
|
|
|
- android:id="@+id/colorSelect_column8"
|
|
|
- android:layout_width="24dp"
|
|
|
- android:layout_height="24dp"
|
|
|
- app:layout_constraintLeft_toRightOf="@id/colorSelect_column7"
|
|
|
- app:layout_constraintRight_toRightOf="parent"/>
|
|
|
-</android.support.constraint.ConstraintLayout>
|
|
|
+ <com.kdanmobile.reader.screen.view.ColorOvalView
|
|
|
+ android:id="@+id/colorSelect_column7"
|
|
|
+ style="@style/ReaderColorSelectorItemStyle"
|
|
|
+ app:color="@color/reader_color_selector_color_7" />
|
|
|
+
|
|
|
+ <com.kdanmobile.reader.screen.view.ColorOvalView
|
|
|
+ android:id="@+id/colorSelect_column8"
|
|
|
+ style="@style/ReaderColorSelectorItemStyle"
|
|
|
+ app:color="@color/reader_color_selector_color_8" />
|
|
|
+
|
|
|
+ <com.kdanmobile.reader.screen.view.ColorOvalView
|
|
|
+ android:id="@+id/colorSelect_column9"
|
|
|
+ style="@style/ReaderColorSelectorItemStyle"
|
|
|
+ app:color="@color/reader_color_selector_color_9" />
|
|
|
+
|
|
|
+ <com.kdanmobile.reader.screen.view.ColorOvalView
|
|
|
+ android:id="@+id/colorSelect_column10"
|
|
|
+ style="@style/ReaderColorSelectorItemStyle"
|
|
|
+ app:color="@color/reader_color_selector_color_10" />
|
|
|
+ </LinearLayout>
|
|
|
+</merge>
|