Advertisement
Guest User

Jlechman activity_motor_control.xml

a guest
Oct 23rd, 2017
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 6.34 KB | None | 0 0
  1. <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
  2.    xmlns:tools="http://schemas.android.com/tools"
  3.    android:layout_width="match_parent"
  4.    android:layout_height="match_parent"
  5.    tools:context="com.led.GUI.motorControl">
  6.  
  7.     <LinearLayout
  8.        android:layout_width="368dp"
  9.        android:layout_height="495dp"
  10.        android:orientation="vertical"
  11.        tools:layout_editor_absoluteX="8dp"
  12.        tools:layout_editor_absoluteY="8dp">
  13.  
  14.         <LinearLayout
  15.            android:id="@+id/lmotor"
  16.            android:layout_width="match_parent"
  17.            android:layout_height="wrap_content"
  18.            android:orientation="vertical"
  19.            android:layout_marginTop="40dp"
  20.            tools:layout_editor_absoluteX="8dp"
  21.            tools:layout_editor_absoluteY="8dp">
  22.  
  23.             <!--left motor seekbar-->
  24.             <SeekBar
  25.                android:id="@+id/lmotorcontrol"
  26.                android:layout_width="match_parent"
  27.                android:layout_height="30dp"
  28.                tools:layout_editor_absoluteX="8dp"
  29.                tools:layout_editor_absoluteY="8dp"
  30.                android:max="100"
  31.                android:progress="50"/>
  32.         </LinearLayout>
  33.  
  34.         <LinearLayout
  35.            android:id="@+id/connect_and_output"
  36.            android:layout_width="match_parent"
  37.            android:layout_height="wrap_content"
  38.            android:layout_marginTop="100dp"
  39.            android:orientation="vertical"
  40.            tools:layout_editor_absoluteX="8dp"
  41.            tools:layout_editor_absoluteY="8dp">
  42.  
  43.             <!--left motor text display-->
  44.             <TextView
  45.                android:id="@+id/lTextOutput"
  46.                android:layout_width="match_parent"
  47.                android:layout_height="wrap_content"
  48.                android:text="TextView" />
  49.  
  50.             <LinearLayout
  51.                android:layout_width="match_parent"
  52.                android:layout_height="match_parent"
  53.                android:orientation="horizontal">
  54.  
  55.                 <Button
  56.                    android:id="@+id/stop_button"
  57.                    android:layout_width="wrap_content"
  58.                    android:layout_height="90dp"
  59.                    android:layout_weight="1"
  60.                    android:orientation="vertical"
  61.                    android:rotation="90"
  62.                    android:text="STOP"
  63.                    android:textAppearance="@style/TextAppearance.AppCompat" />
  64.             </LinearLayout>
  65.  
  66.             <!--right motor text display-->
  67.             <TextView
  68.                android:id="@+id/rTextOutput"
  69.                android:layout_width="match_parent"
  70.                android:layout_height="wrap_content"
  71.                android:text="TextView" />
  72.  
  73.  
  74.         </LinearLayout>
  75.  
  76.         <LinearLayout
  77.            android:id="@+id/rmotor"
  78.            android:layout_width="match_parent"
  79.            android:layout_height="wrap_content"
  80.            android:orientation="vertical"
  81.            android:layout_marginTop="150dp"
  82.            tools:layout_editor_absoluteX="8dp"
  83.            tools:layout_editor_absoluteY="8dp">
  84.  
  85.             <!--right motor seekbar-->
  86.             <SeekBar
  87.                android:id="@+id/rmotorcontrol"
  88.                android:layout_width="match_parent"
  89.                android:layout_height="30dp"
  90.                android:max="100"
  91.                android:progress="50"/>
  92.         </LinearLayout>
  93.  
  94.     </LinearLayout>
  95.  
  96.  
  97.     <!--<TextView
  98.        android:layout_width="wrap_content"
  99.        android:layout_height="wrap_content"
  100.        android:text="Motor Control"
  101.        android:id="@+id/textView2"
  102.        android:layout_alignParentTop="true"
  103.        android:layout_alignParentLeft="true"
  104.        android:layout_alignParentStart="true" />-->
  105.  
  106.     <!--<SeekBar
  107.        android:layout_width="wrap_content"
  108.        android:layout_height="wrap_content"
  109.        android:id="@+id/seekBar"
  110.        android:max="255"
  111.        android:progress="1"
  112.        android:indeterminate="false"
  113.        android:layout_below="@+id/textView3"
  114.        android:layout_alignParentLeft="true"
  115.        android:layout_alignParentStart="true"
  116.        android:layout_alignParentRight="true"
  117.        android:layout_alignParentEnd="true" />
  118.  
  119.    <TextView
  120.        android:layout_width="wrap_content"
  121.        android:layout_height="wrap_content"
  122.        android:textAppearance="?android:attr/textAppearanceLarge"
  123.        android:text="Brightness"
  124.        android:id="@+id/textView3"
  125.        android:layout_marginTop="42dp"
  126.        android:layout_below="@+id/button3"
  127.        android:layout_alignParentLeft="true"
  128.        android:layout_alignParentStart="true" />
  129.  
  130.    <Button
  131.        android:layout_width="wrap_content"
  132.        android:layout_height="wrap_content"
  133.        android:text="ON"
  134.        android:id="@+id/button2"
  135.        android:layout_marginTop="30dp"
  136.        android:layout_below="@+id/textView2"
  137.        android:layout_alignParentLeft="true"
  138.        android:layout_alignParentStart="true"
  139.        android:layout_alignRight="@+id/seekBar"
  140.        android:layout_alignEnd="@+id/seekBar" />
  141.  
  142.    <Button
  143.        android:layout_width="wrap_content"
  144.        android:layout_height="wrap_content"
  145.        android:text="OFF"
  146.        android:id="@+id/button3"
  147.        android:layout_marginTop="15dp"
  148.        android:layout_below="@+id/button2"
  149.        android:layout_alignParentLeft="true"
  150.        android:layout_alignParentStart="true"
  151.        android:layout_alignRight="@+id/button2"
  152.        android:layout_alignEnd="@+id/button2" />
  153.  
  154.    <Button
  155.        android:layout_width="wrap_content"
  156.        android:layout_height="wrap_content"
  157.        android:text="Disconnect"
  158.        android:id="@+id/button4"
  159.        android:layout_alignParentBottom="true"
  160.        android:layout_alignParentLeft="true"
  161.        android:layout_alignParentStart="true" />
  162.  
  163.    <TextView
  164.        android:layout_width="wrap_content"
  165.        android:layout_height="wrap_content"
  166.        android:id="@+id/lumn"
  167.        android:layout_alignTop="@+id/textView3"
  168.        android:layout_toRightOf="@+id/button4"
  169.        android:layout_marginLeft="6dp"
  170.        android:layout_marginStart="6dp"
  171.        android:layout_alignParentRight="true"
  172.        android:layout_alignParentEnd="true"
  173.        android:layout_above="@+id/seekBar" />-->
  174. </RelativeLayout>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement