Advertisement
the-technoholik

garage_opener/wear/res/round_activity_wear.xml

Nov 15th, 2014
343
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 1.91 KB | None | 0 0
  1. <?xml version="1.0" encoding="utf-8"?>
  2.  
  3. <android.support.wearable.view.BoxInsetLayout
  4.        xmlns:android="http://schemas.android.com/apk/res/android"
  5.        xmlns:app="http://schemas.android.com/apk/res-auto"
  6.        android:layout_height="match_parent"
  7.        android:layout_width="match_parent"
  8.        android:background="@color/orange"
  9.        android:padding="0dp">
  10.  
  11.         <LinearLayout
  12.                android:layout_width="match_parent"
  13.                android:layout_height="140dp"
  14.                android:padding="0dp"
  15.                android:layout_gravity="center_vertical"
  16.                android:orientation="vertical"
  17.                app:layout_box="all">
  18.  
  19.                 <ImageButton
  20.                        android:id="@+id/openButton"
  21.                        android:gravity="center"
  22.                        android:layout_gravity="center"
  23.                        android:layout_height="60dp"
  24.                        android:layout_width="wrap_content"
  25.                        android:layout_marginBottom="20dp"
  26.                        android:src="@drawable/white_arrow_up"
  27.                        android:background="@color/orange"
  28.                        android:contentDescription="@string/openButton_desc"/>
  29.  
  30.                 <ImageButton
  31.                        android:id="@+id/closeButton"
  32.                        android:gravity="center"
  33.                        android:layout_gravity="center"
  34.                        android:layout_height="60dp"
  35.                        android:layout_width="wrap_content"
  36.                        android:src="@drawable/white_arrow_down"
  37.                        android:background="@color/orange"
  38.                        android:contentDescription="@string/openButton_desc"/>
  39.         <!-- use @null instead of @color/orange if filter is not used but beware NullPointerException -->
  40.     </LinearLayout>
  41. </android.support.wearable.view.BoxInsetLayout>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement