pull/36/head
kunfei 5 years ago
parent 4227b8ccc7
commit 0f1c604ba3
  1. 5
      app/src/main/java/io/legado/app/ui/book/search/SearchActivity.kt
  2. 29
      app/src/main/res/layout/activity_book_search.xml

@ -17,12 +17,13 @@ import io.legado.app.ui.book.info.BookInfoActivity
import io.legado.app.utils.getViewModel import io.legado.app.utils.getViewModel
import io.legado.app.utils.invisible import io.legado.app.utils.invisible
import io.legado.app.utils.visible import io.legado.app.utils.visible
import kotlinx.android.synthetic.main.activity_search.* import kotlinx.android.synthetic.main.activity_book_search.*
import kotlinx.android.synthetic.main.view_search.* import kotlinx.android.synthetic.main.view_search.*
import org.jetbrains.anko.sdk27.listeners.onClick import org.jetbrains.anko.sdk27.listeners.onClick
import org.jetbrains.anko.startActivity import org.jetbrains.anko.startActivity
class SearchActivity : VMBaseActivity<SearchViewModel>(R.layout.activity_search), SearchAdapter.CallBack { class SearchActivity : VMBaseActivity<SearchViewModel>(R.layout.activity_book_search),
SearchAdapter.CallBack {
override val viewModel: SearchViewModel override val viewModel: SearchViewModel
get() = getViewModel(SearchViewModel::class.java) get() = getViewModel(SearchViewModel::class.java)

@ -36,6 +36,35 @@
</io.legado.app.ui.widget.dynamiclayout.DynamicFrameLayout> </io.legado.app.ui.widget.dynamiclayout.DynamicFrameLayout>
<LinearLayout
android:id="@+id/ll_history"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
app:layout_constraintTop_toBottomOf="@id/title_bar">
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/bookshelf" />
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/rv_bookshelf"
android:layout_width="match_parent"
android:layout_height="wrap_content" />
<TextView
android:id="@+id/rv_history"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/searchHistory" />
<androidx.recyclerview.widget.RecyclerView
android:layout_width="wrap_content"
android:layout_height="match_parent" />
</LinearLayout>
<com.google.android.material.floatingactionbutton.FloatingActionButton <com.google.android.material.floatingactionbutton.FloatingActionButton
android:id="@+id/fb_stop" android:id="@+id/fb_stop"
android:layout_width="wrap_content" android:layout_width="wrap_content"
Loading…
Cancel
Save