| <!--
|
| Copyright (c) 2013, 2017 Orange.
|
| All rights reserved. This program and the accompanying materials
|
| are made available under the terms of the Eclipse Public License v1.0
|
| which accompanies this distribution, and is available at
|
| http://www.eclipse.org/legal/epl-v10.html
|
|
|
| Contributors:
|
| BAREAU Cyrille <cyrille.bareau@orange.com>,
|
| BONNARDEL Gregory <gbonnardel.ext@orange.com>,
|
| BOLLE Sebastien <sebastien.bolle@orange.com>.
|
| --> |
| <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
| xmlns:tools="http://schemas.android.com/tools"
|
| xmlns:custom="http://schemas.android.com/apk/res/org.eclipse.om2m.android.dashboard"
|
| android:layout_width="match_parent"
|
| android:layout_height="match_parent"
|
| android:background="@color/solf_background"
|
| android:keepScreenOn="true"
|
| android:orientation="vertical"
|
| tools:context=".Demo" >
|
|
|
| <LinearLayout
|
| android:layout_width="fill_parent"
|
| android:layout_height="fill_parent"
|
| android:orientation="vertical" >
|
|
|
| <!-- =========================================================== -->
|
| <!-- CSE -->
|
| <!-- =========================================================== -->
|
|
|
| <LinearLayout
|
| android:id="@+id/ll_main_zone_cse"
|
| android:layout_width="match_parent"
|
| android:layout_height="wrap_content"
|
| android:layout_marginLeft="10dp"
|
| android:layout_marginRight="10dp"
|
| android:layout_marginTop="13dp"
|
| android:background="@drawable/blur_shadow"
|
| android:orientation="vertical" >
|
|
|
| <LinearLayout
|
| android:layout_width="fill_parent"
|
| android:layout_height="50dp"
|
| android:orientation="horizontal" >
|
|
|
| <RelativeLayout
|
| android:layout_width="match_parent"
|
| android:layout_height="match_parent" >
|
|
|
| <ImageView
|
| android:id="@+id/iv_cse_state_icon"
|
| android:layout_width="30dp"
|
| android:layout_height="30dp"
|
| android:layout_centerVertical="true"
|
| android:layout_gravity="center_vertical"
|
| android:layout_marginLeft="15dp"
|
| android:src="@drawable/otb_picto_led_notconnected" />
|
|
|
| <TextView
|
| android:id="@+id/tv_cse_title"
|
| android:layout_width="wrap_content"
|
| android:layout_height="wrap_content"
|
| android:layout_alignParentLeft="true"
|
| android:layout_centerVertical="true"
|
| android:layout_gravity="center_vertical"
|
| android:layout_marginLeft="60dp"
|
| android:text="@string/main_config"
|
| android:textAppearance="?android:attr/textAppearanceLarge"
|
| android:textColor="@color/otb_orange"
|
| android:textSize="@dimen/menu_title_size"
|
| android:textStyle="bold" />
|
|
|
| <TextView
|
| android:id="@+id/tv_cse_status_title"
|
| android:layout_width="wrap_content"
|
| android:layout_height="wrap_content"
|
| android:layout_centerVertical="true"
|
| android:layout_marginLeft="7dp"
|
| android:layout_toRightOf="@+id/tv_cse_title"
|
| android:text="@string/main_cse_state_not_detected"
|
| android:textAppearance="?android:attr/textAppearanceLarge"
|
| android:textColor="@color/otb_orange"
|
| android:textSize="@dimen/menu_title_size"
|
| android:textStyle="bold" />
|
|
|
| </RelativeLayout>
|
|
|
| </LinearLayout>
|
|
|
| </LinearLayout>
|
|
|
| <ScrollView
|
| android:id="@+id/sv_main_dynamic_card_scroller"
|
| android:layout_width="match_parent"
|
| android:layout_height="match_parent"
|
| android:layout_marginBottom="10dp"
|
| android:layout_marginLeft="10dp"
|
| android:layout_marginRight="10dp"
|
| android:layout_marginTop="10dp" >
|
|
|
| <LinearLayout
|
| android:id="@+id/ll_main_dynamic_card_container"
|
| android:layout_width="match_parent"
|
| android:layout_height="wrap_content"
|
| android:orientation="vertical" >
|
|
|
|
|
| <!-- =========================================================== -->
|
| <!-- APPLICATIONS -->
|
| <!-- =========================================================== -->
|
|
|
| <RelativeLayout
|
| android:layout_width="match_parent"
|
| android:layout_height="match_parent"
|
| android:layout_weight="3"
|
| android:background="@drawable/blur_shadow" >
|
|
|
| <ImageView
|
| android:layout_width="45dp"
|
| android:layout_height="45dp"
|
| android:layout_alignParentLeft="true"
|
| android:layout_alignParentTop="true"
|
| android:layout_marginLeft="5dp"
|
| android:layout_marginTop="5dp"
|
| android:src="@drawable/otb_picto_services" />
|
|
|
| <TextView
|
| android:id="@+id/tv_main_counter_app"
|
| android:layout_width="wrap_content"
|
| android:layout_height="wrap_content"
|
| android:layout_alignParentTop="true"
|
| android:layout_gravity="center_vertical"
|
| android:layout_marginLeft="60dp"
|
| android:layout_marginTop="10dp"
|
| android:text="xx"
|
| android:textAppearance="?android:attr/textAppearanceLarge"
|
| android:textColor="@color/otb_red"
|
| android:textSize="26sp"
|
| android:textStyle="bold" />
|
|
|
| <TextView
|
| android:id="@+id/tv_main_title_app"
|
| android:layout_width="wrap_content"
|
| android:layout_height="wrap_content"
|
| android:layout_alignParentTop="true"
|
| android:layout_gravity="center_vertical"
|
| android:layout_marginLeft="10dp"
|
| android:layout_marginTop="15dp"
|
| android:layout_toRightOf="@+id/tv_main_counter_app"
|
| android:text="@string/main_applications"
|
| android:textAppearance="?android:attr/textAppearanceLarge"
|
| android:textColor="@color/otb_red"
|
| android:textSize="@dimen/menu_title_size"
|
| android:textStyle="bold" />
|
|
|
| <org.eclipse.om2m.android.dashboard.tools.CustomLineView
|
| android:layout_width="match_parent"
|
| android:layout_height="2dp"
|
| android:layout_alignParentLeft="true"
|
| android:layout_alignParentTop="true"
|
| android:layout_marginLeft="10dp"
|
| android:layout_marginRight="10dp"
|
| android:layout_marginTop="60dp"
|
| custom:dashGap="2"
|
| custom:dashWidth="2"
|
| custom:dashed="true"
|
| custom:orientation="horizontal"
|
| custom:thickness="1"
|
| custom:color="@color/otb_red" />
|
|
|
| <GridLayout
|
| android:id="@+id/gl_main_cse_app"
|
| android:layout_width="wrap_content"
|
| android:layout_height="wrap_content"
|
| android:layout_centerHorizontal="true"
|
| android:layout_marginBottom="10dp"
|
| android:layout_marginTop="80dp"
|
| android:animateLayoutChanges="true"
|
| android:orientation="horizontal"
|
| android:scrollbarAlwaysDrawVerticalTrack="false" >
|
|
|
| </GridLayout>
|
|
|
| </RelativeLayout>
|
|
|
| <!-- =========================================================== -->
|
| <!-- DEVICES -->
|
| <!-- =========================================================== -->
|
|
|
| <RelativeLayout
|
| android:id="@+id/rl_main_zone_devs"
|
| android:layout_width="match_parent"
|
| android:layout_height="match_parent"
|
| android:layout_weight="4"
|
| android:layout_marginTop="10dp"
|
| android:background="@drawable/blur_shadow" >
|
|
|
| <ImageView
|
| android:layout_width="50dp"
|
| android:layout_height="50dp"
|
| android:layout_alignParentLeft="true"
|
| android:layout_alignParentTop="true"
|
| android:layout_marginLeft="5dp"
|
| android:layout_marginTop="5dp"
|
| android:src="@drawable/otb_picto_devices" />
|
|
|
| <TextView
|
| android:id="@+id/tv_main_counter_dev"
|
| android:layout_width="wrap_content"
|
| android:layout_height="wrap_content"
|
| android:layout_alignParentTop="true"
|
| android:layout_gravity="center_vertical"
|
| android:layout_marginLeft="60dp"
|
| android:layout_marginTop="15dp"
|
| android:text="xx"
|
| android:textAppearance="?android:attr/textAppearanceLarge"
|
| android:textColor="@color/otb_blue"
|
| android:textSize="26sp"
|
| android:textStyle="bold" />
|
|
|
| <TextView
|
| android:id="@+id/tv_main_title_dev"
|
| android:layout_width="wrap_content"
|
| android:layout_height="wrap_content"
|
| android:layout_alignParentTop="true"
|
| android:layout_gravity="center_vertical"
|
| android:layout_marginLeft="10dp"
|
| android:layout_marginTop="20dp"
|
| android:layout_toRightOf="@+id/tv_main_counter_dev"
|
| android:text="@string/main_devices"
|
| android:textAppearance="?android:attr/textAppearanceLarge"
|
| android:textColor="@color/otb_blue"
|
| android:textSize="@dimen/menu_title_size"
|
| android:textStyle="bold" />
|
|
|
| <LinearLayout
|
| android:id="@+id/ll_replace_device"
|
| android:layout_width="wrap_content"
|
| android:layout_height="wrap_content"
|
| android:layout_centerVertical="false"
|
| android:layout_marginTop="13dp"
|
| android:layout_toRightOf="@+id/tv_main_dev"
|
| android:orientation="horizontal" >
|
|
|
| <TextView
|
| android:layout_width="120dp"
|
| android:layout_height="wrap_content"
|
| android:layout_alignParentRight="true"
|
| android:layout_centerVertical="true"
|
| android:layout_gravity="center_vertical"
|
| android:gravity="right"
|
| android:text="@string/main_btn_replace"
|
| android:textColor="@color/otb_blue"
|
| android:textSize="14sp" />
|
|
|
| <ImageView
|
| android:layout_width="40dp"
|
| android:layout_height="40dp"
|
| android:layout_alignParentRight="true"
|
| android:layout_marginRight="4dp"
|
| android:layout_weight="1"
|
| android:src="@drawable/otb_picto_replace_blue" />
|
|
|
| </LinearLayout>
|
|
|
| <RelativeLayout
|
| android:id="@+id/rl_main_add_device"
|
| android:layout_width="250dp"
|
| android:layout_height="40dp"
|
| android:layout_alignParentRight="true"
|
| android:layout_marginTop="10dp"
|
| android:layout_weight="1"
|
| android:gravity="right" >
|
|
|
| <TextView
|
| android:layout_width="wrap_content"
|
| android:layout_height="wrap_content"
|
| android:layout_alignParentRight="true"
|
| android:layout_centerVertical="true"
|
| android:layout_gravity="center_vertical"
|
| android:layout_marginRight="60dp"
|
| android:layout_weight="1"
|
| android:text="@string/main_btn_devs"
|
| android:textColor="@color/otb_blue"
|
| android:textSize="14sp" />
|
|
|
| <ImageView
|
| android:layout_width="40dp"
|
| android:layout_height="40dp"
|
| android:layout_alignParentRight="true"
|
| android:layout_marginRight="20dp"
|
| android:layout_weight="1"
|
| android:src="@drawable/otb_picto_add_dev_blue" />
|
|
|
| </RelativeLayout>
|
|
|
| <org.eclipse.om2m.android.dashboard.tools.CustomLineView
|
| android:layout_width="match_parent"
|
| android:layout_height="2dp"
|
| android:layout_alignParentLeft="true"
|
| android:layout_alignParentTop="true"
|
| android:layout_marginLeft="10dp"
|
| android:layout_marginRight="10dp"
|
| android:layout_marginTop="60dp"
|
| custom:dashGap="2"
|
| custom:dashWidth="2"
|
| custom:dashed="true"
|
| custom:orientation="horizontal"
|
| custom:thickness="1"
|
| custom:color="@color/otb_blue" />
|
|
|
| <GridLayout
|
| android:id="@+id/gl_main_cse_devices"
|
| android:layout_width="wrap_content"
|
| android:layout_height="wrap_content"
|
| android:layout_centerHorizontal="true"
|
| android:layout_marginBottom="10dp"
|
| android:layout_marginTop="80dp"
|
| android:animateLayoutChanges="true"
|
| android:orientation="horizontal"
|
| android:scrollbarAlwaysDrawVerticalTrack="false" >
|
|
|
| </GridLayout>
|
|
|
| </RelativeLayout>
|
|
|
| </LinearLayout>
|
|
|
| </ScrollView>
|
|
|
| </LinearLayout>
|
|
|
| </RelativeLayout>
|