ex
Fork of mbed-os-example-mbed5-blinky by
Diff: dcs-sdk-java-master/app/src/main/res/layout/dcs_sample_activity_main.xml
- Revision:
- 45:2aa9f933c8d2
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/dcs-sdk-java-master/app/src/main/res/layout/dcs_sample_activity_main.xml Tue Jul 18 16:34:48 2017 +0800 @@ -0,0 +1,104 @@ +<?xml version="1.0" encoding="utf-8"?> +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:background="@color/color_f5f5f5" + android:orientation="vertical"> + + <TextView + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_gravity="center_horizontal" + android:text="@string/wakeup_word" + android:textColor="@android:color/black" + android:textSize="18dp" /> + + <LinearLayout + android:layout_width="match_parent" + android:layout_height="0dp" + android:layout_weight="1" + android:orientation="vertical"> + + <ScrollView + android:id="@+id/id_sv_request" + android:layout_width="match_parent" + android:layout_height="wrap_content"> + + <LinearLayout + android:id="@+id/topLinearLayout" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:orientation="vertical" /> + </ScrollView> + </LinearLayout> + + + <LinearLayout + android:id="@+id/songLinearLayout" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_gravity="center" + android:orientation="horizontal"> + + <Button + android:id="@+id/previousSongBtn" + android:layout_width="0dp" + android:layout_height="wrap_content" + android:layout_weight="1" + android:text="@string/previous_audio" /> + + <Button + android:id="@+id/pauseOrPlayBtn" + android:layout_width="0dp" + android:layout_height="wrap_content" + android:layout_weight="1" + android:text="@string/audio_default" /> + + <Button + android:id="@+id/nextSongBtn" + android:layout_width="0dp" + android:layout_height="wrap_content" + android:layout_weight="1" + android:text="@string/next_audio" /> + + </LinearLayout> + + <TextView + android:id="@+id/id_tv_time_0" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:textColor="@android:color/black" + android:textSize="16dp" /> + + + <LinearLayout + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_marginBottom="10dp" + android:orientation="horizontal"> + + <Button + android:id="@+id/voiceBtn" + android:layout_width="0dp" + android:layout_height="match_parent" + android:layout_margin="10dp" + android:layout_weight="1" + android:background="@drawable/btn_bg" + android:text="@string/stop_record" + android:textColor="@android:color/white" + android:textSize="16dp" /> + + <Button + android:id="@+id/openLogBtn" + android:layout_width="0dp" + android:layout_height="match_parent" + android:layout_margin="10dp" + android:layout_weight="1" + android:background="@drawable/btn_bg" + android:text="@string/open_log" + android:textColor="@android:color/white" + android:textSize="16dp" /> + + </LinearLayout> + +</LinearLayout>
