145 lines
3.7 KiB
XML
145 lines
3.7 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<LinearLayout
|
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:orientation="vertical">
|
|
|
|
<com.google.android.material.appbar.AppBarLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:theme="@style/ThemeOverlay.AppCompat.Dark.ActionBar">
|
|
|
|
<androidx.appcompat.widget.Toolbar
|
|
android:id="@+id/toolbar"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="?attr/actionBarSize"
|
|
app:popupTheme="@style/ThemeOverlay.AppCompat.Light"/>
|
|
|
|
</com.google.android.material.appbar.AppBarLayout>
|
|
|
|
<LinearLayout
|
|
android:orientation="horizontal"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:padding="10dp">
|
|
|
|
<Switch
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:text="启用时间戳常驻通知栏"
|
|
android:id="@+id/activitymainSwitch1"
|
|
android:onClick="onSetMainServiceStatus"/>
|
|
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:orientation="vertical"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content">
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="Show Format Preview:"
|
|
android:paddingRight="10dp"/>
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="Text"
|
|
android:id="@+id/tv_timestampformatstring"/>
|
|
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:orientation="horizontal"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:padding="10dp">
|
|
|
|
<EditText
|
|
android:layout_width="0dp"
|
|
android:ems="10"
|
|
android:layout_height="wrap_content"
|
|
android:id="@+id/et_timestampformatstring"
|
|
android:layout_weight="1.0"/>
|
|
|
|
<Button
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="ApplyShow"
|
|
android:id="@+id/btn_saveformatstring"
|
|
android:textAllCaps="false"
|
|
android:onClick="onSaveFormatString"/>
|
|
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:orientation="vertical"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content">
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="Copy Format Preview:"
|
|
android:paddingRight="10dp"/>
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="Text"
|
|
android:id="@+id/tv_timestampcopyformatstring"/>
|
|
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:orientation="horizontal"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:padding="10dp">
|
|
|
|
<EditText
|
|
android:layout_width="0dp"
|
|
android:ems="10"
|
|
android:layout_height="wrap_content"
|
|
android:id="@+id/et_timestampcopyformatstring"
|
|
android:layout_weight="1.0"/>
|
|
|
|
<Button
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="ApplyCopy"
|
|
android:id="@+id/btn_savecopyformatstring"
|
|
android:textAllCaps="false"
|
|
android:onClick="onSaveCopyFormatString"/>
|
|
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:orientation="vertical"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="0dp"
|
|
android:layout_weight="1.0"
|
|
android:gravity="center_vertical|center_horizontal">
|
|
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:orientation="vertical"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="0dp"
|
|
android:layout_weight="1.0">
|
|
|
|
<cc.winboll.studio.libappbase.LogView
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:id="@+id/logview"/>
|
|
|
|
</LinearLayout>
|
|
|
|
</LinearLayout>
|
|
|