<pre name="code" class="java"><LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:orientation="vertical"
    tools:context="com.example.testtts.MainActivity" >

    <LinearLayout
        android:layout_width="match_parent"
        android:layout_height="0dip"
        android:layout_weight="0.7"
        android:background="#3E8EFB"
        android:gravity="center"
        android:orientation="vertical" >

        <TextView
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:text="讯飞语音朗读DEMO"
            android:textColor="@android:color/white"
            android:textSize="18sp" />
    </LinearLayout>

    <EditText
        android:id="@+id/et_text_from"
        android:layout_width="match_parent"
        android:layout_height="0dip"
        android:layout_weight="7.5"
        android:background="@drawable/body_bg"
        android:gravity="top|left"
        android:hint="请输入您要朗读的内容。"
        android:paddingBottom="8dip"
        android:paddingLeft="8dip"
        android:paddingRight="8dip"
        android:paddingTop="8dip"
        android:textSize="14sp" >
    </EditText>

    <LinearLayout
        android:layout_width="match_parent"
        android:layout_height="0dip"
        android:layout_weight="0.7"
        android:orientation="horizontal" >

        <Button
            android:id="@+id/btn_start_read"
            android:layout_width="0dip"
            android:layout_height="fill_parent"
            android:layout_weight="1"
            android:background="@drawable/select_btn_bg"
            android:text="朗读"
            android:textColor="@color/color_select"
            android:textSize="14sp" />

        <Button
             android:id="@+id/btn_pause_read"
            android:layout_width="0dip"
            android:layout_height="fill_parent"
            android:layout_weight="1"
            android:background="@drawable/select_btn_bg"
            android:text="暂停"
            android:textColor="@color/color_select"
            android:textSize="14sp" />
        
        <Button
             android:id="@+id/btn_contimue_read"
            android:layout_width="0dip"
            android:layout_height="fill_parent"
            android:layout_weight="1"
            android:background="@drawable/select_btn_bg"
            android:text="继续"
            android:textColor="@color/color_select"
            android:textSize="14sp" />
        
        
        <Button
             android:id="@+id/btn_stop_read"
            android:layout_width="0dip"
            android:layout_height="fill_parent"
            android:layout_weight="1"
            android:background="@drawable/select_btn_bg"
            android:text="停止"
            android:textColor="@color/color_select"
            android:textSize="14sp" />
    </LinearLayout>

</LinearLayout>






评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值