Home | History | Annotate | Download | only in layout
      1 <?xml version="1.0" encoding="utf-8"?>
      2 <!-- Copyright (C) 2016 The Android Open Source Project
      3 
      4      Licensed under the Apache License, Version 2.0 (the "License");
      5      you may not use this file except in compliance with the License.
      6      You may obtain a copy of the License at
      7 
      8        http://www.apache.org/licenses/LICENSE-2.0
      9 
     10      Unless required by applicable law or agreed to in writing, software
     11      distributed under the License is distributed on an "AS IS" BASIS,
     12      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     13      See the License for the specific language governing permissions and
     14      limitations under the License.
     15 -->
     16 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
     17               android:orientation="horizontal"
     18               android:layout_width="match_parent"
     19               android:layout_height="match_parent" android:id="@+id/instrument_cluster_layout"
     20               android:theme="@android:style/Theme.Material" android:weightSum="1"
     21               android:background="@android:color/background_dark">
     22 
     23     <LinearLayout
     24             android:orientation="vertical"
     25             android:layout_width="214dp"
     26             android:layout_height="match_parent">
     27     </LinearLayout>
     28     <LinearLayout
     29             android:orientation="vertical"
     30             android:layout_width="wrap_content"
     31             android:layout_height="match_parent"
     32             android:gravity="center_vertical">
     33         <TextView
     34                 android:layout_width="fill_parent"
     35                 android:layout_height="wrap_content"
     36                 android:textAppearance="?android:attr/textAppearanceLarge"
     37                 android:id="@+id/speed" android:textSize="120dp"
     38                 android:textAlignment="center" android:gravity="center"
     39                 android:layout_marginTop="100dp"/>
     40         <TextView android:layout_width="wrap_content" android:layout_height="wrap_content"
     41                   android:textAppearance="?android:attr/textAppearanceMedium"
     42                   android:text="@string/fuel_level" android:id="@+id/textView"
     43                   android:layout_gravity="left"/>
     44         <ProgressBar style="?android:attr/progressBarStyleHorizontal" android:layout_width="226dp"
     45                      android:layout_height="wrap_content" android:id="@+id/fuel_level_progress"
     46                      android:max="100" android:progress="30"
     47         />
     48         <LinearLayout
     49                 android:orientation="vertical"
     50                 android:layout_width="match_parent"
     51                 android:layout_height="match_parent" android:layout_marginTop="40dp"
     52                 android:id="@+id/nav_layout">
     53             <TextView
     54                     android:layout_width="fill_parent"
     55                     android:layout_height="wrap_content"
     56                     android:textAppearance="?android:attr/textAppearanceMedium"
     57                     android:id="@+id/nav_event_title"
     58             />
     59             <TextView
     60                     android:layout_width="fill_parent"
     61                     android:layout_height="wrap_content"
     62                     android:textAppearance="?android:attr/textAppearanceMedium"
     63                     android:id="@+id/nav_distance" android:gravity="center"
     64             />
     65         </LinearLayout>
     66     </LinearLayout>
     67     <FrameLayout android:orientation="vertical" android:layout_width="wrap_content"
     68                   android:layout_height="match_parent" android:layout_weight="0.63"
     69                   android:layout_gravity="center_vertical" android:weightSum="1"
     70                   android:layout_marginTop="0dp">
     71         <LinearLayout android:orientation="vertical" android:layout_width="match_parent"
     72                       android:layout_height="wrap_content" android:layout_weight="0.63"
     73                       android:layout_gravity="center_horizontal" android:weightSum="1"
     74                       android:layout_marginTop="100dp"
     75                       android:background="@android:color/background_dark"
     76                       android:id="@+id/media_layout"
     77                       android:visibility="gone">
     78             <ImageView android:layout_width="200dp" android:layout_height="200dp"
     79                        android:id="@+id/media_image" android:layout_gravity="center_horizontal"
     80                        android:background="@android:color/holo_blue_light"
     81                        android:scaleType="center"/>
     82             <TextView android:layout_width="fill_parent" android:layout_height="wrap_content"
     83                       android:textAppearance="?android:attr/textAppearanceMedium"
     84                       android:id="@+id/media_album" android:gravity="center"
     85                       android:layout_gravity="center_horizontal" android:visibility="gone"/>
     86             <TextView android:layout_width="fill_parent" android:layout_height="wrap_content"
     87                       android:textAppearance="?android:attr/textAppearanceMedium"
     88                       android:id="@+id/media_track" android:gravity="center"
     89                       android:layout_gravity="center_horizontal" android:textSize="28sp"/>
     90             <TextView android:layout_width="fill_parent" android:layout_height="wrap_content"
     91                       android:textAppearance="?android:attr/textAppearanceMedium"
     92                       android:id="@+id/media_artist" android:gravity="center"
     93                       android:textIsSelectable="false"
     94             />
     95         </LinearLayout>
     96         <LinearLayout android:orientation="vertical" android:layout_width="match_parent"
     97                       android:layout_height="wrap_content" android:layout_weight="0.63"
     98                       android:layout_gravity="center_horizontal" android:weightSum="1"
     99                       android:layout_marginTop="100dp"
    100                       android:background="@android:color/background_dark"
    101                       android:id="@+id/phone_layout"
    102                       android:visibility="gone">
    103             <ImageView android:layout_width="200dp" android:layout_height="200dp"
    104                        android:id="@+id/phone_contact_photo" android:layout_gravity="center"
    105                        android:background="#16161e"
    106                        android:scaleType="fitCenter"/>
    107             <TextView android:layout_width="fill_parent" android:layout_height="wrap_content"
    108                       android:textAppearance="?android:attr/textAppearanceMedium"
    109                       android:id="@+id/phone_title" android:gravity="center"
    110                       android:layout_gravity="center_horizontal" android:textSize="28sp"/>
    111             <TextView android:layout_width="fill_parent" android:layout_height="wrap_content"
    112                       android:textAppearance="?android:attr/textAppearanceMedium"
    113                       android:id="@+id/phone_subtitle" android:gravity="center"
    114                       android:textIsSelectable="false"
    115             />
    116         </LinearLayout>
    117     </FrameLayout>
    118 </LinearLayout>