fragment_input_hostname.xml 1.83 KB
Newer Older
1 2
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
3
    xmlns:app="http://schemas.android.com/apk/res-auto"
4 5
    android:layout_width="match_parent"
    android:layout_height="match_parent"
6 7 8 9 10 11 12 13 14 15 16 17
    android:background="?attr/colorPrimaryDark"
    >

  <LinearLayout
      android:layout_width="wrap_content"
      android:layout_height="wrap_content"
      android:layout_gravity="center"
      android:background="@color/white"
      android:minWidth="288dp"
      android:orientation="horizontal"
      android:padding="@dimen/margin_24"
      >
18 19

    <LinearLayout
20
        android:layout_width="0px"
21
        android:layout_height="wrap_content"
22 23 24
        android:layout_weight="1"
        android:orientation="vertical"
        >
25

26 27 28 29 30 31
      <TextView
          android:layout_width="match_parent"
          android:layout_height="wrap_content"
          android:text="hostname"
          android:textAppearance="@style/TextAppearance.AppCompat.Caption"
          />
32

33 34 35 36 37 38 39 40 41
      <EditText
          android:id="@+id/editor_hostname"
          android:layout_width="match_parent"
          android:layout_height="wrap_content"
          android:hint="demo.rocket.chat"
          android:imeOptions="actionGo"
          android:inputType="textWebEditText"
          android:singleLine="true"
          />
42
    </LinearLayout>
43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58

    <Space
        android:layout_width="@dimen/margin_8"
        android:layout_height="wrap_content"
        />

    <android.support.design.widget.FloatingActionButton
        android:id="@+id/btn_connect"
        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"
        />
  </LinearLayout>
59
</FrameLayout>