diff --git a/README.md b/README.md
index 2a270317..f3e067be 100644
--- a/README.md
+++ b/README.md
@@ -209,7 +209,8 @@ Feel free to contribute in any way to the project.
## Demo
-
+|||
+|:----:|:----:|
diff --git a/app/src/main/kotlin/com/k0d4black/theforce/features/character_search/SearchQueryListener.kt b/app/src/main/kotlin/com/k0d4black/theforce/features/character_search/SearchQueryListener.kt
index 77416b56..e7218293 100644
--- a/app/src/main/kotlin/com/k0d4black/theforce/features/character_search/SearchQueryListener.kt
+++ b/app/src/main/kotlin/com/k0d4black/theforce/features/character_search/SearchQueryListener.kt
@@ -10,7 +10,7 @@ internal class SearchQueryListener(private val viewModel: CharacterSearchViewMod
private var searchJob: Job? = null
- private var debouncePeriod = 400L
+ private var debouncePeriod = 500L
override fun onQueryTextSubmit(query: String?): Boolean = false
@@ -20,7 +20,7 @@ internal class SearchQueryListener(private val viewModel: CharacterSearchViewMod
searchJob = coroutineScope.launch {
newText?.let {
delay(debouncePeriod)
- if (it.isNotBlank())
+ if (it.isNotBlank() && it.length > 2)
viewModel.executeCharacterSearch(it)
}
}
diff --git a/app/src/main/res/drawable/ic_character.xml b/app/src/main/res/drawable/ic_character.xml
new file mode 100644
index 00000000..522380de
--- /dev/null
+++ b/app/src/main/res/drawable/ic_character.xml
@@ -0,0 +1,57 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/app/src/main/res/layout/item_search.xml b/app/src/main/res/layout/item_search.xml
index 03f6baca..7e372705 100644
--- a/app/src/main/res/layout/item_search.xml
+++ b/app/src/main/res/layout/item_search.xml
@@ -4,6 +4,7 @@
xmlns:tools="http://schemas.android.com/tools">
+
@@ -15,13 +16,24 @@
android:layout_height="wrap_content"
android:padding="@dimen/padding_default">
+
+
@@ -32,7 +44,7 @@
android:fontFamily="@font/roboto_light"
android:text='@{searchedCharacter.birthYear}'
android:textAppearance="@style/TextAppearance.MaterialComponents.Body2"
- app:layout_constraintStart_toStartOf="parent"
+ app:layout_constraintStart_toStartOf="@id/character_name_text_view"
app:layout_constraintTop_toBottomOf="@id/character_name_text_view"
tools:text="BBY 14" />
@@ -43,10 +55,10 @@
android:layout_height="wrap_content"
android:backgroundTint="@android:color/background_light"
android:contentDescription="@string/content_description_more_info_arrow"
- app:layout_constraintEnd_toEndOf="parent"
- app:layout_constraintTop_toTopOf="parent"
+ android:src="@drawable/ic_arrow_right_black_32dp"
app:layout_constraintBottom_toBottomOf="parent"
- android:src="@drawable/ic_arrow_right_black_32dp" />
+ app:layout_constraintEnd_toEndOf="parent"
+ app:layout_constraintTop_toTopOf="parent" />
diff --git a/art/force_gif.gif b/art/force_gif.gif
deleted file mode 100644
index c2323165..00000000
Binary files a/art/force_gif.gif and /dev/null differ
diff --git a/art/s1.png b/art/s1.png
new file mode 100755
index 00000000..4fd79666
Binary files /dev/null and b/art/s1.png differ
diff --git a/art/s2.png b/art/s2.png
new file mode 100755
index 00000000..77f561bb
Binary files /dev/null and b/art/s2.png differ