Lifefragment

This commit is contained in:
fl_shy 2024-06-12 21:52:47 +08:00
parent 0cec1e9301
commit 39ec9897fa
15 changed files with 201 additions and 4 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.2 KiB

View File

@ -0,0 +1,7 @@
<shape xmlns:android="http://schemas.android.com/apk/res/android">
<solid android:color="#a9c7c9"/>
<corners android:radius="16dp"/>
<stroke
android:width="2dp"
android:color="@android:color/darker_gray"/>
</shape>

View File

@ -0,0 +1,7 @@
<shape xmlns:android="http://schemas.android.com/apk/res/android">
<solid android:color="#e3a298"/>
<corners android:radius="16dp"/>
<stroke
android:width="2dp"
android:color="@android:color/darker_gray"/>
</shape>

View File

@ -0,0 +1,7 @@
<shape xmlns:android="http://schemas.android.com/apk/res/android">
<solid android:color="#f9c3c1"/>
<corners android:radius="16dp"/>
<stroke
android:width="2dp"
android:color="@android:color/darker_gray"/>
</shape>

View File

@ -0,0 +1,7 @@
<shape xmlns:android="http://schemas.android.com/apk/res/android">
<solid android:color="#9095ba"/>
<corners android:radius="16dp"/>
<stroke
android:width="2dp"
android:color="@android:color/darker_gray"/>
</shape>

View File

@ -0,0 +1,7 @@
<shape xmlns:android="http://schemas.android.com/apk/res/android">
<solid android:color="#efae8e"/>
<corners android:radius="16dp"/>
<stroke
android:width="2dp"
android:color="@android:color/darker_gray"/>
</shape>

View File

@ -0,0 +1,7 @@
<shape xmlns:android="http://schemas.android.com/apk/res/android">
<solid android:color="#f3c178"/>
<corners android:radius="16dp"/>
<stroke
android:width="2dp"
android:color="@android:color/darker_gray"/>
</shape>

View File

@ -0,0 +1,7 @@
<shape xmlns:android="http://schemas.android.com/apk/res/android">
<solid android:color="#5f89a9"/>
<corners android:radius="16dp"/>
<stroke
android:width="2dp"
android:color="@android:color/darker_gray"/>
</shape>

View File

@ -1,13 +1,161 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android" <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools" xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
tools:context=".LifeFragment"> tools:context=".LifeFragment">
<!-- TODO: Update blank fragment layout -->
<TextView <TextView
android:layout_width="match_parent" android:id="@+id/textView39"
android:layout_height="match_parent" android:layout_width="wrap_content"
android:text="生活" /> android:layout_height="wrap_content"
android:text="生活指数"
android:textSize="20dp"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
<LinearLayout
android:id="@+id/linearLayout2"
android:layout_width="180dp"
android:layout_height="200dp"
android:layout_centerHorizontal="true"
android:layout_marginStart="16dp"
android:layout_marginTop="40dp"
android:background="@drawable/rounded_corners3"
android:elevation="4dp"
android:orientation="vertical"
android:padding="16dp"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent">
<ImageView
android:id="@+id/imageView30"
android:layout_width="wrap_content"
android:layout_height="150dp"
android:src="@drawable/img_17" />
</LinearLayout>
<LinearLayout
android:id="@+id/linearLayout3"
android:layout_width="180dp"
android:layout_height="60dp"
android:layout_centerHorizontal="true"
android:layout_marginTop="40dp"
android:background="@drawable/rounded_corners4"
android:elevation="4dp"
android:orientation="vertical"
android:padding="16dp"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toEndOf="@+id/linearLayout2"
app:layout_constraintTop_toTopOf="parent">
<ImageView
android:id="@+id/imageView31"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:src="@drawable/img_18" />
</LinearLayout>
<LinearLayout
android:id="@+id/linearLayout4"
android:layout_width="180dp"
android:layout_height="127dp"
android:layout_centerHorizontal="true"
android:layout_marginTop="8dp"
android:background="@drawable/rounded_corners5"
android:elevation="4dp"
android:orientation="vertical"
android:padding="16dp"
app:layout_constraintStart_toStartOf="@+id/linearLayout3"
app:layout_constraintTop_toBottomOf="@+id/linearLayout3">
<ImageView
android:id="@+id/imageView32"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:src="@drawable/img_19" />
</LinearLayout>
<LinearLayout
android:id="@+id/linearLayout5"
android:layout_width="380dp"
android:layout_height="200dp"
android:layout_centerHorizontal="true"
android:layout_marginTop="8dp"
android:background="@drawable/rounded_corners6"
android:elevation="4dp"
android:orientation="vertical"
android:padding="16dp"
app:layout_constraintStart_toStartOf="@+id/linearLayout2"
app:layout_constraintTop_toBottomOf="@+id/linearLayout2">
<ImageView
android:id="@+id/imageView33"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:src="@drawable/img_20" />
</LinearLayout>
<LinearLayout
android:id="@+id/linearLayout6"
android:layout_width="180dp"
android:layout_height="180dp"
android:layout_centerHorizontal="true"
android:layout_marginTop="8dp"
android:background="@drawable/rounded_corners7"
android:elevation="4dp"
android:orientation="vertical"
android:padding="16dp"
app:layout_constraintStart_toStartOf="@+id/linearLayout5"
app:layout_constraintTop_toBottomOf="@+id/linearLayout5">
<ImageView
android:id="@+id/imageView34"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:src="@drawable/img_21" />
</LinearLayout>
<LinearLayout
android:id="@+id/linearLayout7"
android:layout_width="180dp"
android:layout_height="120dp"
android:layout_centerHorizontal="true"
android:layout_marginTop="8dp"
android:background="@drawable/rounded_corners8"
android:elevation="4dp"
android:orientation="vertical"
android:padding="16dp"
app:layout_constraintEnd_toEndOf="@+id/linearLayout5"
app:layout_constraintTop_toBottomOf="@+id/linearLayout5">
<ImageView
android:id="@+id/imageView35"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:src="@drawable/img_22" />
</LinearLayout>
<LinearLayout
android:id="@+id/linearLayout8"
android:layout_width="180dp"
android:layout_height="52dp"
android:layout_centerHorizontal="true"
android:layout_marginTop="8dp"
android:background="@drawable/rounded_corners9"
android:elevation="4dp"
android:orientation="vertical"
android:padding="16dp"
app:layout_constraintEnd_toEndOf="@+id/linearLayout7"
app:layout_constraintTop_toBottomOf="@+id/linearLayout7">
<ImageView
android:id="@+id/imageView36"
android:layout_width="50dp"
android:layout_height="30dp"
android:src="@drawable/img_23" />
</LinearLayout>
</androidx.constraintlayout.widget.ConstraintLayout> </androidx.constraintlayout.widget.ConstraintLayout>