0
0
mirror of https://github.com/mediathekview/zapp.git synced 2024-09-20 04:12:14 +02:00

Style filter search field

This commit is contained in:
Christine Coenen 2021-10-28 20:43:32 +02:00
parent 3d9eadab16
commit d6309bb861
2 changed files with 4 additions and 12 deletions

View File

@ -103,11 +103,12 @@
android:layout_width="match_parent"
android:layout_height="10dp"
android:layout_gravity="center"
android:alpha="0.4"
android:src="@drawable/ic_baseline_drag_handle_24"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:tint="#ccffffff" />
app:tint="?colorOnSurface" />
</androidx.constraintlayout.widget.ConstraintLayout>

View File

@ -10,19 +10,12 @@
<com.google.android.material.textfield.TextInputLayout
android:id="@+id/textField"
style="@style/Widget.MaterialComponents.TextInputLayout.OutlinedBox"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="?colorPrimary"
android:paddingTop="2dp"
app:boxBackgroundMode="none"
app:endIconMode="clear_text"
app:endIconTint="?colorOnPrimarySurface"
app:hintEnabled="false"
app:startIconDrawable="@drawable/ic_baseline_search_24"
app:startIconTint="?colorOnPrimarySurface">
app:startIconDrawable="@drawable/ic_baseline_search_24">
<!-- TODO: give cursor(s) the right color: https://github.com/material-components/material-components-android/issues/820 -->
<com.google.android.material.textfield.TextInputEditText
android:id="@+id/search"
android:layout_width="match_parent"
@ -31,9 +24,7 @@
android:imeOptions="actionSearch"
android:inputType="textFilter"
android:maxLines="1"
android:paddingVertical="0dp"
android:textColor="?colorOnPrimarySurface"
android:textColorHint="#66ffffff" />
android:paddingVertical="0dp" />
</com.google.android.material.textfield.TextInputLayout>