2016-10-21 13:01:30 +02:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
2016-10-24 17:41:56 +02:00
|
|
|
<android.support.design.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
2016-10-21 13:01:30 +02:00
|
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:gravity="center_horizontal">
|
|
|
|
|
|
|
|
<android.support.v7.widget.CardView xmlns:card_view="http://schemas.android.com/apk/res-auto"
|
|
|
|
android:id="@+id/card_view"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_margin="8dp"
|
|
|
|
android:foreground="?android:attr/selectableItemBackground"
|
|
|
|
card_view:cardCornerRadius="4dp"
|
|
|
|
card_view:cardElevation="4dp"
|
2017-03-11 16:50:12 +01:00
|
|
|
card_view:contentPadding="8dp">
|
2016-10-21 13:01:30 +02:00
|
|
|
|
2017-03-12 09:06:58 +01:00
|
|
|
<RelativeLayout
|
2016-10-21 13:01:30 +02:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent">
|
|
|
|
|
2016-10-29 18:20:53 +02:00
|
|
|
<RelativeLayout
|
|
|
|
android:id="@+id/device_item_infos_box"
|
2017-03-12 09:06:58 +01:00
|
|
|
android:layout_width="match_parent"
|
2017-04-08 09:03:45 +02:00
|
|
|
android:layout_height="wrap_content"
|
2017-03-12 09:06:58 +01:00
|
|
|
android:layout_alignParentStart="true"
|
|
|
|
android:layout_alignParentTop="true"
|
|
|
|
android:layout_marginBottom="8dp"
|
2016-10-29 18:20:53 +02:00
|
|
|
android:focusable="false"
|
2017-03-12 09:06:58 +01:00
|
|
|
android:visibility="gone">
|
2016-10-29 18:20:53 +02:00
|
|
|
|
|
|
|
<ListView
|
|
|
|
android:id="@+id/device_item_infos"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="match_parent"
|
2017-03-11 16:50:12 +01:00
|
|
|
android:layout_alignParentStart="true"
|
2016-10-29 18:20:53 +02:00
|
|
|
android:layout_toStartOf="@+id/device_action_remove"
|
2017-03-11 16:50:12 +01:00
|
|
|
android:focusable="false"
|
2016-10-29 18:20:53 +02:00
|
|
|
android:scrollbars="none" />
|
|
|
|
|
|
|
|
<ImageView
|
2017-03-11 16:50:12 +01:00
|
|
|
android:id="@+id/device_action_remove"
|
2016-10-29 18:20:53 +02:00
|
|
|
android:layout_width="36dp"
|
|
|
|
android:layout_height="36dp"
|
2017-03-11 16:50:12 +01:00
|
|
|
android:layout_alignParentEnd="true"
|
2016-10-29 18:20:53 +02:00
|
|
|
android:layout_alignParentTop="true"
|
|
|
|
android:layout_marginTop="8dp"
|
|
|
|
android:background="?android:attr/selectableItemBackground"
|
|
|
|
android:clickable="true"
|
2017-03-11 16:50:12 +01:00
|
|
|
android:contentDescription="@string/controlcenter_delete_device"
|
2017-04-08 15:49:00 +02:00
|
|
|
android:tint="?attr/textColorTertiary"
|
2017-03-11 16:50:12 +01:00
|
|
|
card_view:srcCompat="@drawable/ic_remove_device" />
|
2016-10-29 18:20:53 +02:00
|
|
|
</RelativeLayout>
|
|
|
|
|
2016-10-21 13:01:30 +02:00
|
|
|
<ImageView
|
|
|
|
android:id="@+id/device_image"
|
|
|
|
android:layout_width="48dp"
|
|
|
|
android:layout_height="48dp"
|
2017-03-11 16:50:12 +01:00
|
|
|
android:layout_alignParentStart="true"
|
2017-03-12 09:06:58 +01:00
|
|
|
android:layout_below="@id/device_item_infos_box"
|
2017-03-11 16:50:12 +01:00
|
|
|
android:contentDescription="@string/candidate_item_device_image"
|
2017-03-12 09:06:58 +01:00
|
|
|
android:clickable="true"
|
2016-10-21 17:44:36 +02:00
|
|
|
android:longClickable="true"
|
2017-03-12 09:06:58 +01:00
|
|
|
android:background="?android:attr/selectableItemBackground"
|
2017-04-08 15:49:00 +02:00
|
|
|
android:src="@drawable/ic_device_pebble"
|
2017-03-12 09:06:58 +01:00
|
|
|
android:layout_marginTop="8dp" />
|
2016-10-21 13:01:30 +02:00
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/device_name"
|
2017-03-12 09:06:58 +01:00
|
|
|
android:layout_width="match_parent"
|
2016-10-21 13:01:30 +02:00
|
|
|
android:layout_height="wrap_content"
|
2017-03-12 09:06:58 +01:00
|
|
|
android:layout_toEndOf="@id/device_image"
|
|
|
|
android:layout_alignParentEnd="true"
|
|
|
|
android:layout_marginEnd="48dp"
|
|
|
|
android:layout_below="@id/device_item_infos_box"
|
|
|
|
android:gravity="center"
|
2016-10-21 13:01:30 +02:00
|
|
|
android:maxLines="1"
|
|
|
|
android:textAppearance="@style/TextAppearance.AppCompat.Large"
|
2017-03-12 09:06:58 +01:00
|
|
|
tools:text="My Pebble Watch" />
|
2016-10-21 13:01:30 +02:00
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/device_status"
|
2017-03-12 09:06:58 +01:00
|
|
|
android:layout_width="match_parent"
|
2016-10-21 13:01:30 +02:00
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_below="@id/device_name"
|
2017-03-12 09:06:58 +01:00
|
|
|
android:layout_toEndOf="@id/device_image"
|
|
|
|
android:layout_alignParentEnd="true"
|
|
|
|
android:layout_marginEnd="48dp"
|
2016-10-21 13:01:30 +02:00
|
|
|
android:gravity="center"
|
|
|
|
android:textAppearance="@style/TextAppearance.AppCompat.Subhead"
|
|
|
|
tools:text="@string/connecting" />
|
|
|
|
|
2016-10-29 18:20:53 +02:00
|
|
|
<ImageView
|
|
|
|
android:id="@+id/device_info_image"
|
|
|
|
android:layout_width="36dp"
|
|
|
|
android:layout_height="36dp"
|
2017-03-12 09:06:58 +01:00
|
|
|
android:layout_alignParentEnd="true"
|
|
|
|
android:layout_below="@id/device_item_infos_box"
|
|
|
|
android:layout_marginBottom="8dp"
|
|
|
|
android:layout_marginStart="8dp"
|
|
|
|
android:layout_marginEnd="0dp"
|
|
|
|
android:layout_marginTop="8dp"
|
2016-10-29 18:20:53 +02:00
|
|
|
android:clickable="true"
|
|
|
|
android:contentDescription="@string/candidate_item_device_image"
|
|
|
|
android:tint="@color/secondarytext"
|
2017-03-12 09:06:58 +01:00
|
|
|
android:background="?android:attr/selectableItemBackground"
|
|
|
|
card_view:srcCompat="@drawable/ic_more_vert" />
|
2016-10-29 18:20:53 +02:00
|
|
|
|
2016-10-21 13:01:30 +02:00
|
|
|
<LinearLayout
|
|
|
|
android:id="@+id/device_battery_status_box"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
2017-03-12 09:06:58 +01:00
|
|
|
android:layout_below="@id/device_image"
|
2017-04-03 18:30:29 +02:00
|
|
|
android:layout_alignParentStart="true"
|
|
|
|
android:layout_margin="4dp"
|
2017-03-12 09:06:58 +01:00
|
|
|
android:orientation="vertical">
|
2016-10-21 13:01:30 +02:00
|
|
|
|
|
|
|
<ImageView
|
|
|
|
android:id="@+id/device_battery_status"
|
2017-04-03 18:30:29 +02:00
|
|
|
android:layout_width="40dp"
|
2017-03-27 13:56:03 +02:00
|
|
|
android:layout_height="40dp"
|
2017-04-03 18:30:29 +02:00
|
|
|
android:padding="4dp"
|
|
|
|
android:scaleType="fitXY"
|
2016-10-24 20:56:43 +02:00
|
|
|
android:tint="@color/secondarytext"
|
2016-10-21 17:44:36 +02:00
|
|
|
card_view:srcCompat="@drawable/level_list_battery" />
|
2016-10-21 13:01:30 +02:00
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/battery_status"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
2016-10-21 17:44:36 +02:00
|
|
|
android:gravity="center_horizontal"
|
|
|
|
android:minWidth="36dp"
|
2016-10-24 20:56:43 +02:00
|
|
|
android:textColor="@color/secondarytext"
|
2016-10-21 13:01:30 +02:00
|
|
|
android:textStyle="bold"
|
2016-10-21 17:44:36 +02:00
|
|
|
tools:text="100%" />
|
2016-10-21 13:01:30 +02:00
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:id="@+id/device_action_fetch_activity_box"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
2017-03-12 09:06:58 +01:00
|
|
|
android:layout_below="@id/device_image"
|
2017-03-27 13:56:03 +02:00
|
|
|
android:layout_margin="4dp"
|
2017-03-12 09:06:58 +01:00
|
|
|
android:layout_toEndOf="@id/device_battery_status_box"
|
2016-10-21 13:01:30 +02:00
|
|
|
android:gravity="center_vertical"
|
|
|
|
android:minWidth="36dp"
|
2017-03-12 09:06:58 +01:00
|
|
|
android:orientation="vertical">
|
2016-10-21 13:01:30 +02:00
|
|
|
|
|
|
|
<ImageView
|
|
|
|
android:id="@+id/device_action_fetch_activity"
|
2017-03-27 13:56:03 +02:00
|
|
|
android:layout_width="40dp"
|
|
|
|
android:layout_height="40dp"
|
2017-04-03 18:30:29 +02:00
|
|
|
android:padding="4dp"
|
|
|
|
android:background="?android:attr/selectableItemBackground"
|
2016-10-21 13:01:30 +02:00
|
|
|
android:clickable="true"
|
|
|
|
android:contentDescription="@string/controlcenter_fetch_activity_data"
|
2017-04-03 18:30:29 +02:00
|
|
|
android:scaleType="fitXY"
|
2016-10-24 20:56:43 +02:00
|
|
|
android:tint="@color/secondarytext"
|
2016-10-21 13:01:30 +02:00
|
|
|
card_view:srcCompat="@drawable/ic_action_fetch_activity_data" />
|
|
|
|
|
|
|
|
<ProgressBar
|
|
|
|
android:id="@+id/device_busy_indicator"
|
|
|
|
style="@android:style/Widget.ProgressBar.Horizontal"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="4dp"
|
|
|
|
android:indeterminate="true"
|
|
|
|
android:visibility="visible"
|
|
|
|
tools:visibility="visible" />
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
<ImageView
|
|
|
|
android:id="@+id/device_action_take_screenshot"
|
2017-03-27 13:56:03 +02:00
|
|
|
android:layout_width="40dp"
|
|
|
|
android:layout_height="40dp"
|
2017-03-12 09:06:58 +01:00
|
|
|
android:layout_below="@id/device_image"
|
2017-03-27 13:56:03 +02:00
|
|
|
android:layout_margin="4dp"
|
2017-03-12 09:06:58 +01:00
|
|
|
android:layout_toEndOf="@id/device_action_fetch_activity_box"
|
2017-04-03 18:30:29 +02:00
|
|
|
android:background="?android:attr/selectableItemBackground"
|
2016-10-21 13:01:30 +02:00
|
|
|
android:clickable="true"
|
|
|
|
android:contentDescription="@string/controlcenter_take_screenshot"
|
2017-04-03 18:30:29 +02:00
|
|
|
android:padding="4dp"
|
|
|
|
android:scaleType="fitXY"
|
2016-10-24 20:56:43 +02:00
|
|
|
android:tint="@color/secondarytext"
|
2016-10-21 13:01:30 +02:00
|
|
|
card_view:srcCompat="@drawable/ic_screenshot" />
|
|
|
|
|
|
|
|
<ImageView
|
2016-10-25 17:49:21 +02:00
|
|
|
android:id="@+id/device_action_manage_apps"
|
2017-03-27 13:56:03 +02:00
|
|
|
android:layout_width="40dp"
|
|
|
|
android:layout_height="40dp"
|
2017-03-12 09:06:58 +01:00
|
|
|
android:layout_below="@id/device_image"
|
2017-03-27 13:56:03 +02:00
|
|
|
android:layout_margin="4dp"
|
2017-03-12 09:06:58 +01:00
|
|
|
android:layout_toEndOf="@id/device_action_take_screenshot"
|
2017-04-03 18:30:29 +02:00
|
|
|
android:background="?android:attr/selectableItemBackground"
|
2016-10-21 13:01:30 +02:00
|
|
|
android:clickable="true"
|
2016-10-25 17:49:21 +02:00
|
|
|
android:contentDescription="@string/title_activity_appmanager"
|
2017-04-03 18:30:29 +02:00
|
|
|
android:padding="4dp"
|
|
|
|
android:scaleType="fitXY"
|
2016-10-25 17:49:21 +02:00
|
|
|
android:tint="@color/secondarytext"
|
|
|
|
card_view:srcCompat="@drawable/ic_action_manage_apps" />
|
|
|
|
|
|
|
|
<ImageView
|
|
|
|
android:id="@+id/device_action_set_alarms"
|
2017-03-27 13:56:03 +02:00
|
|
|
android:layout_width="40dp"
|
|
|
|
android:layout_height="40dp"
|
2017-03-12 09:06:58 +01:00
|
|
|
android:layout_below="@id/device_image"
|
2017-03-27 13:56:03 +02:00
|
|
|
android:layout_margin="4dp"
|
2017-03-12 09:06:58 +01:00
|
|
|
android:layout_toEndOf="@id/device_action_manage_apps"
|
2017-04-03 18:30:29 +02:00
|
|
|
android:background="?android:attr/selectableItemBackground"
|
2016-10-25 17:49:21 +02:00
|
|
|
android:clickable="true"
|
2016-10-21 13:01:30 +02:00
|
|
|
android:contentDescription="@string/controlcenter_start_configure_alarms"
|
2017-04-03 18:30:29 +02:00
|
|
|
android:padding="4dp"
|
|
|
|
android:scaleType="fitXY"
|
2016-10-24 20:56:43 +02:00
|
|
|
android:tint="@color/secondarytext"
|
2016-10-21 13:01:30 +02:00
|
|
|
card_view:srcCompat="@drawable/ic_device_set_alarms" />
|
|
|
|
|
|
|
|
<ImageView
|
|
|
|
android:id="@+id/device_action_show_activity_graphs"
|
2017-03-27 13:56:03 +02:00
|
|
|
android:layout_width="40dp"
|
|
|
|
android:layout_height="40dp"
|
2017-03-12 09:06:58 +01:00
|
|
|
android:layout_below="@id/device_image"
|
2017-03-27 13:56:03 +02:00
|
|
|
android:layout_margin="4dp"
|
2017-03-12 09:06:58 +01:00
|
|
|
android:layout_toEndOf="@id/device_action_set_alarms"
|
2017-04-03 18:30:29 +02:00
|
|
|
android:background="?android:attr/selectableItemBackground"
|
2016-10-21 13:01:30 +02:00
|
|
|
android:clickable="true"
|
2017-04-03 18:30:29 +02:00
|
|
|
android:contentDescription="@string/controlcenter_start_activitymonitor"
|
|
|
|
android:padding="4dp"
|
|
|
|
android:scaleType="fitXY"
|
2016-10-24 20:56:43 +02:00
|
|
|
android:tint="@color/secondarytext"
|
2017-04-03 18:30:29 +02:00
|
|
|
card_view:srcCompat="@drawable/ic_activity_graphs" />
|
2016-10-24 17:41:56 +02:00
|
|
|
|
2017-03-11 16:50:12 +01:00
|
|
|
<ImageView
|
|
|
|
android:id="@+id/device_action_find"
|
2017-03-27 13:56:03 +02:00
|
|
|
android:layout_width="40dp"
|
|
|
|
android:layout_height="40dp"
|
2017-03-12 09:06:58 +01:00
|
|
|
android:layout_below="@id/device_image"
|
2017-03-27 13:56:03 +02:00
|
|
|
android:layout_margin="4dp"
|
2017-03-12 09:06:58 +01:00
|
|
|
android:layout_toEndOf="@id/device_action_show_activity_graphs"
|
2017-03-11 16:50:12 +01:00
|
|
|
android:clickable="true"
|
|
|
|
android:contentDescription="@string/controlcenter_find_device"
|
2017-04-03 18:30:29 +02:00
|
|
|
android:padding="4dp"
|
|
|
|
android:scaleType="fitXY"
|
2017-03-11 16:50:12 +01:00
|
|
|
android:tint="@color/secondarytext"
|
|
|
|
card_view:srcCompat="@drawable/ic_action_find_lost_device" />
|
2016-10-21 13:01:30 +02:00
|
|
|
|
2017-03-12 09:06:58 +01:00
|
|
|
</RelativeLayout>
|
2016-10-21 13:01:30 +02:00
|
|
|
|
|
|
|
</android.support.v7.widget.CardView>
|
|
|
|
|
|
|
|
|
2016-10-24 17:41:56 +02:00
|
|
|
</android.support.design.widget.CoordinatorLayout>
|