parent
268b23c30e
commit
af12fdeca7
@ -0,0 +1,33 @@ |
||||
package io.legado.app.ui.book.read.config |
||||
|
||||
import android.os.Bundle |
||||
import android.view.LayoutInflater |
||||
import android.view.View |
||||
import android.view.ViewGroup |
||||
import io.legado.app.R |
||||
import io.legado.app.base.BaseDialogFragment |
||||
|
||||
class ClickActionConfigDialog : BaseDialogFragment() { |
||||
|
||||
override fun onStart() { |
||||
super.onStart() |
||||
dialog?.window?.let { |
||||
it.setBackgroundDrawableResource(R.color.transparent) |
||||
it.setLayout(ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.MATCH_PARENT) |
||||
} |
||||
} |
||||
|
||||
override fun onCreateView( |
||||
inflater: LayoutInflater, |
||||
container: ViewGroup?, |
||||
savedInstanceState: Bundle? |
||||
): View? { |
||||
return inflater.inflate(R.layout.dialog_click_action_config, container) |
||||
} |
||||
|
||||
override fun onFragmentCreated(view: View, savedInstanceState: Bundle?) { |
||||
|
||||
} |
||||
|
||||
|
||||
} |
@ -0,0 +1,116 @@ |
||||
<?xml version="1.0" encoding="utf-8"?> |
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" |
||||
xmlns:tools="http://schemas.android.com/tools" |
||||
android:id="@+id/root_view" |
||||
android:layout_width="match_parent" |
||||
android:layout_height="match_parent" |
||||
android:orientation="vertical" |
||||
tools:ignore="NestedWeights"> |
||||
|
||||
<LinearLayout |
||||
android:layout_width="match_parent" |
||||
android:layout_height="0dp" |
||||
android:layout_weight="1" |
||||
android:orientation="horizontal"> |
||||
|
||||
<io.legado.app.ui.widget.text.StrokeTextView |
||||
android:id="@+id/view_top_left" |
||||
android:layout_width="0dp" |
||||
android:layout_height="match_parent" |
||||
android:layout_weight="1" |
||||
android:layout_margin="3dp" |
||||
android:gravity="center" |
||||
tools:text="上一页" /> |
||||
|
||||
<io.legado.app.ui.widget.text.StrokeTextView |
||||
android:id="@+id/view_top_center" |
||||
android:layout_width="0dp" |
||||
android:layout_height="match_parent" |
||||
android:layout_weight="1" |
||||
android:layout_margin="3dp" |
||||
android:gravity="center" |
||||
tools:text="上一页" /> |
||||
|
||||
<io.legado.app.ui.widget.text.StrokeTextView |
||||
android:id="@+id/view_top_right" |
||||
android:layout_width="0dp" |
||||
android:layout_height="match_parent" |
||||
android:layout_weight="1" |
||||
android:layout_margin="3dp" |
||||
android:gravity="center" |
||||
tools:text="下一页" /> |
||||
|
||||
</LinearLayout> |
||||
|
||||
<LinearLayout |
||||
android:layout_width="match_parent" |
||||
android:layout_height="0dp" |
||||
android:layout_weight="1" |
||||
android:orientation="horizontal"> |
||||
|
||||
<io.legado.app.ui.widget.text.StrokeTextView |
||||
android:id="@+id/view_center_left" |
||||
android:layout_width="0dp" |
||||
android:layout_height="match_parent" |
||||
android:layout_weight="1" |
||||
android:layout_margin="3dp" |
||||
android:gravity="center" |
||||
tools:text="上一页" /> |
||||
|
||||
<io.legado.app.ui.widget.text.StrokeTextView |
||||
android:id="@+id/view_center" |
||||
android:layout_width="0dp" |
||||
android:layout_height="match_parent" |
||||
android:layout_weight="1" |
||||
android:layout_margin="3dp" |
||||
android:gravity="center" |
||||
android:text="@string/menu" /> |
||||
|
||||
<io.legado.app.ui.widget.text.StrokeTextView |
||||
android:id="@+id/view_center_right" |
||||
android:layout_width="0dp" |
||||
android:layout_height="match_parent" |
||||
android:layout_weight="1" |
||||
android:layout_margin="3dp" |
||||
android:gravity="center" |
||||
tools:text="下一页" /> |
||||
|
||||
</LinearLayout> |
||||
|
||||
<LinearLayout |
||||
android:layout_width="match_parent" |
||||
android:layout_height="0dp" |
||||
android:layout_weight="1" |
||||
android:orientation="horizontal"> |
||||
|
||||
<io.legado.app.ui.widget.text.StrokeTextView |
||||
android:id="@+id/view_bottom_left" |
||||
android:layout_width="0dp" |
||||
android:layout_height="match_parent" |
||||
android:layout_weight="1" |
||||
tools:ignore="NestedWeights" |
||||
android:layout_margin="3dp" |
||||
android:gravity="center" |
||||
tools:text="上一页" /> |
||||
|
||||
<io.legado.app.ui.widget.text.StrokeTextView |
||||
android:id="@+id/view_bottom_center" |
||||
android:layout_width="0dp" |
||||
android:layout_height="match_parent" |
||||
android:layout_weight="1" |
||||
android:layout_margin="3dp" |
||||
android:gravity="center" |
||||
tools:text="下一页" /> |
||||
|
||||
<io.legado.app.ui.widget.text.StrokeTextView |
||||
android:id="@+id/view_bottom_right" |
||||
android:layout_width="0dp" |
||||
android:layout_height="match_parent" |
||||
android:layout_weight="1" |
||||
android:layout_margin="3dp" |
||||
android:gravity="center" |
||||
tools:text="下一页" /> |
||||
|
||||
</LinearLayout> |
||||
|
||||
</LinearLayout> |
Loading…
Reference in new issue