layout_floating_input.xml 9.56 KB
<?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="wrap_content"
    android:background="#50000000"
    android:orientation="vertical">

    <RelativeLayout
        android:layout_width="match_parent"
        android:layout_height="46dp">

        <EditText
            android:id="@+id/floating_input_et"
            android:layout_width="545dp"
            android:layout_height="wrap_content"
            android:layout_centerVertical="true"
            android:layout_marginLeft="22dp"
            android:background="@drawable/rectangle_transprent_20fff"
            android:hint="我来说两句"
            android:imeOptions="actionSend"
            android:maxLength="140"
            android:maxLines="1"
            android:paddingLeft="14dp"
            android:textColor="#fff"
            android:textColorHint="#fff"
            android:textSize="14sp" />

        <ImageView
            android:id="@+id/floating_input_img_settings"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_alignParentRight="true"
            android:layout_centerVertical="true"
            android:layout_marginRight="25dp"
            android:src="@mipmap/settings" />

    </RelativeLayout>

    <LinearLayout
        android:id="@+id/floating_input_layout_settings"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:orientation="vertical"
        android:visibility="gone">

        <View
            android:layout_width="match_parent"
            android:layout_height="1dp"
            android:layout_marginBottom="27dp"
            android:layout_marginTop="7dp"
            android:background="#706f6b" />

        <LinearLayout
            android:id="@+id/floaying_input_layout_settings"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:orientation="horizontal">

            <LinearLayout
                android:layout_width="0dp"
                android:layout_height="wrap_content"
                android:layout_marginBottom="60dp"
                android:layout_weight="1"
                android:orientation="vertical">

                <TextView
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:layout_marginBottom="28dp"
                    android:layout_marginLeft="30dp"
                    android:text="弹幕位置:"
                    android:textColor="#fff" />

                <RadioGroup
                    android:id="@+id/floating_input_rg_location"
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:layout_marginLeft="91dp"
                    android:orientation="horizontal">

                    <RadioButton
                        android:id="@+id/rg_loc_rb_top"
                        android:layout_width="wrap_content"
                        android:layout_height="wrap_content"
                        android:layout_marginRight="29dp"
                        android:button="@drawable/danmu_location_bg_top"
                        android:checked="true" />


                    <RadioButton
                        android:id="@+id/rg_loc_rb_center"
                        android:layout_width="wrap_content"
                        android:layout_height="wrap_content"
                        android:layout_marginRight="29dp"
                        android:button="@drawable/danmu_location_bg_center"
                        android:checked="true" />


                    <RadioButton
                        android:id="@+id/rg_loc_rb_bottom"
                        android:layout_width="wrap_content"
                        android:layout_height="wrap_content"
                        android:button="@drawable/danmu_location_bg_bottom"
                        android:checked="true" />

                </RadioGroup>

            </LinearLayout>

            <LinearLayout
                android:layout_width="0dp"
                android:layout_height="wrap_content"
                android:layout_marginBottom="60dp"
                android:layout_weight="1"
                android:orientation="vertical">

                <TextView
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:layout_marginBottom="28dp"
                    android:layout_marginLeft="30dp"
                    android:text="文字颜色:"
                    android:textColor="#fff" />

                <com.cnlive.goldenline.ui.widget.MultiRowRadioGroup
                    android:id="@+id/floating_input_rg_color"
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:layout_marginLeft="91dp"
                    android:layout_marginTop="-5dp">

                    <LinearLayout
                        android:layout_width="wrap_content"
                        android:layout_height="0dp"
                        android:layout_weight="1"
                        android:orientation="horizontal">

                        <RadioButton
                            android:id="@+id/rg_color_rb_white"
                            android:layout_width="wrap_content"
                            android:layout_height="wrap_content"
                            android:layout_marginRight="22dp"
                            android:button="@drawable/danmu_color_bg_white"
                            android:checked="true" />


                        <RadioButton
                            android:id="@+id/rg_color_rb_orange"
                            android:layout_width="wrap_content"
                            android:layout_height="wrap_content"
                            android:layout_marginRight="22dp"
                            android:button="@drawable/danmu_color_bg_orange"
                            android:checked="true" />


                        <RadioButton
                            android:id="@+id/rg_color_rb_lightyellow"
                            android:layout_width="wrap_content"
                            android:layout_height="wrap_content"
                            android:layout_marginRight="22dp"
                            android:button="@drawable/danmu_color_bg_lightyellow"
                            android:checked="true" />

                        <RadioButton
                            android:id="@+id/rg_color_rb_yellow"
                            android:layout_width="wrap_content"
                            android:layout_height="wrap_content"
                            android:button="@drawable/danmu_color_bg_yellow"
                            android:checked="true" />

                    </LinearLayout>

                    <LinearLayout
                        android:layout_width="wrap_content"
                        android:layout_height="0dp"
                        android:layout_marginTop="16dp"
                        android:layout_weight="1"
                        android:orientation="horizontal">

                        <RadioButton
                            android:id="@+id/rg_color_rb_green"
                            android:layout_width="wrap_content"
                            android:layout_height="wrap_content"
                            android:layout_marginRight="22dp"
                            android:button="@drawable/danmu_color_bg_green"
                            android:checked="true" />


                        <RadioButton
                            android:id="@+id/rg_color_rb_skyblue"
                            android:layout_width="wrap_content"
                            android:layout_height="wrap_content"
                            android:layout_marginRight="22dp"
                            android:button="@drawable/danmu_color_bg_skyblue"
                            android:checked="true" />


                        <RadioButton
                            android:id="@+id/rg_color_rb_blue"
                            android:layout_width="wrap_content"
                            android:layout_height="wrap_content"
                            android:layout_marginRight="22dp"
                            android:button="@drawable/danmu_color_bg_blue"
                            android:checked="true" />

                        <RadioButton
                            android:id="@+id/rg_color_rb_purple"
                            android:layout_width="wrap_content"
                            android:layout_height="wrap_content"
                            android:button="@drawable/danmu_color_bg_purple"
                            android:checked="true" />

                    </LinearLayout>

                </com.cnlive.goldenline.ui.widget.MultiRowRadioGroup>

                <!--<GridView-->
                <!--android:id="@+id/floating_input_gridview"-->
                <!--android:layout_width="wrap_content"-->
                <!--android:layout_height="wrap_content"-->
                <!--android:layout_marginLeft="91dp"-->
                <!--android:cacheColorHint="@android:color/transparent"-->
                <!--android:horizontalSpacing="22dp"-->
                <!--android:numColumns="4"-->
                <!--android:verticalSpacing="14dp" />-->

            </LinearLayout>

        </LinearLayout>
    </LinearLayout>

</LinearLayout>