语音转文字

This commit is contained in:
18401019693
2022-10-25 14:05:33 +08:00
parent b4e048bf74
commit 172b37ece2
11 changed files with 94 additions and 54 deletions

View File

@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android">
<corners android:radius="9dp"/>
<solid android:color="#000000"/>
<solid android:color="#90000000"/>
</shape>

View File

@@ -11,8 +11,8 @@
<ImageView
android:id="@+id/voice_press"
android:layout_width="54dp"
android:layout_height="54dp"
android:layout_width="64dp"
android:layout_height="64dp"
android:visibility="gone"
android:src="@mipmap/icon_voice_press"
android:layout_alignParentBottom="true"

View File

@@ -1,23 +1,27 @@
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="270dp"
android:layout_height="170dp"
android:background="@drawable/bg_voice_chat">
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="@drawable/bg_voice_chat"
android:gravity="center_horizontal"
android:orientation="vertical">
<ImageView
android:id="@+id/icon_withdraw"
android:layout_width="38dp"
android:layout_height="31dp"
android:layout_centerHorizontal="true"
android:layout_marginTop="5dp"
android:layout_marginTop="23dp"
android:layout_marginStart="20dp"
android:layout_marginEnd="20dp"
android:src="@mipmap/icon_withdraw" />
<ImageView
android:id="@+id/voice_fluctuations"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerHorizontal="true"
android:layout_marginTop="30dp"
android:layout_marginTop="23dp"
android:layout_marginStart="20dp"
android:layout_marginEnd="20dp"
android:scaleType="fitCenter"
android:src="@mipmap/img_p" />
@@ -25,31 +29,31 @@
android:id="@+id/gif_view"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerHorizontal="true"
android:layout_marginTop="30dp"
android:layout_marginTop="23dp"
android:layout_marginStart="20dp"
android:layout_marginEnd="20dp"
android:background="@mipmap/voice_fluctuations"
android:visibility="gone" />
<TextView
android:id="@+id/fingers_slide"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:layout_centerHorizontal="true"
android:layout_marginBottom="16dp"
android:text="@string/fingers_slide"
android:textColor="#9A9A9A" />
<TextView
android:id="@+id/voice_chat"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerHorizontal="true"
android:layout_marginStart="8dp"
android:layout_marginTop="55dp"
android:layout_marginEnd="8dp"
android:layout_marginBottom="8dp"
android:maxLines="4"
android:layout_marginStart="5dp"
android:layout_marginTop="8dp"
android:layout_marginBottom="10dp"
android:layout_marginEnd="5dp"
android:maxLines="5"
android:textColor="#FFFFFF"
android:textSize="14sp" />
</RelativeLayout>
<TextView
android:id="@+id/fingers_slide"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginBottom="16dp"
android:text="@string/fingers_slide"
android:textColor="#9A9A9A" />
</LinearLayout>