From 22db0c851b8e48e9d19f5e8286c9312629a2f312 Mon Sep 17 00:00:00 2001 From: kunfei Date: Wed, 28 Aug 2019 22:57:30 +0800 Subject: [PATCH] up --- .../ui/readbook/config/PaddingConfigDialog.kt | 12 +- .../main/res/layout/dialog_read_padding.xml | 201 ++++++++++++++++++ 2 files changed, 212 insertions(+), 1 deletion(-) create mode 100644 app/src/main/res/layout/dialog_read_padding.xml diff --git a/app/src/main/java/io/legado/app/ui/readbook/config/PaddingConfigDialog.kt b/app/src/main/java/io/legado/app/ui/readbook/config/PaddingConfigDialog.kt index f8405012e..e55e19ea0 100644 --- a/app/src/main/java/io/legado/app/ui/readbook/config/PaddingConfigDialog.kt +++ b/app/src/main/java/io/legado/app/ui/readbook/config/PaddingConfigDialog.kt @@ -16,7 +16,7 @@ class PaddingConfigDialog : DialogFragment() { container: ViewGroup?, savedInstanceState: Bundle? ): View? { - return super.onCreateView(inflater, container, savedInstanceState) + return inflater.inflate(R.layout.dialog_read_padding, container) } override fun onStart() { @@ -36,6 +36,16 @@ class PaddingConfigDialog : DialogFragment() { override fun onViewCreated(view: View, savedInstanceState: Bundle?) { super.onViewCreated(view, savedInstanceState) + initData() + initView() + } + + private fun initData() { + + } + + private fun initView() { + } } diff --git a/app/src/main/res/layout/dialog_read_padding.xml b/app/src/main/res/layout/dialog_read_padding.xml new file mode 100644 index 000000000..7c2ce047e --- /dev/null +++ b/app/src/main/res/layout/dialog_read_padding.xml @@ -0,0 +1,201 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file