Skip to content

Commit 1ee090c

Browse files
committed
Change layout weights a bit
1 parent 15364e2 commit 1ee090c

File tree

2 files changed

+27
-18
lines changed

2 files changed

+27
-18
lines changed

app/src/main/res/layout/activity_about.xml

Lines changed: 25 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
<RelativeLayout
2424
android:layout_width="match_parent"
2525
android:layout_height="wrap_content"
26-
android:layout_weight="0.8"
26+
android:layout_weight="1"
2727
android:layout_marginLeft="42dp"
2828
android:layout_marginTop="14dp"
2929
android:layout_marginRight="42dp"
@@ -81,25 +81,33 @@
8181

8282
</RelativeLayout>
8383

84-
<TextView
85-
android:id="@+id/about_version"
84+
<LinearLayout
8685
android:layout_width="match_parent"
8786
android:layout_height="wrap_content"
88-
android:layout_marginBottom="6dp"
89-
android:gravity="center_horizontal"
90-
android:textAlignment="center"
91-
android:textColor="@color/textColor"
92-
android:textStyle="bold"
93-
tools:text="@string/about_version"/>
87+
android:layout_weight="0.5"
88+
android:orientation="vertical">
9489

95-
<TextView
96-
android:id="@+id/about_copyright"
97-
android:layout_width="match_parent"
98-
android:layout_height="wrap_content"
99-
android:layout_marginBottom="24dp"
100-
android:gravity="center_horizontal"
101-
android:text="(c) krlvm, 2019-2020"
102-
android:textAlignment="center" />
90+
<TextView
91+
android:id="@+id/about_version"
92+
android:layout_width="match_parent"
93+
android:layout_height="wrap_content"
94+
android:layout_marginBottom="6dp"
95+
android:gravity="center_horizontal"
96+
android:textAlignment="center"
97+
android:textColor="@color/textColor"
98+
android:textStyle="bold"
99+
tools:text="@string/about_version"/>
100+
101+
<TextView
102+
android:id="@+id/about_copyright"
103+
android:layout_width="match_parent"
104+
android:layout_height="wrap_content"
105+
android:layout_marginBottom="24dp"
106+
android:gravity="center_horizontal"
107+
android:text="(c) krlvm, 2019-2020"
108+
android:textAlignment="center" />
109+
110+
</LinearLayout>
103111

104112
</LinearLayout>
105113

app/src/main/res/layout/activity_main.xml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
<RelativeLayout
2424
android:layout_width="match_parent"
2525
android:layout_height="wrap_content"
26-
android:layout_weight="1.5"
26+
android:layout_weight="1"
2727
android:layout_marginTop="14dp"
2828
android:layout_marginLeft="64dp"
2929
android:layout_marginRight="64dp"
@@ -86,6 +86,7 @@
8686
android:id="@+id/main_copyright"
8787
android:layout_width="match_parent"
8888
android:layout_height="wrap_content"
89+
android:layout_weight="0.5"
8990
android:layout_marginTop="24dp"
9091
android:layout_marginBottom="24dp"
9192
android:gravity="center_horizontal"

0 commit comments

Comments
 (0)