pull/42/head
kunfei 5 years ago
parent c17727804c
commit d9e0506c10
  1. 3
      app/src/main/java/io/legado/app/ui/filechooser/FileChooserDialog.kt
  2. 40
      app/src/main/res/layout/dialog_file_chooser.xml

@ -6,6 +6,7 @@ import android.view.View
import android.view.ViewGroup import android.view.ViewGroup
import androidx.fragment.app.DialogFragment import androidx.fragment.app.DialogFragment
import androidx.fragment.app.FragmentManager import androidx.fragment.app.FragmentManager
import io.legado.app.R
class FileChooserDialog : DialogFragment() { class FileChooserDialog : DialogFragment() {
@ -26,7 +27,7 @@ class FileChooserDialog : DialogFragment() {
container: ViewGroup?, container: ViewGroup?,
savedInstanceState: Bundle? savedInstanceState: Bundle?
): View? { ): View? {
return super.onCreateView(inflater, container, savedInstanceState) return inflater.inflate(R.layout.dialog_file_chooser, container, true)
} }
} }

@ -0,0 +1,40 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="match_parent">
<androidx.appcompat.widget.Toolbar
android:id="@+id/tool_bar"
android:layout_width="match_parent"
android:layout_height="wrap_content" />
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/rv_path"
android:layout_width="match_parent"
android:layout_height="30dp" />
<View
android:layout_width="match_parent"
android:layout_height="0.2dp"
android:background="@color/btn_bg_press_2" />
<FrameLayout
android:layout_width="match_parent"
android:layout_height="match_parent">
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/rv_file"
android:layout_width="match_parent"
android:layout_height="match_parent" />
<TextView
android:id="@+id/tv_empty"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:gravity="center"
android:visibility="gone" />
</FrameLayout>
</LinearLayout>
Loading…
Cancel
Save