dialog_add_channel.xml 2.77 KB
Newer Older
Yusuke Iwaki's avatar
Yusuke Iwaki committed
1 2
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
Yusuke Iwaki's avatar
Yusuke Iwaki committed
3 4 5
        xmlns:app="http://schemas.android.com/apk/res-auto"
        android:orientation="vertical"
        android:layout_width="wrap_content"
Yusuke Iwaki's avatar
Yusuke Iwaki committed
6
        android:layout_height="wrap_content"
Yusuke Iwaki's avatar
Yusuke Iwaki committed
7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
        android:minWidth="288dp"
        android:padding="@dimen/margin_24"
        >
    <android.support.design.widget.TextInputLayout
            android:id="@+id/text_input_channel_name"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            >
        <android.support.design.widget.TextInputEditText
                android:id="@+id/editor_channel_name"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:inputType="textWebEmailAddress"
                android:hint="@string/dialog_add_channel_name"
                />
    </android.support.design.widget.TextInputLayout>
Yusuke Iwaki's avatar
Yusuke Iwaki committed
23

Yusuke Iwaki's avatar
Yusuke Iwaki committed
24 25 26 27 28 29 30 31 32 33 34 35 36 37 38
    <LinearLayout
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:orientation="horizontal"
            android:layout_marginTop="@dimen/margin_16"
            android:layout_marginStart="@dimen/margin_8"
            android:layout_marginEnd="@dimen/margin_8"
            >
        <CheckBox
                android:id="@+id/checkbox_private"
                android:layout_width="0px"
                android:layout_height="wrap_content"
                android:layout_weight="1"
                android:text="@string/dialog_add_channel_private"
                />
Yusuke Iwaki's avatar
Yusuke Iwaki committed
39

Yusuke Iwaki's avatar
Yusuke Iwaki committed
40 41 42 43 44 45 46 47
        <CheckBox
                android:id="@+id/checkbox_read_only"
                android:layout_width="0px"
                android:layout_height="wrap_content"
                android:layout_weight="1"
                android:text="@string/dialog_add_channel_read_only"
                />
    </LinearLayout>
Yusuke Iwaki's avatar
Yusuke Iwaki committed
48

Yusuke Iwaki's avatar
Yusuke Iwaki committed
49 50 51 52
    <Space
            android:layout_width="match_parent"
            android:layout_height="@dimen/margin_16"
            />
Yusuke Iwaki's avatar
Yusuke Iwaki committed
53

Yusuke Iwaki's avatar
Yusuke Iwaki committed
54 55 56 57 58 59 60 61 62
    <android.support.design.widget.FloatingActionButton
            android:id="@+id/btn_add_channel"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_gravity="end|bottom"
            app:elevation="2dp"
            app:fabSize="mini"
            app:srcCompat="@drawable/ic_arrow_forward_white_24dp"
            />
Yusuke Iwaki's avatar
Yusuke Iwaki committed
63

Yusuke Iwaki's avatar
Yusuke Iwaki committed
64 65 66 67 68 69 70 71 72
    <chat.rocket.android.widget.WaitingView
            android:id="@+id/waiting"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_gravity="center"
            android:visibility="gone"
            app:dotCount="5"
            app:dotSize="12dp"
            />
Yusuke Iwaki's avatar
Yusuke Iwaki committed
73 74

</LinearLayout>