首页UI更改

This commit is contained in:
level 2025-05-08 18:21:22 +08:00
parent a7a722721c
commit b0b139e08d
6 changed files with 107 additions and 27 deletions

View File

@ -0,0 +1,24 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="48dp"
android:height="48dp"
android:viewportWidth="2200"
android:viewportHeight="2200">
<path
android:fillColor="#33c5f2"
android:pathData="M1528.8,1289.4v184.5a67.7,67.7 0,0 0,67.6 67.6h340.1V1854a98.3,98.3 0,0 1,-98.3 98.3h-1435A98.3,98.3 0,0 1,305 1854V909.2A98.3,98.3 0,0 1,403.3 811h1435a98.3,98.3 0,0 1,98.3 98.3v312.5H1596.4A67.7,67.7 0,0 0,1528.8 1289.4Z" />
<path
android:fillColor="#2a3468"
android:pathData="M1596.4,1253.7a35.7,35.7 0,0 0,-35.6 35.6v184.5a35.7,35.7 0,0 0,35.6 35.6h340.1L1936.5,1253.7ZM1701.7,1435.2a53.5,53.5 0,1 1,53.5 -53.5A53.5,53.5 0,0 1,1701.7 1435.2Z" />
<path
android:fillColor="#2a3468"
android:pathData="M423.1,765.6l1185.2,-294.2a64.8,64.8 0,0 1,80.4 62.9V765.6Z" />
<path
android:fillColor="#2a3468"
android:pathData="M1524.3,444.5 L617.7,669.6 1421,302.4a62.2,62.2 0,0 1,86.4 46.1Z" />
</vector>

View File

@ -273,47 +273,98 @@
android:id="@+id/clActivity" android:id="@+id/clActivity"
android:layout_width="0dp" android:layout_width="0dp"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginTop="25dp" android:layout_marginTop="10dp"
android:layout_marginEnd="36dp"
android:background="@drawable/home_activity_bg" android:background="@drawable/home_activity_bg"
app:layout_constraintEnd_toEndOf="parent" app:layout_constraintEnd_toEndOf="@+id/clMember"
app:layout_constraintTop_toBottomOf="@+id/acceleratedStartup"> app:layout_constraintStart_toStartOf="@+id/clMember"
app:layout_constraintTop_toBottomOf="@+id/clMember">
<androidx.appcompat.widget.AppCompatImageView <LinearLayout
android:layout_width="50dp" android:layout_width="wrap_content"
android:layout_height="47dp" android:layout_height="wrap_content"
android:layout_marginStart="5dp" android:orientation="horizontal"
android:layout_marginEnd="5dp"
android:src="@mipmap/ic_home_activity"
app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent" app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" /> app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintTop_toTopOf="parent"
android:gravity="center"
>
<androidx.appcompat.widget.AppCompatImageView
android:id="@+id/actIcon"
android:layout_width="48dp"
android:layout_height="48dp"
android:layout_marginEnd="5dp"
android:layout_marginTop="10dp"
android:layout_marginBottom="10dp"
android:src="@mipmap/ic_home_activity"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
<TextView
android:id="@+id/tvActIcon"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/activity"
android:textColor="@color/bule_1F22B8"
android:textSize="18sp"
android:textStyle="bold"
android:layout_marginStart="10dp"
android:layout_marginEnd="30dp"
app:layout_constraintStart_toEndOf="@+id/actIcon"
app:layout_constraintTop_toTopOf="@+id/actIcon"
app:layout_constraintBottom_toBottomOf="@+id/actIcon"
/>
</LinearLayout>
</androidx.constraintlayout.widget.ConstraintLayout> </androidx.constraintlayout.widget.ConstraintLayout>
<androidx.constraintlayout.widget.ConstraintLayout <androidx.constraintlayout.widget.ConstraintLayout
android:id="@+id/clMember" android:id="@+id/clMember"
android:layout_width="0dp" android:layout_width="0dp"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginStart="36dp" android:layout_marginStart="50dp"
android:layout_marginEnd="10dp" android:layout_marginTop="12dp"
android:layout_marginEnd="50dp"
android:background="@drawable/home_activity_bg" android:background="@drawable/home_activity_bg"
app:layout_constraintBottom_toBottomOf="@+id/clActivity" app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintEnd_toStartOf="@+id/clActivity"
app:layout_constraintStart_toStartOf="parent" app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="@+id/clActivity"> app:layout_constraintTop_toBottomOf="@+id/acceleratedStartup">
<androidx.appcompat.widget.AppCompatImageView <LinearLayout
android:id="@+id/appCompatImageView"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginStart="41dp" android:orientation="horizontal"
android:layout_marginTop="10dp"
android:layout_marginBottom="10dp"
android:src="@mipmap/ic_home_notice"
app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintStart_toStartOf="parent" app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" /> app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintTop_toTopOf="parent"
android:gravity="center"
>
<androidx.appcompat.widget.AppCompatImageView
android:id="@+id/appCompatImageView"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="10dp"
android:layout_marginBottom="10dp"
android:src="@drawable/icon_pay"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintTop_toTopOf="parent" />
<TextView
android:id="@+id/tvTxt"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="10dp"
android:text="@string/CZHY"
android:textColor="@color/bule_1F22B8"
android:textSize="18sp"
android:textStyle="bold"
app:layout_constraintBottom_toBottomOf="@+id/appCompatImageView"
app:layout_constraintStart_toEndOf="@+id/appCompatImageView"
app:layout_constraintTop_toTopOf="@+id/appCompatImageView" />
</LinearLayout>
<LinearLayout <LinearLayout
android:id="@+id/llGetMember" android:id="@+id/llGetMember"
@ -321,9 +372,10 @@
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginStart="12dp" android:layout_marginStart="12dp"
android:orientation="vertical" android:orientation="vertical"
app:layout_constraintBottom_toBottomOf="@+id/appCompatImageView" android:visibility="gone"
app:layout_constraintStart_toEndOf="@+id/appCompatImageView" app:layout_constraintBottom_toBottomOf="@+id/clMember"
app:layout_constraintTop_toTopOf="@+id/appCompatImageView"> app:layout_constraintStart_toEndOf="@+id/clMember"
app:layout_constraintTop_toTopOf="@+id/clMember">
<TextView <TextView
android:id="@+id/tvGetMember" android:id="@+id/tvGetMember"

View File

@ -351,4 +351,5 @@ Service Description\n
<string name="sure_restart">Suggest restarting</string> <string name="sure_restart">Suggest restarting</string>
<string name="restart">Restart</string> <string name="restart">Restart</string>
<string name="node_item_test">Speed test</string> <string name="node_item_test">Speed test</string>
<string name="CZHY">Recharge Membership</string>
</resources> </resources>

View File

@ -341,4 +341,5 @@
<string name="sure_restart">"建議重啓 "</string> <string name="sure_restart">"建議重啓 "</string>
<string name="restart">"重啓 "</string> <string name="restart">"重啓 "</string>
<string name="node_item_test">線路測速</string> <string name="node_item_test">線路測速</string>
<string name="CZHY">充值會員</string>
</resources> </resources>

View File

@ -340,4 +340,5 @@
<string name="sure_restart">"建議重啓 "</string> <string name="sure_restart">"建議重啓 "</string>
<string name="restart">"重啓 "</string> <string name="restart">"重啓 "</string>
<string name="node_item_test">線路測速</string> <string name="node_item_test">線路測速</string>
<string name="CZHY">充值會員</string>
</resources> </resources>

View File

@ -359,4 +359,5 @@
<string name="sure_restart">建议重启</string> <string name="sure_restart">建议重启</string>
<string name="restart">重启</string> <string name="restart">重启</string>
<string name="node_item_test">线路测速</string> <string name="node_item_test">线路测速</string>
<string name="CZHY">充值会员</string>
</resources> </resources>