pull/32/head
kunfei 6 years ago
parent 4927035433
commit 69c5e69bb7
  1. 1
      app/src/main/java/io/legado/app/ui/main/bookshelf/BookshelfFragment.kt
  2. 1
      app/src/main/res/layout/view_title_bar.xml

@ -48,6 +48,7 @@ class BookshelfFragment : BaseFragment(R.layout.fragment_bookshelf), BookGroupAd
private fun initSearchView() {
search_view.visibility = View.VISIBLE
search_view.onActionViewExpanded()
search_view.isSubmitButtonEnabled = true
search_view.queryHint = getString(R.string.search_book_key)
search_view.clearFocus()
}

@ -12,7 +12,6 @@
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:visibility="gone"
android:imeOptions="actionSearch"
app:defaultQueryHint="搜索" />
</androidx.appcompat.widget.Toolbar>

Loading…
Cancel
Save