270 lines
10 KiB
XML
270 lines
10 KiB
XML
<?xml version="1.0" encoding="utf-8"?><!--
|
|
~ LEDD Project
|
|
~ Copyright (C) 2015 LEDD Team
|
|
~
|
|
~ This program is free software: you can redistribute it and/or modify
|
|
~ it under the terms of the GNU General Public License as published by
|
|
~ the Free Software Foundation, either version 3 of the License, or
|
|
~ (at your option) any later version.
|
|
~
|
|
~ This program is distributed in the hope that it will be useful,
|
|
~ but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
~ GNU General Public License for more details.
|
|
~
|
|
~ You should have received a copy of the GNU General Public License
|
|
~ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
-->
|
|
|
|
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:focusableInTouchMode="true"
|
|
android:minWidth="250dp"
|
|
android:orientation="vertical"
|
|
android:paddingLeft="15dp"
|
|
android:paddingRight="15dp"
|
|
android:paddingTop="15dp">
|
|
|
|
<RelativeLayout
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content">
|
|
|
|
<ImageView
|
|
android:id="@+id/img_host"
|
|
android:layout_width="25dp"
|
|
android:layout_height="25dp"
|
|
android:src="@drawable/ic_computer_black_48dp" />
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_alignBottom="@id/img_host"
|
|
android:layout_alignTop="@id/img_host"
|
|
android:layout_marginLeft="7dp"
|
|
android:layout_toRightOf="@id/img_host"
|
|
android:gravity="center"
|
|
android:text="@string/text_choose_daemon"
|
|
android:textAppearance="?android:textAppearanceSmall" />
|
|
|
|
</RelativeLayout>
|
|
|
|
<RelativeLayout
|
|
android:id="@+id/choose_daemon_lay"
|
|
android:layout_width="fill_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="15dp">
|
|
|
|
<ImageButton
|
|
android:id="@+id/imgbuttn_adddaemon"
|
|
android:layout_width="28dp"
|
|
android:layout_height="28dp"
|
|
android:layout_alignParentRight="true"
|
|
android:layout_centerVertical="true"
|
|
android:layout_gravity="center_vertical"
|
|
android:layout_marginLeft="10dp"
|
|
android:background="?android:attr/selectableItemBackground"
|
|
android:scaleType="fitCenter"
|
|
android:src="@drawable/ic_add_circle_black_48dp" />
|
|
|
|
<Spinner
|
|
android:id="@+id/spinner_daemon"
|
|
android:layout_width="fill_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="10dp"
|
|
android:layout_toLeftOf="@id/imgbuttn_adddaemon" />
|
|
|
|
</RelativeLayout>
|
|
|
|
|
|
<RelativeLayout
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="25dp">
|
|
|
|
<ImageView
|
|
android:id="@+id/img_controller"
|
|
android:layout_width="25dp"
|
|
android:layout_height="25dp"
|
|
android:src="@drawable/ic_developer_board_black_48dp" />
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_alignBottom="@id/img_controller"
|
|
android:layout_alignTop="@id/img_controller"
|
|
android:layout_marginLeft="7dp"
|
|
android:layout_toRightOf="@id/img_controller"
|
|
android:gravity="center"
|
|
android:text="@string/text_choose_controller"
|
|
android:textAppearance="?android:textAppearanceSmall" />
|
|
|
|
</RelativeLayout>
|
|
|
|
<RelativeLayout
|
|
android:id="@+id/choose_controller_lay"
|
|
android:layout_width="fill_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="15dp">
|
|
|
|
<ImageButton
|
|
android:id="@+id/imgbuttn_addcontroller"
|
|
android:layout_width="28dp"
|
|
android:layout_height="28dp"
|
|
android:layout_alignParentRight="true"
|
|
android:layout_centerVertical="true"
|
|
android:layout_gravity="center_vertical"
|
|
android:layout_marginLeft="10dp"
|
|
android:background="?android:attr/selectableItemBackground"
|
|
android:scaleType="fitCenter"
|
|
android:src="@drawable/ic_add_circle_black_48dp" />
|
|
|
|
<Spinner
|
|
android:id="@+id/spinner_controller"
|
|
android:layout_width="fill_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="10dp"
|
|
android:layout_toLeftOf="@id/imgbuttn_addcontroller" />
|
|
|
|
</RelativeLayout>
|
|
|
|
<RelativeLayout
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="25dp">
|
|
|
|
<ImageView
|
|
android:id="@+id/img_stripe"
|
|
android:layout_width="25dp"
|
|
android:layout_height="25dp"
|
|
android:src="@drawable/ic_wb_iridescent_black_48dp" />
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_alignBottom="@id/img_stripe"
|
|
android:layout_alignTop="@id/img_stripe"
|
|
android:layout_marginLeft="7dp"
|
|
android:layout_toRightOf="@id/img_stripe"
|
|
android:gravity="center"
|
|
android:text="@string/text_stripe_properties"
|
|
android:textAppearance="?android:textAppearanceSmall" />
|
|
|
|
</RelativeLayout>
|
|
|
|
<android.support.design.widget.TextInputLayout
|
|
android:id="@+id/input_stripe_name_lay"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="fill_parent"
|
|
android:layout_marginLeft="10dp"
|
|
android:layout_marginTop="15dp"
|
|
app:errorEnabled="true">
|
|
|
|
<android.support.design.widget.TextInputEditText
|
|
android:id="@+id/input_stripe_name"
|
|
android:layout_width="fill_parent"
|
|
android:layout_height="wrap_content"
|
|
android:hint="@string/hint_stripe_name"
|
|
android:inputType="text"
|
|
android:minEms="12" />
|
|
</android.support.design.widget.TextInputLayout>
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginLeft="9dp"
|
|
android:layout_marginTop="15dp"
|
|
android:gravity="center"
|
|
android:text="@string/text_channel_mapping"
|
|
android:textAppearance="?android:textAppearanceSmall" />
|
|
|
|
<HorizontalScrollView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginLeft="10dp"
|
|
android:layout_marginTop="10dp">
|
|
|
|
<LinearLayout
|
|
android:id="@+id/stripe_mapping_lay"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="horizontal">
|
|
|
|
<android.support.design.widget.TextInputLayout
|
|
android:id="@+id/input_channel_r_lay"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content">
|
|
|
|
<android.support.design.widget.TextInputEditText
|
|
android:id="@+id/input_channel_r"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:ems="2"
|
|
android:hint="@string/hint_channel_r"
|
|
android:inputType="number" />
|
|
</android.support.design.widget.TextInputLayout>
|
|
|
|
<ImageButton
|
|
android:id="@+id/imgbuttn_togglechannel_r"
|
|
android:layout_width="24dp"
|
|
android:layout_height="24dp"
|
|
android:layout_gravity="center_vertical"
|
|
android:layout_marginLeft="5dp"
|
|
android:background="?android:attr/selectableItemBackground"
|
|
android:scaleType="fitCenter"
|
|
android:src="@drawable/ic_visibility_off_black_48dp" />
|
|
|
|
<android.support.design.widget.TextInputLayout
|
|
android:id="@+id/input_channel_g_lay"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginLeft="10dp">
|
|
|
|
<android.support.design.widget.TextInputEditText
|
|
android:id="@+id/input_channel_g"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:ems="2"
|
|
android:hint="@string/hint_channel_g"
|
|
android:inputType="number" />
|
|
</android.support.design.widget.TextInputLayout>
|
|
|
|
<ImageButton
|
|
android:id="@+id/imgbuttn_togglechannel_g"
|
|
android:layout_width="24dp"
|
|
android:layout_height="24dp"
|
|
android:layout_gravity="center_vertical"
|
|
android:layout_marginLeft="5dp"
|
|
android:background="?android:attr/selectableItemBackground"
|
|
android:scaleType="fitCenter"
|
|
android:src="@drawable/ic_visibility_off_black_48dp" />
|
|
|
|
<android.support.design.widget.TextInputLayout
|
|
android:id="@+id/input_channel_b_lay"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginLeft="10dp">
|
|
|
|
<android.support.design.widget.TextInputEditText
|
|
android:id="@+id/input_channel_b"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:ems="2"
|
|
android:hint="@string/hint_channel_b"
|
|
android:inputType="number" />
|
|
</android.support.design.widget.TextInputLayout>
|
|
|
|
<ImageButton
|
|
android:id="@+id/imgbuttn_togglechannel_b"
|
|
android:layout_width="24dp"
|
|
android:layout_height="24dp"
|
|
android:layout_gravity="center_vertical"
|
|
android:layout_marginLeft="5dp"
|
|
android:background="?android:attr/selectableItemBackground"
|
|
android:scaleType="fitCenter"
|
|
android:src="@drawable/ic_visibility_off_black_48dp" />
|
|
</LinearLayout>
|
|
|
|
</HorizontalScrollView>
|
|
</LinearLayout> |