语音转文字
This commit is contained in:
@@ -9,6 +9,13 @@
|
||||
android:layout_height="match_parent"
|
||||
android:overScrollMode="never" />
|
||||
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/voice_press"
|
||||
android:layout_width="54dp"
|
||||
android:layout_height="54dp"
|
||||
android:visibility="gone"
|
||||
android:src="@mipmap/icon_voice_press"
|
||||
android:layout_alignParentBottom="true"
|
||||
android:layout_marginStart="54dp" />
|
||||
|
||||
</RelativeLayout>
|
||||
@@ -245,7 +245,7 @@
|
||||
android:layout_centerVertical="true"
|
||||
android:layout_marginStart="10dp"
|
||||
android:layout_marginTop="5dp"
|
||||
|
||||
android:clickable="false"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<TextView
|
||||
@@ -264,17 +264,24 @@
|
||||
android:textSize="12sp" />
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/voice_button"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_weight="4"
|
||||
android:gravity="center"
|
||||
android:background="@drawable/bc_sound_recording_right">
|
||||
android:background="@drawable/bc_sound_recording_right"
|
||||
android:clickable="true"
|
||||
android:focusable="true"
|
||||
android:focusableInTouchMode="true"
|
||||
android:gravity="center">
|
||||
|
||||
<ImageView
|
||||
|
||||
android:layout_width="14dp"
|
||||
android:layout_height="14dp"
|
||||
android:layout_gravity="center"
|
||||
|
||||
android:clickable="false"
|
||||
android:focusable="false"
|
||||
android:focusableInTouchMode="false"
|
||||
android:src="@mipmap/icon_voice"
|
||||
android:visibility="visible" />
|
||||
</LinearLayout>
|
||||
|
||||
15
live/src/main/res/layout/view_text_hint.xml
Normal file
15
live/src/main/res/layout/view_text_hint.xml
Normal file
@@ -0,0 +1,15 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="309dp"
|
||||
android:layout_height="44dp"
|
||||
android:background="@drawable/bg_voice_chat">
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_centerInParent="true"
|
||||
android:layout_centerHorizontal="true"
|
||||
android:text="@string/more_than"
|
||||
android:textColor="@color/white"
|
||||
android:textSize="14sp" />
|
||||
</RelativeLayout>
|
||||
55
live/src/main/res/layout/view_voice_dialog.xml
Normal file
55
live/src/main/res/layout/view_voice_dialog.xml
Normal file
@@ -0,0 +1,55 @@
|
||||
<?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">
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/icon_withdraw"
|
||||
android:layout_width="38dp"
|
||||
android:layout_height="31dp"
|
||||
android:layout_centerHorizontal="true"
|
||||
android:layout_marginTop="5dp"
|
||||
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:scaleType="fitCenter"
|
||||
android:src="@mipmap/img_p" />
|
||||
|
||||
<pl.droidsonroids.gif.GifImageView
|
||||
android:id="@+id/gif_view"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_centerHorizontal="true"
|
||||
android:layout_marginTop="30dp"
|
||||
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:textColor="#FFFFFF"
|
||||
android:textSize="14sp" />
|
||||
</RelativeLayout>
|
||||
Reference in New Issue
Block a user