Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:tools="http://schemas.android.com/tools"
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- tools:context="com.led.GUI.motorControl">
- <LinearLayout
- android:layout_width="368dp"
- android:layout_height="495dp"
- android:orientation="vertical"
- tools:layout_editor_absoluteX="8dp"
- tools:layout_editor_absoluteY="8dp">
- <LinearLayout
- android:id="@+id/lmotor"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:orientation="vertical"
- android:layout_marginTop="40dp"
- tools:layout_editor_absoluteX="8dp"
- tools:layout_editor_absoluteY="8dp">
- <!--left motor seekbar-->
- <SeekBar
- android:id="@+id/lmotorcontrol"
- android:layout_width="match_parent"
- android:layout_height="30dp"
- tools:layout_editor_absoluteX="8dp"
- tools:layout_editor_absoluteY="8dp"
- android:max="100"
- android:progress="50"/>
- </LinearLayout>
- <LinearLayout
- android:id="@+id/connect_and_output"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_marginTop="100dp"
- android:orientation="vertical"
- tools:layout_editor_absoluteX="8dp"
- tools:layout_editor_absoluteY="8dp">
- <!--left motor text display-->
- <TextView
- android:id="@+id/lTextOutput"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:text="TextView" />
- <LinearLayout
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:orientation="horizontal">
- <Button
- android:id="@+id/stop_button"
- android:layout_width="wrap_content"
- android:layout_height="90dp"
- android:layout_weight="1"
- android:orientation="vertical"
- android:rotation="90"
- android:text="STOP"
- android:textAppearance="@style/TextAppearance.AppCompat" />
- </LinearLayout>
- <!--right motor text display-->
- <TextView
- android:id="@+id/rTextOutput"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:text="TextView" />
- </LinearLayout>
- <LinearLayout
- android:id="@+id/rmotor"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:orientation="vertical"
- android:layout_marginTop="150dp"
- tools:layout_editor_absoluteX="8dp"
- tools:layout_editor_absoluteY="8dp">
- <!--right motor seekbar-->
- <SeekBar
- android:id="@+id/rmotorcontrol"
- android:layout_width="match_parent"
- android:layout_height="30dp"
- android:max="100"
- android:progress="50"/>
- </LinearLayout>
- </LinearLayout>
- <!--<TextView
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:text="Motor Control"
- android:id="@+id/textView2"
- android:layout_alignParentTop="true"
- android:layout_alignParentLeft="true"
- android:layout_alignParentStart="true" />-->
- <!--<SeekBar
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:id="@+id/seekBar"
- android:max="255"
- android:progress="1"
- android:indeterminate="false"
- android:layout_below="@+id/textView3"
- android:layout_alignParentLeft="true"
- android:layout_alignParentStart="true"
- android:layout_alignParentRight="true"
- android:layout_alignParentEnd="true" />
- <TextView
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:textAppearance="?android:attr/textAppearanceLarge"
- android:text="Brightness"
- android:id="@+id/textView3"
- android:layout_marginTop="42dp"
- android:layout_below="@+id/button3"
- android:layout_alignParentLeft="true"
- android:layout_alignParentStart="true" />
- <Button
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:text="ON"
- android:id="@+id/button2"
- android:layout_marginTop="30dp"
- android:layout_below="@+id/textView2"
- android:layout_alignParentLeft="true"
- android:layout_alignParentStart="true"
- android:layout_alignRight="@+id/seekBar"
- android:layout_alignEnd="@+id/seekBar" />
- <Button
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:text="OFF"
- android:id="@+id/button3"
- android:layout_marginTop="15dp"
- android:layout_below="@+id/button2"
- android:layout_alignParentLeft="true"
- android:layout_alignParentStart="true"
- android:layout_alignRight="@+id/button2"
- android:layout_alignEnd="@+id/button2" />
- <Button
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:text="Disconnect"
- android:id="@+id/button4"
- android:layout_alignParentBottom="true"
- android:layout_alignParentLeft="true"
- android:layout_alignParentStart="true" />
- <TextView
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:id="@+id/lumn"
- android:layout_alignTop="@+id/textView3"
- android:layout_toRightOf="@+id/button4"
- android:layout_marginLeft="6dp"
- android:layout_marginStart="6dp"
- android:layout_alignParentRight="true"
- android:layout_alignParentEnd="true"
- android:layout_above="@+id/seekBar" />-->
- </RelativeLayout>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement