文件预览:view_log.xml

<?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" android:layout_width="match_parent" android:layout_height="match_parent" android:background="#FF000000"> <RelativeLayout xmlns:app="http://schemas.android.com/apk/res-auto" android:orientation="horizontal" android:layout_width="match_parent" android:layout_height="40dp" android:layout_alignParentTop="true" android:background="@drawable/bg_shadow" android:id="@+id/viewlogRelativeLayoutToolbar"> <Button android:layout_width="wrap_content" android:layout_height="36dp" android:text="Clean" android:textSize="14dp" android:layout_centerVertical="true" android:id="@+id/viewlogButtonClean" android:layout_marginLeft="5dp"/> <TextView android:background="#FF000000" android:layout_width="wrap_content" android:layout_height="24dp" android:text="LV:" android:layout_toRightOf="@+id/viewlogButtonClean" android:layout_centerVertical="true" android:id="@+id/viewlogTextView1" android:textColor="#FFFFFFFF"/> <Spinner android:background="#FFFFFFFF" android:layout_width="wrap_content" android:layout_height="24dp" android:layout_toRightOf="@+id/viewlogTextView1" android:layout_centerVertical="true" android:id="@+id/viewlogSpinner1"/> <CheckBox android:layout_width="wrap_content" android:layout_height="24dp" android:layout_toLeftOf="@+id/viewlogButtonCopy" android:layout_centerVertical="true" android:text="Selectable" android:background="#FFFFFFFF" android:paddingRight="10dp" android:textSize="16dp" android:id="@+id/viewlogCheckBoxSelectable"/> <Button android:layout_width="wrap_content" android:layout_height="36dp" android:text="Copy" android:layout_alignParentRight="true" android:textSize="14dp" android:layout_centerVertical="true" android:id="@+id/viewlogButtonCopy" android:layout_marginRight="5dp"/> </RelativeLayout> <LinearLayout android:orientation="horizontal" android:layout_width="match_parent" android:layout_height="40dp" android:background="@drawable/bg_shadow" android:layout_below="@+id/viewlogRelativeLayoutToolbar" android:id="@+id/viewlogLinearLayout1" android:gravity="center_vertical"> <CheckBox android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="ALL" android:id="@+id/viewlogCheckBox1"/> <androidx.recyclerview.widget.RecyclerView android:layout_width="0dp" android:layout_height="wrap_content" android:background="@drawable/view_border" android:id="@+id/viewlogRecyclerView1" android:layout_weight="1.0" android:layout_marginRight="5dp" android:padding="2dp"/> </LinearLayout> <RelativeLayout android:orientation="vertical" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_weight="1.0" android:layout_alignParentBottom="true" android:layout_below="@+id/viewlogLinearLayout1"> <ScrollView android:layout_width="match_parent" android:layout_height="match_parent" android:background="#FF000000" android:id="@+id/viewlogScrollViewLog"> <TextView android:layout_width="match_parent" android:layout_height="match_parent" android:text="Text" android:textColor="#FF00FF00" android:textIsSelectable="true" android:id="@+id/viewlogTextViewLog"/> </ScrollView> </RelativeLayout> </RelativeLayout>
返回目录