fragment_input_hostname.xml 3.6 KB
Newer Older
1
<?xml version="1.0" encoding="utf-8"?>
Filipe de Lima Brito's avatar
Filipe de Lima Brito committed
2 3 4 5 6 7 8 9
<android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  xmlns:app="http://schemas.android.com/apk/res-auto"
  xmlns:tools="http://schemas.android.com/tools"
  android:layout_width="match_parent"
  android:layout_height="match_parent"
  android:background="?attr/colorPrimaryDark"
  android:padding="@dimen/margin_8"
  tools:context="chat.rocket.android.fragment.add_server.InputHostnameFragment">
10

Filipe de Lima Brito's avatar
Filipe de Lima Brito committed
11 12 13
  <android.support.constraint.ConstraintLayout
    android:id="@+id/container"
    android:layout_width="wrap_content"
14
    android:minWidth="280dp"
Filipe de Lima Brito's avatar
Filipe de Lima Brito committed
15
    android:layout_height="wrap_content"
16 17 18 19 20 21
    android:paddingStart="@dimen/margin_16"
    android:paddingLeft="@dimen/margin_16"
    android:paddingEnd="@dimen/margin_16"
    android:paddingRight="@dimen/margin_16"
    android:paddingTop="@dimen/margin_16"
    android:paddingBottom="@dimen/margin_8"
Filipe de Lima Brito's avatar
Filipe de Lima Brito committed
22 23 24 25 26
    android:background="@drawable/container_bg"
    app:layout_constraintTop_toTopOf="parent"
    app:layout_constraintBottom_toTopOf="@+id/version_info"
    app:layout_constraintRight_toRightOf="parent"
    app:layout_constraintLeft_toLeftOf="parent">
27

Filipe de Lima Brito's avatar
Filipe de Lima Brito committed
28 29 30 31 32 33 34 35 36 37 38
    <TextView
      android:id="@+id/hostnameTextView"
      android:layout_width="wrap_content"
      android:layout_height="wrap_content"
      android:paddingStart="4dp"
      android:paddingLeft="4dp"
      android:text="@string/fragment_input_hostname_hostname"
      android:textAppearance="@style/TextAppearance.AppCompat.Caption"
      app:layout_constraintTop_toTopOf="parent"
      app:layout_constraintLeft_toLeftOf="@+id/editor_hostname"
      app:layout_constraintBottom_toTopOf="@+id/editor_hostname" />
39

Filipe de Lima Brito's avatar
Filipe de Lima Brito committed
40 41
    <EditText
      android:id="@+id/editor_hostname"
42
      android:layout_width="0dp"
Filipe de Lima Brito's avatar
Filipe de Lima Brito committed
43
      android:layout_height="wrap_content"
44
      android:layout_marginTop="@dimen/margin_8"
Filipe de Lima Brito's avatar
Filipe de Lima Brito committed
45 46 47 48 49
      android:hint="@string/fragment_input_hostname_server_hint"
      android:imeOptions="actionSend"
      android:inputType="textWebEditText"
      android:maxLines="1"
      app:layout_constraintTop_toBottomOf="@+id/hostnameTextView"
50
      app:layout_constraintBottom_toTopOf="@+id/btn_connect"
Filipe de Lima Brito's avatar
Filipe de Lima Brito committed
51
      app:layout_constraintLeft_toLeftOf="parent"
52
      app:layout_constraintRight_toRightOf="parent" />
53

54
    <Button
Filipe de Lima Brito's avatar
Filipe de Lima Brito committed
55
      android:id="@+id/btn_connect"
56
      android:layout_width="0dp"
Filipe de Lima Brito's avatar
Filipe de Lima Brito committed
57
      android:layout_height="wrap_content"
58 59 60 61 62 63 64
      android:layout_marginTop="@dimen/margin_8"
      android:text="@string/fragment_input_hostname_connect"
      app:layout_constraintTop_toBottomOf="@+id/editor_hostname"
      app:layout_constraintLeft_toLeftOf="parent"
      app:layout_constraintRight_toRightOf="parent"
      app:layout_constraintBottom_toBottomOf="parent"
      style="@style/Widget.AppCompat.Button.Colored" />
Filipe de Lima Brito's avatar
Filipe de Lima Brito committed
65
  </android.support.constraint.ConstraintLayout>
66

Filipe de Lima Brito's avatar
Filipe de Lima Brito committed
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:visibility="gone"
    app:layout_constraintTop_toTopOf="parent"
73
    app:layout_constraintBottom_toTopOf="@+id/version_info"
Filipe de Lima Brito's avatar
Filipe de Lima Brito committed
74 75
    app:layout_constraintLeft_toLeftOf="parent"
    app:layout_constraintRight_toRightOf="parent"/>
76

Filipe de Lima Brito's avatar
Filipe de Lima Brito committed
77 78 79 80 81 82 83 84 85 86
  <TextView
    android:id="@+id/version_info"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:textColor="@android:color/white"
    android:textAppearance="@style/TextAppearance.AppCompat.Caption"
    app:layout_constraintRight_toRightOf="parent"
    app:layout_constraintLeft_toLeftOf="parent"
    app:layout_constraintBottom_toBottomOf="parent" />
</android.support.constraint.ConstraintLayout>