SmsForwarder/app/src/main/res/layout/activity_main.xml
2021-11-17 14:26:28 +08:00

106 lines
3.8 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal"
android:layout_marginTop="5dip"
android:orientation="horizontal">
<RadioGroup
android:id="@+id/radioGroupTypeCheck"
style="@style/rg_style"
android:orientation="horizontal">
<RadioButton
android:id="@+id/btnTypeSms"
style="@style/select_style"
android:tag="sms"
android:text="@string/sms"
android:checked="true" />
<RadioButton
android:id="@+id/btnTypeCall"
style="@style/select_style"
android:tag="call"
android:text="@string/call" />
<RadioButton
android:id="@+id/btnTypeApp"
style="@style/select_style"
android:tag="app"
android:text="@string/app" />
</RadioGroup>
</LinearLayout>
<com.idormy.sms.forwarder.RefreshListView
android:id="@+id/list_view_log"
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_margin="5dp"
android:layout_weight="1" />
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
<TextView
android:id="@+id/help_tip"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="center"
android:text="@string/log_tips"
android:textColor="@color/colorPrimary" />
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal">
<Button
android:layout_width="match_parent"
android:layout_height="35dp"
android:layout_marginStart="10dp"
android:layout_marginTop="5dp"
android:layout_marginBottom="10dp"
android:layout_weight="1"
android:background="@color/colorPrimary"
android:onClick="cleanLog"
android:text="@string/bt_refresh_log"
tools:ignore="ButtonStyle,NestedWeights" />
<Button
android:layout_width="match_parent"
android:layout_height="35dp"
android:layout_marginStart="10dp"
android:layout_marginTop="5dp"
android:layout_marginBottom="10dp"
android:layout_weight="1"
android:background="@color/colorPrimary"
android:onClick="toRuleSetting"
android:text="@string/rule_setting"
tools:ignore="ButtonStyle,NestedWeights" />
<Button
android:layout_width="match_parent"
android:layout_height="35dp"
android:layout_marginLeft="10dp"
android:layout_marginTop="5dp"
android:layout_marginRight="10dp"
android:layout_marginBottom="10dp"
android:layout_weight="1"
android:background="@color/colorPrimary"
android:onClick="toSendSetting"
android:text="@string/sender_setting"
tools:ignore="ButtonStyle" />
</LinearLayout>
</LinearLayout>
</LinearLayout>