Commit dc278589 authored by fallenstardust's avatar fallenstardust

微调服务器模块布局

parent 90f2d9bb
...@@ -143,17 +143,21 @@ ...@@ -143,17 +143,21 @@
android:layout_height="match_parent" android:layout_height="match_parent"
android:layout_gravity="right" android:layout_gravity="right"
android:layout_weight="1" android:layout_weight="1"
android:weightSum="3"
android:orientation="vertical"> android:orientation="vertical">
<LinearLayout <LinearLayout
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="0dp"
android:layout_weight="1"
android:weightSum="2.3"
android:background="@drawable/dialogshort" android:background="@drawable/dialogshort"
android:orientation="vertical"> android:orientation="vertical">
<androidx.appcompat.widget.AppCompatTextView <androidx.appcompat.widget.AppCompatTextView
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="0dp"
android:layout_weight="0.3"
android:background="@drawable/veil2" android:background="@drawable/veil2"
android:gravity="center" android:gravity="center"
android:text="@string/Function_Menu" android:text="@string/Function_Menu"
...@@ -164,7 +168,8 @@ ...@@ -164,7 +168,8 @@
<androidx.cardview.widget.CardView <androidx.cardview.widget.CardView
android:id="@+id/action_help" android:id="@+id/action_help"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="50dp" android:layout_height="0dp"
android:layout_weight="1"
android:layout_margin="5dp" android:layout_margin="5dp"
android:clickable="true" android:clickable="true"
android:foreground="?android:attr/selectableItemBackground" android:foreground="?android:attr/selectableItemBackground"
...@@ -205,7 +210,8 @@ ...@@ -205,7 +210,8 @@
<androidx.cardview.widget.CardView xmlns:android="http://schemas.android.com/apk/res/android" <androidx.cardview.widget.CardView xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/nav_webpage" android:id="@+id/nav_webpage"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="50dp" android:layout_height="0dp"
android:layout_weight="1"
android:layout_margin="5dp" android:layout_margin="5dp"
android:clickable="true" android:clickable="true"
android:foreground="?android:attr/selectableItemBackground" android:foreground="?android:attr/selectableItemBackground"
...@@ -246,16 +252,18 @@ ...@@ -246,16 +252,18 @@
</LinearLayout> </LinearLayout>
<LinearLayout <LinearLayout
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="0dp"
android:layout_weight="2"
android:layout_gravity="bottom" android:layout_gravity="bottom"
android:layout_marginTop="5dp" android:layout_marginTop="5dp"
android:background="@drawable/dialogshort" android:background="@drawable/dialogshort"
android:orientation="vertical" android:orientation="vertical"
android:weightSum="4"> android:weightSum="4.3">
<androidx.appcompat.widget.AppCompatTextView <androidx.appcompat.widget.AppCompatTextView
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="0dp"
android:layout_weight="0.3"
android:background="@drawable/veil2" android:background="@drawable/veil2"
android:gravity="center" android:gravity="center"
android:text="@string/action_game" android:text="@string/action_game"
......
...@@ -39,17 +39,17 @@ ...@@ -39,17 +39,17 @@
<ImageView <ImageView
android:id="@+id/iv_fond" android:id="@+id/iv_fond"
android:layout_width="100dp" android:layout_width="80dp"
android:layout_height="100dp" android:layout_height="80dp"
android:layout_gravity="left" android:layout_gravity="left"
android:layout_marginTop="-5dp"
android:layout_marginEnd="-10dp"
android:layout_marginLeft="-30dp" android:layout_marginLeft="-30dp"
android:layout_marginTop="0dp"
android:layout_marginEnd="-10dp"
android:layout_marginBottom="-10dp" android:layout_marginBottom="-10dp"
android:alpha="0.5" android:alpha="0.5"
android:src="@drawable/cube2" android:gravity="center"
android:rotation="-90" android:rotation="-90"
android:gravity="center" /> android:src="@drawable/cube2" />
<LinearLayout <LinearLayout
android:layout_width="match_parent" android:layout_width="match_parent"
...@@ -58,17 +58,10 @@ ...@@ -58,17 +58,10 @@
android:orientation="vertical" android:orientation="vertical"
android:padding="@dimen/padding2"> android:padding="@dimen/padding2">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_margin="4dp"
android:orientation="vertical">
<TextView <TextView
android:id="@+id/server_name" android:id="@+id/server_name"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginBottom="4dp"
android:layout_weight="1" android:layout_weight="1"
android:singleLine="true" android:singleLine="true"
android:textAppearance="@style/TextAppearance.AppCompat.Title" android:textAppearance="@style/TextAppearance.AppCompat.Title"
...@@ -76,9 +69,20 @@ ...@@ -76,9 +69,20 @@
android:textSize="15sp" android:textSize="15sp"
tools:text="233正式服务器" /> tools:text="233正式服务器" />
<FrameLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal">
<LinearLayout <LinearLayout
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_margin="4dp"
android:orientation="vertical">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"> android:orientation="horizontal">
<TextView <TextView
...@@ -112,17 +116,10 @@ ...@@ -112,17 +116,10 @@
android:textSize="10sp" android:textSize="10sp"
tools:text="233" /> tools:text="233" />
</LinearLayout> </LinearLayout>
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_margin="4dp"
android:orientation="horizontal">
<TextView <TextView
android:id="@+id/text_player" android:id="@+id/text_player"
android:layout_width="0dp" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_weight="1" android:layout_weight="1"
android:gravity="center_vertical" android:gravity="center_vertical"
...@@ -131,21 +128,17 @@ ...@@ -131,21 +128,17 @@
android:textColor="@color/holo_blue_bright" android:textColor="@color/holo_blue_bright"
android:textSize="10sp" android:textSize="10sp"
tools:text="player" /> tools:text="player" />
</LinearLayout>
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content">
<ImageView <ImageView
android:id="@+id/btn_edit_delete" android:id="@+id/btn_edit_delete"
android:layout_width="20dp" android:layout_width="20dp"
android:layout_height="20dp" android:layout_height="20dp"
android:layout_marginLeft="10dp" android:layout_gravity="right|bottom"
android:layout_marginRight="10dp" android:layout_marginRight="0dp"
android:background="@drawable/rename" android:background="@drawable/rename"
android:gravity="right" /> android:gravity="right" />
</LinearLayout>
</LinearLayout> </FrameLayout>
</LinearLayout> </LinearLayout>
</FrameLayout> </FrameLayout>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment