Restrict swatch to bounds of SL picker

This commit is contained in:
Moez Bhatti
2018-03-24 01:57:33 -04:00
parent dcff7e8c6c
commit 65d57f2afd
3 changed files with 29 additions and 26 deletions
@@ -31,23 +31,23 @@
<FrameLayout
android:id="@+id/swatch"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:padding="18dp">
<View
android:layout_width="12dp"
android:layout_height="12dp"
android:layout_gravity="center"
android:background="@drawable/circle" />
android:layout_width="12dp"
android:layout_height="12dp"
android:background="@drawable/circle"
android:padding="1dp"
android:layout_margin="18dp"
app:layout_constraintBottom_toBottomOf="@id/hue"
app:layout_constraintEnd_toEndOf="@id/hue"
app:layout_constraintStart_toStartOf="@id/hue"
app:layout_constraintTop_toTopOf="@id/hue">
<View
android:id="@+id/swatchPreview"
android:layout_width="10dp"
android:layout_height="10dp"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_gravity="center"
android:background="@drawable/circle"
tools:backgroundTint="@color/tools_theme" />
android:backgroundTint="@color/tools_theme" />
</FrameLayout>