界面布局微调
parent
b3ec467284
commit
8403a5e4f3
@ -1,35 +1,37 @@
|
||||
<?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="fill_parent"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:orientation="vertical">
|
||||
|
||||
<TextView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_margin="4dp"
|
||||
android:gravity="center"
|
||||
android:text="@string/rule_tips"
|
||||
android:textColor="@android:color/holo_blue_dark" />
|
||||
|
||||
<ListView
|
||||
android:id="@+id/list_view_rule"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_margin="4dp"
|
||||
android:layout_height="0dp"
|
||||
android:layout_margin="5dp"
|
||||
android:layout_weight="1" />
|
||||
|
||||
<Button
|
||||
android:id="@+id/btaddrule"
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_margin="10px"
|
||||
android:layout_weight="9"
|
||||
android:background="@android:color/holo_blue_dark"
|
||||
android:onClick="addRule"
|
||||
android:text="添加转发规则"
|
||||
tools:ignore="NestedWeights" />
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical">
|
||||
|
||||
<TextView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:gravity="center"
|
||||
android:text="@string/rule_tips"
|
||||
android:textColor="@android:color/holo_blue_dark" />
|
||||
|
||||
<Button
|
||||
android:id="@+id/btaddrule"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="35dp"
|
||||
android:layout_margin="10dp"
|
||||
android:background="@android:color/holo_blue_dark"
|
||||
android:onClick="addRule"
|
||||
android:padding="0dp"
|
||||
android:text="添加转发规则" />
|
||||
</LinearLayout>
|
||||
|
||||
</LinearLayout>
|
@ -1,33 +1,37 @@
|
||||
<?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="fill_parent"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:orientation="vertical">
|
||||
|
||||
<TextView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_margin="4dp"
|
||||
android:gravity="center"
|
||||
android:text="@string/sender_tips"
|
||||
android:textColor="@android:color/holo_blue_dark" />
|
||||
|
||||
<ListView
|
||||
android:id="@+id/list_view_sender"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_margin="4dp"
|
||||
android:layout_height="0dp"
|
||||
android:layout_margin="5dp"
|
||||
android:layout_weight="1" />
|
||||
|
||||
<Button
|
||||
android:id="@+id/button22"
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_margin="10px"
|
||||
android:layout_weight="9"
|
||||
android:background="@android:color/holo_blue_dark"
|
||||
android:onClick="addSender"
|
||||
android:text="添加发送方"
|
||||
tools:ignore="NestedWeights" />
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical">
|
||||
|
||||
<TextView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:gravity="center"
|
||||
android:text="@string/sender_tips"
|
||||
android:textColor="@android:color/holo_blue_dark" />
|
||||
|
||||
<Button
|
||||
android:id="@+id/button22"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="35dp"
|
||||
android:layout_margin="10dp"
|
||||
android:background="@android:color/holo_blue_dark"
|
||||
android:onClick="addSender"
|
||||
android:padding="0dp"
|
||||
android:text="添加发送方" />
|
||||
</LinearLayout>
|
||||
|
||||
</LinearLayout>
|
Loading…
Reference in New Issue