pull/36/head
kunfei 5 years ago
parent 02b27a5c5a
commit 9a4ef149a6
  1. 23
      app/src/main/res/layout/activity_book_search.xml

@ -39,10 +39,12 @@
<LinearLayout <LinearLayout
android:id="@+id/ll_history" android:id="@+id/ll_history"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="0dp"
android:background="@color/background"
android:orientation="vertical" android:orientation="vertical"
android:visibility="gone" android:visibility="gone"
app:layout_constraintTop_toBottomOf="@id/title_bar"> app:layout_constraintTop_toBottomOf="@id/title_bar"
app:layout_constraintBottom_toBottomOf="parent">
<TextView <TextView
android:id="@+id/tv_book_show" android:id="@+id/tv_book_show"
@ -58,13 +60,28 @@
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:visibility="gone" /> android:visibility="gone" />
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal">
<TextView <TextView
android:id="@+id/tv_history" android:id="@+id/tv_history"
android:layout_width="match_parent" android:layout_width="0dp"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_weight="1"
android:padding="6dp" android:padding="6dp"
android:text="@string/searchHistory" /> android:text="@string/searchHistory" />
<TextView
android:id="@+id/tv_clear_history"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:padding="6dp"
android:text="@string/clear" />
</LinearLayout>
<androidx.recyclerview.widget.RecyclerView <androidx.recyclerview.widget.RecyclerView
android:id="@+id/rv_history_key" android:id="@+id/rv_history_key"
android:layout_width="wrap_content" android:layout_width="wrap_content"

Loading…
Cancel
Save