Draw_Sketch/app/src/main/res/layout/activity_main.xml
2024-09-09 15:35:30 +08:00

82 lines
3.1 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:orientation="vertical"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/main"
android:background="@mipmap/initial_page"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".MainActivity">
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:paddingTop="52dp"
android:layout_weight="370">
<FrameLayout
android:id="@+id/setting"
android:layout_alignParentLeft="true"
android:layout_marginStart="32dp"
android:background="@drawable/main_bg_16"
android:layout_width="44dp"
android:layout_height="44dp"
tools:ignore="RtlHardcoded,UselessParent">
<ImageView
android:layout_gravity="center"
android:layout_width="23dp"
android:layout_height="23dp"
android:src="@drawable/setting_icon" />
</FrameLayout>
<FrameLayout
android:id="@+id/collection"
android:layout_alignParentRight="true"
android:layout_marginEnd="32dp"
android:background="@drawable/main_bg_16"
android:layout_width="44dp"
android:layout_height="44dp"
tools:ignore="RtlHardcoded,UselessParent">
<ImageView
android:id="@+id/collect"
android:layout_gravity="center"
android:layout_width="23dp"
android:layout_height="23dp"
android:src="@drawable/collection" />
</FrameLayout>
</RelativeLayout>
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_weight="470"
android:background="@drawable/rounded_corners_view"
tools:ignore="InefficientWeight,UselessLeaf">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="220dp"
android:layout_marginTop="24dp">
<ImageView
android:id="@+id/home"
android:src="@drawable/home_icon"
android:layout_marginStart="24dp"
android:layout_width="154dp"
android:layout_weight="1"
android:layout_height="match_parent">
</ImageView>
<ImageView
android:id="@+id/import_photo"
android:layout_marginStart="10dp"
android:src="@drawable/import_photo"
android:layout_weight="1"
android:layout_width="154dp"
android:layout_height="match_parent">
</ImageView>
<View
android:layout_width="24dp"
android:layout_height="match_parent">
</View>
</LinearLayout>
</RelativeLayout>
</LinearLayout>