|
@@ -1,25 +1,36 @@
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
-<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
|
+<android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
|
android:layout_width="wrap_content"
|
|
|
android:layout_height="wrap_content"
|
|
|
+ xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
|
android:orientation="vertical">
|
|
|
<EditText
|
|
|
android:id="@+id/etv_text"
|
|
|
- android:layout_width="800dp"
|
|
|
- android:layout_height="200dp"/>
|
|
|
- <LinearLayout
|
|
|
- android:layout_width="match_parent"
|
|
|
+ android:layout_width="850dp"
|
|
|
+ android:layout_height="200dp"
|
|
|
+ app:layout_constraintTop_toTopOf="parent"
|
|
|
+ app:layout_constraintLeft_toLeftOf="parent"/>
|
|
|
+ <android.support.constraint.ConstraintLayout
|
|
|
+ android:layout_width="0dp"
|
|
|
android:layout_height="46dp"
|
|
|
android:background="#212121"
|
|
|
+ app:layout_constraintTop_toBottomOf="@id/etv_text"
|
|
|
+ app:layout_constraintLeft_toLeftOf="parent"
|
|
|
+ app:layout_constraintRight_toRightOf="parent"
|
|
|
android:orientation="horizontal">
|
|
|
<Button
|
|
|
+ android:id="@+id/btn_edit_dialog_ic_bold"
|
|
|
android:drawableStart="@drawable/ic_bold"
|
|
|
android:background="#212121"
|
|
|
android:layout_marginRight="12dp"
|
|
|
- android:layout_marginLeft="12dp"
|
|
|
+ android:layout_marginLeft="24dp"
|
|
|
android:scaleType="center"
|
|
|
android:layout_width="24dp"
|
|
|
- android:layout_height="24dp" />
|
|
|
+ android:layout_height="24dp"
|
|
|
+ app:layout_constraintLeft_toLeftOf="parent"
|
|
|
+ app:layout_constraintTop_toTopOf="parent"
|
|
|
+ app:layout_constraintBottom_toBottomOf="parent"
|
|
|
+ app:layout_constraintRight_toLeftOf="@+id/btn_edit_dialog_align_left"/>
|
|
|
<ImageView
|
|
|
android:id="@+id/btn_edit_dialog_align_left"
|
|
|
android:src="@drawable/ic_alignleft_w"
|
|
@@ -29,7 +40,10 @@
|
|
|
android:layout_marginLeft="12dp"
|
|
|
android:scaleType="center"
|
|
|
android:layout_width="30dp"
|
|
|
- android:layout_height="30dp" />
|
|
|
+ android:layout_height="30dp"
|
|
|
+ app:layout_constraintLeft_toRightOf="@id/btn_edit_dialog_ic_bold"
|
|
|
+ app:layout_constraintRight_toLeftOf="@+id/btn_edit_dialog_align_center"
|
|
|
+ app:layout_constraintTop_toTopOf="parent"/>
|
|
|
<ImageView
|
|
|
android:id="@+id/btn_edit_dialog_align_center"
|
|
|
android:src="@drawable/ic_aligncenter"
|
|
@@ -39,7 +53,10 @@
|
|
|
android:layout_marginLeft="12dp"
|
|
|
android:scaleType="center"
|
|
|
android:layout_width="30dp"
|
|
|
- android:layout_height="30dp" />
|
|
|
+ android:layout_height="30dp"
|
|
|
+ app:layout_constraintLeft_toRightOf="@id/btn_edit_dialog_align_left"
|
|
|
+ app:layout_constraintRight_toLeftOf="@+id/btn_edit_dialog_align_right"
|
|
|
+ app:layout_constraintTop_toTopOf="parent"/>
|
|
|
<ImageView
|
|
|
android:id="@+id/btn_edit_dialog_align_right"
|
|
|
android:src="@drawable/ic_alignright"
|
|
@@ -49,7 +66,22 @@
|
|
|
android:layout_marginLeft="12dp"
|
|
|
android:scaleType="center"
|
|
|
android:layout_width="30dp"
|
|
|
- android:layout_height="30dp"/>
|
|
|
+ android:layout_height="30dp"
|
|
|
+ app:layout_constraintLeft_toRightOf="@id/btn_edit_dialog_align_center"
|
|
|
+ app:layout_constraintRight_toLeftOf="@+id/seek_bar_dialog_view_size"
|
|
|
+ app:layout_constraintTop_toTopOf="parent"/>
|
|
|
+ <android.support.v7.widget.AppCompatSeekBar
|
|
|
+ android:id="@+id/seek_bar_dialog_view_size"
|
|
|
+ android:layout_width="180dp"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginRight="12dp"
|
|
|
+ android:layout_marginLeft="12dp"
|
|
|
+ android:thumbTint="@color/white"
|
|
|
+ app:layout_constraintHorizontal_bias="0.5"
|
|
|
+ app:layout_constraintLeft_toRightOf="@id/btn_edit_dialog_align_right"
|
|
|
+ app:layout_constraintRight_toLeftOf="@+id/iv_edit_text_red"
|
|
|
+ app:layout_constraintTop_toTopOf="parent"
|
|
|
+ app:layout_constraintBottom_toBottomOf="parent"/>
|
|
|
<ImageView
|
|
|
android:id="@+id/iv_edit_text_red"
|
|
|
android:src="@drawable/btn_edit_text_dialog_circle_red"
|
|
@@ -58,7 +90,10 @@
|
|
|
android:layout_marginLeft="12dp"
|
|
|
android:scaleType="center"
|
|
|
android:layout_width="30dp"
|
|
|
- android:layout_height="30dp" />
|
|
|
+ android:layout_height="30dp"
|
|
|
+ app:layout_constraintLeft_toRightOf="@id/seek_bar_dialog_view_size"
|
|
|
+ app:layout_constraintRight_toLeftOf="@+id/iv_edit_text_yellow"
|
|
|
+ app:layout_constraintTop_toTopOf="parent"/>
|
|
|
<ImageView
|
|
|
android:id="@+id/iv_edit_text_yellow"
|
|
|
android:src="@drawable/btn_edit_text_dialog_circle_yellow"
|
|
@@ -67,7 +102,10 @@
|
|
|
android:layout_marginLeft="12dp"
|
|
|
android:scaleType="center"
|
|
|
android:layout_width="30dp"
|
|
|
- android:layout_height="30dp" />
|
|
|
+ android:layout_height="30dp"
|
|
|
+ app:layout_constraintLeft_toRightOf="@id/iv_edit_text_red"
|
|
|
+ app:layout_constraintRight_toLeftOf="@+id/iv_edit_text_blue"
|
|
|
+ app:layout_constraintTop_toTopOf="parent"/>
|
|
|
<ImageView
|
|
|
android:id="@+id/iv_edit_text_blue"
|
|
|
android:src="@drawable/btn_edit_text_dialog_circle_blue"
|
|
@@ -76,7 +114,10 @@
|
|
|
android:layout_marginLeft="12dp"
|
|
|
android:scaleType="center"
|
|
|
android:layout_width="30dp"
|
|
|
- android:layout_height="30dp" />
|
|
|
+ android:layout_height="30dp"
|
|
|
+ app:layout_constraintLeft_toRightOf="@id/iv_edit_text_yellow"
|
|
|
+ app:layout_constraintRight_toLeftOf="@+id/iv_edit_text_green"
|
|
|
+ app:layout_constraintTop_toTopOf="parent"/>
|
|
|
<ImageView
|
|
|
android:id="@+id/iv_edit_text_green"
|
|
|
android:src="@drawable/btn_edit_text_dialog_circle_green"
|
|
@@ -85,7 +126,10 @@
|
|
|
android:layout_marginLeft="12dp"
|
|
|
android:scaleType="center"
|
|
|
android:layout_width="30dp"
|
|
|
- android:layout_height="30dp" />
|
|
|
+ android:layout_height="30dp"
|
|
|
+ app:layout_constraintLeft_toRightOf="@id/iv_edit_text_blue"
|
|
|
+ app:layout_constraintRight_toLeftOf="@+id/iv_edit_text_black"
|
|
|
+ app:layout_constraintTop_toTopOf="parent"/>
|
|
|
<ImageView
|
|
|
android:id="@+id/iv_edit_text_black"
|
|
|
android:src="@drawable/btn_edit_text_dialog_circle_black"
|
|
@@ -95,7 +139,10 @@
|
|
|
android:layout_marginLeft="12dp"
|
|
|
android:scaleType="center"
|
|
|
android:layout_width="30dp"
|
|
|
- android:layout_height="30dp" />
|
|
|
+ android:layout_height="30dp"
|
|
|
+ app:layout_constraintLeft_toRightOf="@id/iv_edit_text_green"
|
|
|
+ app:layout_constraintRight_toLeftOf="@+id/iv_edit_text_tune"
|
|
|
+ app:layout_constraintTop_toTopOf="parent"/>
|
|
|
<ImageView
|
|
|
android:id="@+id/iv_edit_text_tune"
|
|
|
android:src="@drawable/ic_tune"
|
|
@@ -104,13 +151,21 @@
|
|
|
android:layout_marginLeft="12dp"
|
|
|
android:scaleType="center"
|
|
|
android:layout_width="30dp"
|
|
|
- android:layout_height="30dp" />
|
|
|
+ android:layout_height="30dp"
|
|
|
+ app:layout_constraintLeft_toRightOf="@id/iv_edit_text_black"
|
|
|
+ app:layout_constraintRight_toLeftOf="@+id/btn_edit_dialog_done"
|
|
|
+ app:layout_constraintTop_toTopOf="parent"/>
|
|
|
<Button
|
|
|
- android:id="@+id/btn_edit_dialog_done"
|
|
|
- android:text="@string/uikit_edit_done"
|
|
|
- android:textColor="#ffecb3"
|
|
|
- android:background="#212121"
|
|
|
- android:layout_width="wrap_content"
|
|
|
- android:layout_height="wrap_content" />
|
|
|
- </LinearLayout>
|
|
|
-</LinearLayout>
|
|
|
+ android:id="@+id/btn_edit_dialog_done"
|
|
|
+ android:text="@string/uikit_edit_done"
|
|
|
+ android:textColor="#ffecb3"
|
|
|
+ android:background="#212121"
|
|
|
+ android:layout_marginRight="24dp"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ app:layout_constraintRight_toRightOf="parent"
|
|
|
+ app:layout_constraintLeft_toRightOf="@id/iv_edit_text_tune"
|
|
|
+ app:layout_constraintTop_toTopOf="parent"
|
|
|
+ app:layout_constraintBottom_toBottomOf="parent"/>
|
|
|
+ </android.support.constraint.ConstraintLayout>
|
|
|
+</android.support.constraint.ConstraintLayout>
|