Funky_Voice/app/src/main/res/layout/activity_custom.xml
litingting fcf6ed186b init
2025-11-12 14:24:52 +08:00

111 lines
3.7 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout 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"
android:id="@+id/main"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context="com.prank.funky.voice.recordSounds.CustomActivity">
<TextView
android:id="@+id/title"
android:layout_width="wrap_content"
android:layout_height="45dp"
android:layout_centerHorizontal="true"
android:gravity="center"
android:text="@string/record_title"
android:textColor="@color/black"
android:textSize="17sp" />
<FrameLayout
android:id="@+id/framelayout_back"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_alignTop="@id/title"
android:layout_alignBottom="@id/title"
android:layout_marginStart="5dp"
android:paddingStart="10dp"
android:paddingEnd="10dp">
<ImageView
android:layout_width="26dp"
android:layout_height="26dp"
android:layout_gravity="center"
android:src="@drawable/icon_back_black" />
</FrameLayout>
<androidx.recyclerview.widget.RecyclerView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:id="@+id/custom_recyclerview"
android:layout_below="@id/framelayout_back"/>
<LinearLayout
android:id="@+id/empty_custom"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_below="@id/title"
android:layout_above="@id/linear_bottom"
android:gravity="center"
android:visibility="gone"
android:orientation="vertical">
<ImageView
android:layout_width="200dp"
android:layout_height="200dp"
android:layout_gravity="center_horizontal"
android:src="@drawable/image_favorite_empty" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal"
android:text="@string/string_custom_empty"
android:textColor="@color/gray_color"
android:textSize="15sp" />
</LinearLayout>
<LinearLayout
android:id="@+id/linear_bottom"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:paddingBottom="10dp"
android:orientation="horizontal"
android:paddingStart="10dp"
android:paddingTop="10dp"
android:paddingEnd="10dp">
<TextView
android:layout_width="0dp"
android:layout_height="45dp"
android:layout_gravity="center"
android:layout_weight="1"
android:id="@+id/text_import"
android:background="@drawable/bg_main_stoke_bg"
android:gravity="center"
android:textSize="17sp"
android:text="@string/import_audio"
android:textColor="@color/white" />
<TextView
android:layout_width="0dp"
android:layout_height="45dp"
android:layout_gravity="center"
android:layout_marginStart="10dp"
android:layout_weight="1"
android:textSize="17sp"
android:id="@+id/text_recording"
android:text="@string/recording_audio"
android:textColor="@color/white"
android:background="@drawable/bg_main_stoke_bg"
android:gravity="center" />
</LinearLayout>
</RelativeLayout>