diff options
author | Clyhtsuriva <aimeric@adjutor.xyz> | 2021-03-12 14:47:31 +0100 |
---|---|---|
committer | Clyhtsuriva <aimeric@adjutor.xyz> | 2021-03-12 14:47:31 +0100 |
commit | dafb34569442334163eb7a249d155ec21379d9ea (patch) | |
tree | 9b411086f43b5a47df4ae2fafd059e5389771b74 | |
parent | 2d51793b3ff0ff60c6c26e31811538e6b81ab154 (diff) |
Adding colors to TextInputEditText from search pages.
-rw-r--r-- | app/src/main/res/layout/search_anime_page.xml | 8 | ||||
-rw-r--r-- | app/src/main/res/layout/search_manga_page.xml | 8 | ||||
-rw-r--r-- | app/src/main/res/values/colors.xml | 1 | ||||
-rw-r--r-- | app/src/main/res/values/strings.xml | 1 |
4 files changed, 12 insertions, 6 deletions
diff --git a/app/src/main/res/layout/search_anime_page.xml b/app/src/main/res/layout/search_anime_page.xml index 1f95b10..631ebde 100644 --- a/app/src/main/res/layout/search_anime_page.xml +++ b/app/src/main/res/layout/search_anime_page.xml @@ -7,16 +7,18 @@ android:background="@color/very_dark_purple" tools:context=".anime.search.SearchAnimePage"> - <com.google.android.material.textfield.TextInputEditText android:id="@+id/tiet_query" android:layout_width="0dp" android:layout_height="wrap_content" + android:hint="@string/hint_query" + android:textColor="@color/very_light_magenta" + android:textColorHint="@color/grayish_magenta" android:textStyle="bold" app:layout_constraintBottom_toTopOf="@id/recycler_view" - app:layout_constraintTop_toTopOf="parent" + app:layout_constraintEnd_toStartOf="@id/button_query" app:layout_constraintStart_toStartOf="parent" - app:layout_constraintEnd_toStartOf="@id/button_query"/> + app:layout_constraintTop_toTopOf="parent" /> <Button android:id="@+id/button_query" diff --git a/app/src/main/res/layout/search_manga_page.xml b/app/src/main/res/layout/search_manga_page.xml index 1470311..02a62ff 100644 --- a/app/src/main/res/layout/search_manga_page.xml +++ b/app/src/main/res/layout/search_manga_page.xml @@ -7,16 +7,18 @@ android:background="@color/very_dark_purple" tools:context=".manga.search.SearchMangaPage"> - <com.google.android.material.textfield.TextInputEditText android:id="@+id/tiet_query" android:layout_width="0dp" android:layout_height="wrap_content" + android:hint="@string/hint_query" + android:textColor="@color/very_light_magenta" + android:textColorHint="@color/grayish_magenta" android:textStyle="bold" app:layout_constraintBottom_toTopOf="@id/recycler_view" - app:layout_constraintTop_toTopOf="parent" + app:layout_constraintEnd_toStartOf="@id/button_query" app:layout_constraintStart_toStartOf="parent" - app:layout_constraintEnd_toStartOf="@id/button_query"/> + app:layout_constraintTop_toTopOf="parent" /> <Button android:id="@+id/button_query" diff --git a/app/src/main/res/values/colors.xml b/app/src/main/res/values/colors.xml index ae0a497..1dc4ee9 100644 --- a/app/src/main/res/values/colors.xml +++ b/app/src/main/res/values/colors.xml @@ -10,4 +10,5 @@ <color name="very_light_magenta">#FF70FF</color> <color name="strong_pink">#D52C70</color> <color name="slightly_desaturated_magenta">#c583b6</color> + <color name="grayish_magenta">#c9a6c9</color> </resources>
\ No newline at end of file diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index 2acf406..c8c8ab9 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -40,5 +40,6 @@ <string name="search">Search in the database</string> <string name="search_anime">Search Anime</string> <string name="search_anime_page_label">Search Anime Page</string> + <string name="hint_query">Your query …</string> </resources>
\ No newline at end of file |