Browse Source

replaced monitoring button with switch

Fabio Arnold 10 years ago
parent
commit
848b6737c8
1 changed files with 9 additions and 15 deletions
  1. 9 15
      res/layout/fragment_home.xml

+ 9 - 15
res/layout/fragment_home.xml

@@ -88,21 +88,6 @@
                 android:textColor="@color/holo_dark_green"
                 android:textSize="11sp" />
 
-            <Button
-                android:id="@+id/button"
-                style="?android:attr/buttonStyleSmall"
-                android:layout_width="wrap_content"
-                android:layout_height="wrap_content"
-                android:layout_alignEnd="@+id/textView5"
-                android:layout_alignLeft="@+id/textView5"
-                android:layout_alignParentBottom="true"
-                android:layout_alignRight="@+id/textView5"
-                android:layout_alignStart="@+id/textView5"
-                android:layout_below="@+id/imageView"
-                android:layout_gravity="right"
-                android:text="Stop monitoring"
-                android:textSize="12dp" />
-
             <ImageView
                 android:id="@+id/imageView"
                 android:layout_width="wrap_content"
@@ -111,6 +96,15 @@
                 android:layout_marginRight="19dp"
                 android:layout_toLeftOf="@+id/textView5"
                 android:src="@android:drawable/presence_online" />
+
+            <Switch
+                android:id="@+id/switch1"
+                android:layout_width="wrap_content"
+                android:layout_height="wrap_content"
+                android:layout_alignParentBottom="true"
+                android:layout_centerHorizontal="true"
+                android:text="Monitoring:" />
+
         </RelativeLayout>
     </LinearLayout>