Antoine POPINEAU
4 years ago
8 changed files with 117 additions and 58 deletions
@ -1,71 +1,89 @@
@@ -1,71 +1,89 @@
|
||||
<?xml version="1.0" encoding="utf-8"?> |
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" |
||||
<androidx.constraintlayout.widget.ConstraintLayout 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="match_parent" |
||||
android:orientation="vertical" |
||||
tools:context=".activities.SearchActivity"> |
||||
android:layout_height="match_parent"> |
||||
|
||||
<androidx.cardview.widget.CardView |
||||
<LinearLayout |
||||
android:layout_width="match_parent" |
||||
android:layout_height="wrap_content" |
||||
android:layout_margin="8dp" |
||||
android:elevation="4dp"> |
||||
android:layout_height="match_parent" |
||||
android:orientation="vertical" |
||||
app:layout_constraintBottom_toBottomOf="parent" |
||||
app:layout_constraintLeft_toLeftOf="parent" |
||||
app:layout_constraintRight_toRightOf="parent" |
||||
app:layout_constraintTop_toTopOf="parent" |
||||
tools:context=".activities.SearchActivity"> |
||||
|
||||
<androidx.appcompat.widget.SearchView |
||||
android:id="@+id/search" |
||||
<androidx.cardview.widget.CardView |
||||
android:layout_width="match_parent" |
||||
android:layout_height="wrap_content" |
||||
app:iconifiedByDefault="false" |
||||
app:queryBackground="@android:color/transparent" |
||||
app:queryHint="@string/search_placeholder" /> |
||||
android:layout_margin="8dp" |
||||
android:elevation="4dp"> |
||||
|
||||
</androidx.cardview.widget.CardView> |
||||
<androidx.appcompat.widget.SearchView |
||||
android:id="@+id/search" |
||||
android:layout_width="match_parent" |
||||
android:layout_height="wrap_content" |
||||
app:iconifiedByDefault="false" |
||||
app:queryBackground="@android:color/transparent" |
||||
app:queryHint="@string/search_placeholder" /> |
||||
|
||||
<ProgressBar |
||||
android:id="@+id/search_spinner" |
||||
android:layout_width="32dp" |
||||
android:layout_height="32dp" |
||||
android:layout_gravity="center" |
||||
android:layout_marginTop="16dp" |
||||
android:indeterminate="true" |
||||
android:visibility="gone" /> |
||||
</androidx.cardview.widget.CardView> |
||||
|
||||
<TextView |
||||
android:id="@+id/search_empty" |
||||
android:layout_width="match_parent" |
||||
android:layout_height="wrap_content" |
||||
android:layout_marginStart="16dp" |
||||
android:layout_marginTop="16dp" |
||||
android:layout_marginEnd="16dp" |
||||
android:drawableTop="@drawable/ottericon" |
||||
android:drawablePadding="16dp" |
||||
android:drawableTint="#525252" |
||||
android:text="@string/search_welcome" |
||||
android:textAlignment="center" |
||||
android:textSize="14sp" /> |
||||
<ProgressBar |
||||
android:id="@+id/search_spinner" |
||||
android:layout_width="32dp" |
||||
android:layout_height="32dp" |
||||
android:layout_gravity="center" |
||||
android:layout_marginTop="16dp" |
||||
android:indeterminate="true" |
||||
android:visibility="gone" /> |
||||
|
||||
<TextView |
||||
android:id="@+id/search_no_results" |
||||
android:layout_width="match_parent" |
||||
android:layout_height="wrap_content" |
||||
android:layout_marginStart="16dp" |
||||
android:layout_marginTop="16dp" |
||||
android:layout_marginEnd="16dp" |
||||
android:drawableTop="@drawable/ottericon" |
||||
android:drawablePadding="16dp" |
||||
android:drawableTint="#525252" |
||||
android:text="@string/search_no_results" |
||||
android:textAlignment="center" |
||||
android:textSize="14sp" |
||||
android:visibility="gone" /> |
||||
<TextView |
||||
android:id="@+id/search_empty" |
||||
android:layout_width="match_parent" |
||||
android:layout_height="wrap_content" |
||||
android:layout_marginStart="16dp" |
||||
android:layout_marginTop="16dp" |
||||
android:layout_marginEnd="16dp" |
||||
android:drawableTop="@drawable/ottericon" |
||||
android:drawablePadding="16dp" |
||||
android:drawableTint="#525252" |
||||
android:text="@string/search_welcome" |
||||
android:textAlignment="center" |
||||
android:textSize="14sp" /> |
||||
|
||||
<TextView |
||||
android:id="@+id/search_no_results" |
||||
android:layout_width="match_parent" |
||||
android:layout_height="wrap_content" |
||||
android:layout_marginStart="16dp" |
||||
android:layout_marginTop="16dp" |
||||
android:layout_marginEnd="16dp" |
||||
android:drawableTop="@drawable/ottericon" |
||||
android:drawablePadding="16dp" |
||||
android:drawableTint="#525252" |
||||
android:text="@string/search_no_results" |
||||
android:textAlignment="center" |
||||
android:textSize="14sp" |
||||
android:visibility="gone" /> |
||||
|
||||
<androidx.recyclerview.widget.RecyclerView |
||||
android:id="@+id/results" |
||||
android:layout_width="match_parent" |
||||
android:layout_height="match_parent" |
||||
tools:itemCount="10" |
||||
tools:listitem="@layout/row_track" /> |
||||
|
||||
</LinearLayout> |
||||
|
||||
<androidx.recyclerview.widget.RecyclerView |
||||
android:id="@+id/results" |
||||
<FrameLayout |
||||
android:id="@+id/container" |
||||
android:layout_width="match_parent" |
||||
android:layout_height="match_parent" |
||||
tools:itemCount="10" |
||||
tools:listitem="@layout/row_track" /> |
||||
|
||||
</LinearLayout> |
||||
app:layout_constraintBottom_toBottomOf="parent" |
||||
app:layout_constraintLeft_toLeftOf="parent" |
||||
app:layout_constraintRight_toRightOf="parent" |
||||
app:layout_constraintTop_toTopOf="parent" /> |
||||
</androidx.constraintlayout.widget.ConstraintLayout> |
Loading…
Reference in new issue