Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?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="match_parent"
- android:layout_weight="100"
- android:gravity="top"
- android:orientation="vertical"
- android:weightSum="100">
- <android.support.v7.widget.Toolbar
- android:id="@+id/deviceInfoToolBar"
- android:layout_width="match_parent"
- android:layout_height="?attr/actionBarSize"
- android:background="@color/white"
- android:elevation="4dp">
- <LinearLayout
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:orientation="horizontal"
- android:weightSum="100">
- <ImageView
- android:id="@+id/toolBarBackIcon"
- android:layout_width="0dp"
- android:layout_height="match_parent"
- android:clickable="true"
- android:padding="15dp"
- android:src="@drawable/arrow"
- android:layout_weight="20"/>
- <TextView
- android:id="@+id/deviceInfoToolbarTitle"
- android:layout_width="0dp"
- android:layout_height="wrap_content"
- android:layout_gravity="center"
- android:layout_weight="60"
- android:text="@string/AddDevice.toolbarText"
- android:textAlignment="center"
- android:textColor="@color/darkGreen"
- android:textSize="@dimen/text_size_normal" />
- <LinearLayout
- android:layout_width="0dp"
- android:layout_height="match_parent"
- android:layout_weight="20">
- <TextView
- android:layout_width="0dp"
- android:layout_height="match_parent"
- android:layout_weight="20" />
- </LinearLayout>
- </LinearLayout>
- <!--
- <RelativeLayout
- android:id="@+id/toolbar"
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:padding="0dp">
- <ImageView
- android:id="@+id/toolBarBackIcon"
- android:layout_width="60dp"
- android:layout_height="match_parent"
- android:layout_alignParentLeft="true"
- android:layout_alignParentStart="true"
- android:clickable="true"
- android:padding="17dp"
- android:src="@drawable/arrow" />
- <TextView
- android:id="@+id/deviceInfoToolbarTitle"
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:layout_centerInParent="true"
- android:layout_gravity="center"
- android:gravity="center_vertical"
- android:text="@string/AddDevice.toolbarText"
- android:textAlignment="center"
- android:textColor="@color/darkGreen"
- android:textSize="@dimen/text_size_normal" />
- </RelativeLayout>
- -->
- </android.support.v7.widget.Toolbar>
- <LinearLayout
- android:id="@+id/topContainer"
- android:layout_width="match_parent"
- android:layout_height="0dp"
- android:layout_weight="50"
- android:orientation="vertical"
- android:paddingTop="@dimen/gap_large">
- <LinearLayout
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_gravity="top"
- android:layout_marginEnd="@dimen/gap_large"
- android:layout_marginLeft="@dimen/gap_large"
- android:layout_marginRight="@dimen/gap_large"
- android:layout_marginStart="@dimen/gap_large"
- android:layout_marginTop="@dimen/margin_normal"
- android:background="@drawable/border_normal"
- android:orientation="vertical">
- <FrameLayout
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:descendantFocusability="beforeDescendants"
- android:focusableInTouchMode="true"
- android:padding="@dimen/padding_small">
- <EditText
- android:id="@+id/euiNumberEditText"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_gravity="center"
- android:background="@android:color/transparent"
- android:hint="@string/AddDevice.euiNumberEditText"
- android:nextFocusDown="@+id/nameEditText"
- android:paddingEnd="@dimen/padding_mini"
- android:paddingLeft="@dimen/padding_normal"
- android:paddingRight="@dimen/padding_mini"
- android:paddingStart="@dimen/padding_normal"
- android:singleLine="true"
- android:textColorHint="@color/borderColor"
- android:textCursorDrawable="@null"
- android:textSize="@dimen/AddDeviceActivity.textFieldTextSize" />
- </FrameLayout>
- <LinearLayout
- android:layout_width="match_parent"
- android:layout_height="@dimen/line_height"
- android:background="@color/borderColor" />
- <FrameLayout
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:padding="@dimen/padding_small">
- <EditText
- android:id="@+id/nameEditText"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_gravity="center"
- android:background="@android:color/transparent"
- android:hint="@string/AddDevice.deviceNameEditText"
- android:paddingEnd="@dimen/padding_mini"
- android:paddingLeft="@dimen/padding_normal"
- android:paddingRight="@dimen/padding_mini"
- android:paddingStart="@dimen/padding_normal"
- android:singleLine="true"
- android:textColorHint="@color/borderColor"
- android:textCursorDrawable="@null"
- android:textSize="@dimen/AddDeviceActivity.textFieldTextSize" />
- </FrameLayout>
- </LinearLayout>
- <LinearLayout
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:layout_marginEnd="@dimen/gap_medium"
- android:layout_marginLeft="@dimen/gap_medium"
- android:layout_marginRight="@dimen/gap_medium"
- android:layout_marginStart="@dimen/gap_medium"
- android:layout_marginTop="@dimen/margin_normal"
- android:gravity="top"
- android:weightSum="100">
- <ImageView
- android:id="@+id/addDeviceImage1"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_weight="25"
- android:clickable="true"
- android:src="@drawable/pet" />
- <ImageView
- android:id="@+id/addDeviceImage2"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_weight="25"
- android:clickable="true"
- android:paddingLeft="@dimen/AddDeviceActivity.imagePadding"
- android:paddingRight="@dimen/AddDeviceActivity.imagePadding"
- android:src="@drawable/bicycle" />
- <ImageView
- android:id="@+id/addDeviceImage3"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_weight="25"
- android:clickable="true"
- android:paddingLeft="@dimen/AddDeviceActivity.imagePadding"
- android:paddingRight="@dimen/AddDeviceActivity.imagePadding"
- android:src="@drawable/vehicle" />
- <ImageView
- android:id="@+id/addDeviceImage4"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_weight="25"
- android:clickable="true"
- android:src="@drawable/children" />
- </LinearLayout>
- </LinearLayout>
- <LinearLayout
- android:layout_width="match_parent"
- android:layout_height="0dp"
- android:layout_marginEnd="@dimen/gap_large"
- android:layout_marginLeft="@dimen/gap_large"
- android:layout_marginRight="@dimen/gap_large"
- android:layout_marginStart="@dimen/gap_large"
- android:layout_marginTop="@dimen/gap_large"
- android:layout_weight="10">
- <TextView
- android:id="@+id/addButton"
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:layout_marginBottom="@dimen/gap_small"
- android:layout_marginTop="@dimen/gap_small"
- android:background="@drawable/greenbuttonbg"
- android:gravity="center"
- android:text="@string/AddDevice.addDeviceButton"
- android:textColor="@android:color/white"
- android:textSize="@dimen/text_size_normal" />
- </LinearLayout>
- </LinearLayout>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement