Files
quik/presentation/src/main/res/layout/hsv_picker_view.xml
T
2018-03-27 04:05:57 -04:00

87 lines
3.2 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<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"
android:layout_width="match_parent"
android:layout_height="wrap_content"
tools:parentTag="feature.themepicker.HSVPickerView">
<View
android:layout_width="0dp"
android:layout_height="0dp"
android:background="@drawable/rounded_rectangle_4dp"
android:backgroundTint="@color/white"
android:rotation="90"
app:layout_constraintBottom_toBottomOf="@id/saturation"
app:layout_constraintEnd_toEndOf="@id/saturation"
app:layout_constraintStart_toStartOf="@id/saturation"
app:layout_constraintTop_toTopOf="@id/saturation" />
<View
android:id="@+id/saturation"
android:layout_width="0dp"
android:layout_height="0dp"
android:layout_marginEnd="24dp"
android:layout_marginStart="24dp"
android:layout_marginTop="24dp"
android:background="@drawable/color_picker_gradient"
app:layout_constraintDimensionRatio="1"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
tools:backgroundTint="@color/tools_theme" />
<View
android:layout_width="0dp"
android:layout_height="0dp"
android:background="@drawable/color_picker_gradient"
android:rotation="90"
app:layout_constraintBottom_toBottomOf="@id/saturation"
app:layout_constraintEnd_toEndOf="@id/saturation"
app:layout_constraintStart_toStartOf="@id/saturation"
app:layout_constraintTop_toTopOf="@id/saturation" />
<ImageView
android:id="@+id/swatch"
android:layout_width="16dp"
android:layout_height="16dp"
android:background="@drawable/circle"
android:elevation="4dp"
android:padding="2dp"
android:src="@drawable/circle"
tools:tint="@color/tools_theme"
tools:translationX="240dp"
tools:translationY="120dp" />
<FrameLayout
android:id="@+id/hueGroup"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:clipToPadding="false"
android:paddingBottom="16dp"
android:paddingEnd="24dp"
android:paddingStart="24dp"
android:paddingTop="16dp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/saturation">
<ImageView
android:id="@+id/hueTrack"
android:layout_width="match_parent"
android:layout_height="2dp"
android:layout_gravity="center_vertical"
android:background="@drawable/rounded_rectangle_2dp" />
<View
android:id="@+id/hueThumb"
android:layout_width="16dp"
android:layout_height="16dp"
android:background="@drawable/circle"
android:elevation="4dp"
tools:tint="@color/tools_theme" />
</FrameLayout>
</merge>