parent
a0849ed889
commit
2aa90ca4a8
@ -1,64 +1,70 @@ |
|||||||
<?xml version="1.0" encoding="utf-8"?> |
<?xml version="1.0" encoding="utf-8"?> |
||||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" |
<androidx.core.widget.NestedScrollView xmlns:android="http://schemas.android.com/apk/res/android" |
||||||
xmlns:app="http://schemas.android.com/apk/res-auto" |
xmlns:app="http://schemas.android.com/apk/res-auto" |
||||||
android:layout_width="match_parent" |
android:layout_width="match_parent" |
||||||
android:layout_height="match_parent" |
android:layout_height="match_parent"> |
||||||
android:orientation="vertical"> |
|
||||||
|
|
||||||
<include layout="@layout/toolbar" /> |
|
||||||
|
|
||||||
<TextView |
<LinearLayout |
||||||
android:id="@+id/tv_tip" |
|
||||||
android:layout_width="match_parent" |
android:layout_width="match_parent" |
||||||
android:layout_height="wrap_content" |
android:layout_height="match_parent" |
||||||
android:background="@color/colorForeground" |
android:orientation="vertical"> |
||||||
android:padding="10dp" |
|
||||||
android:textColor="@color/textSecondary" |
|
||||||
android:textSize="13sp" /> |
|
||||||
|
|
||||||
<com.google.android.material.tabs.TabLayout |
<include layout="@layout/toolbar" /> |
||||||
android:id="@+id/tab_layout" |
|
||||||
android:layout_width="match_parent" |
|
||||||
android:layout_height="36dp" |
|
||||||
android:background="@color/colorForeground" |
|
||||||
android:elevation="3dp" |
|
||||||
app:tabSelectedTextColor="@color/colorAccent"> |
|
||||||
|
|
||||||
<com.google.android.material.tabs.TabItem |
<TextView |
||||||
android:layout_width="wrap_content" |
android:id="@+id/tv_tip" |
||||||
|
android:layout_width="match_parent" |
||||||
android:layout_height="wrap_content" |
android:layout_height="wrap_content" |
||||||
android:text="@string/parse_result" /> |
android:background="@color/colorForeground" |
||||||
|
android:padding="10dp" |
||||||
|
android:textColor="@color/textSecondary" |
||||||
|
android:textSize="13sp" /> |
||||||
|
|
||||||
<com.google.android.material.tabs.TabItem |
<com.google.android.material.tabs.TabLayout |
||||||
android:layout_width="wrap_content" |
android:id="@+id/tab_layout" |
||||||
android:layout_height="wrap_content" |
android:layout_width="match_parent" |
||||||
android:text="@string/source_code" /> |
android:layout_height="36dp" |
||||||
|
android:background="@color/colorForeground" |
||||||
|
android:elevation="3dp" |
||||||
|
app:tabSelectedTextColor="@color/colorAccent"> |
||||||
|
|
||||||
</com.google.android.material.tabs.TabLayout> |
<com.google.android.material.tabs.TabItem |
||||||
|
android:layout_width="wrap_content" |
||||||
|
android:layout_height="wrap_content" |
||||||
|
android:text="@string/parse_result" /> |
||||||
|
|
||||||
<RelativeLayout |
<com.google.android.material.tabs.TabItem |
||||||
android:background="#474949" |
android:layout_width="wrap_content" |
||||||
android:layout_width="match_parent" |
android:layout_height="wrap_content" |
||||||
android:layout_height="match_parent"> |
android:text="@string/source_code" /> |
||||||
|
|
||||||
<xyz.fycz.myreader.widget.codeview.CodeView |
</com.google.android.material.tabs.TabLayout> |
||||||
android:id="@+id/rv_parse_result" |
|
||||||
android:layout_width="match_parent" |
|
||||||
android:layout_height="match_parent" |
|
||||||
android:scrollbars="vertical" |
|
||||||
app:cv_font_size="10" |
|
||||||
app:cv_zoom_enable="true" |
|
||||||
android:visibility="visible" /> |
|
||||||
|
|
||||||
<xyz.fycz.myreader.widget.codeview.CodeView |
<RelativeLayout |
||||||
android:id="@+id/rv_source_code" |
|
||||||
android:layout_width="match_parent" |
android:layout_width="match_parent" |
||||||
android:layout_height="match_parent" |
android:layout_height="match_parent" |
||||||
android:scrollbars="vertical" |
android:background="#474949"> |
||||||
app:cv_font_size="10" |
|
||||||
app:cv_zoom_enable="true" |
<xyz.fycz.myreader.widget.codeview.CodeView |
||||||
android:visibility="gone" /> |
android:id="@+id/rv_parse_result" |
||||||
</RelativeLayout> |
android:layout_width="match_parent" |
||||||
|
android:layout_height="match_parent" |
||||||
|
android:scrollbars="vertical" |
||||||
|
android:visibility="visible" |
||||||
|
app:cv_font_size="10" |
||||||
|
app:cv_zoom_enable="true" /> |
||||||
|
|
||||||
|
<xyz.fycz.myreader.widget.codeview.CodeView |
||||||
|
android:id="@+id/rv_source_code" |
||||||
|
android:layout_width="match_parent" |
||||||
|
android:layout_height="match_parent" |
||||||
|
android:scrollbars="vertical" |
||||||
|
android:visibility="gone" |
||||||
|
app:cv_font_size="10" |
||||||
|
app:cv_zoom_enable="true" /> |
||||||
|
</RelativeLayout> |
||||||
|
|
||||||
|
|
||||||
</LinearLayout> |
</LinearLayout> |
||||||
|
</androidx.core.widget.NestedScrollView> |
Loading…
Reference in new issue