pull/1395/head
parent
201b959b40
commit
a53fcb164d
@ -0,0 +1,19 @@ |
||||
package io.legado.app.ui.widget.dialog |
||||
|
||||
import android.os.Bundle |
||||
import android.view.View |
||||
import io.legado.app.base.BaseDialogFragment |
||||
import io.legado.app.utils.setLayout |
||||
|
||||
class CodeDialog : BaseDialogFragment() { |
||||
|
||||
override fun onStart() { |
||||
super.onStart() |
||||
setLayout(0.9f, 0.9f) |
||||
} |
||||
|
||||
override fun onFragmentCreated(view: View, savedInstanceState: Bundle?) { |
||||
|
||||
} |
||||
|
||||
} |
@ -0,0 +1,16 @@ |
||||
<?xml version="1.0" encoding="utf-8"?> |
||||
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android" |
||||
android:layout_width="match_parent" |
||||
android:layout_height="match_parent" |
||||
android:background="@color/background"> |
||||
|
||||
<com.amrdeveloper.codeview.CodeView |
||||
android:id="@+id/code_view" |
||||
android:layout_width="match_parent" |
||||
android:layout_height="match_parent" |
||||
android:padding="12dp" |
||||
android:textIsSelectable="true" /> |
||||
|
||||
</androidx.constraintlayout.widget.ConstraintLayout> |
||||
|
||||
|
Loading…
Reference in new issue