1<?xml version="1.0" encoding="utf-8"?> 2<!-- Copyright (C) 2014 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 17<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" 18 android:layout_width="match_parent" 19 android:layout_height="match_parent" 20 android:background="#111"> 21 22 <View 23 android:id="@+id/center" 24 android:layout_width="1px" 25 android:layout_height="1px" 26 android:layout_centerInParent="true"/> 27 28 <TextView 29 android:layout_width="wrap_content" 30 android:layout_height="wrap_content" 31 android:layout_centerInParent="true" 32 android:paddingLeft="16dp" 33 android:fontFamily="sans-serif-light" 34 android:textAlignment="center" 35 android:textSize="17sp" 36 android:textStyle="italic" 37 android:id="@+id/gps_issue_text" 38 android:text=""/> 39 40 <TextView 41 android:layout_width="wrap_content" 42 android:layout_height="wrap_content" 43 android:textAppearance="?android:attr/textAppearanceLarge" 44 android:textSize="50sp" 45 android:fontFamily="sans-serif-light" 46 android:id="@+id/current_speed_text" 47 android:layout_centerVertical="true" 48 android:layout_toLeftOf="@+id/center" 49 android:textColor="@color/green" 50 android:layout_marginRight="-10dp"/> 51 52 <TextView 53 android:layout_width="wrap_content" 54 android:layout_height="wrap_content" 55 android:textAppearance="?android:attr/textAppearanceLarge" 56 android:textSize="18sp" 57 android:text="@string/mph" 58 android:layout_marginLeft="15dp" 59 android:layout_alignBaseline="@+id/current_speed_text" 60 android:id="@+id/current_speed_mph" 61 android:fontFamily="sans-serif-thin" 62 android:layout_toRightOf="@+id/current_speed_text"/> 63 64 <ImageView 65 android:id="@+id/dot" 66 android:layout_width="wrap_content" 67 android:layout_height="wrap_content" 68 android:layout_toRightOf="@+id/current_speed_mph" 69 android:layout_centerVertical="true" 70 android:layout_marginLeft="5dp" 71 android:visibility="invisible" 72 android:src="@drawable/dot"/> 73 74 <TextView 75 android:layout_width="wrap_content" 76 android:layout_height="wrap_content" 77 android:textAppearance="?android:attr/textAppearanceSmall" 78 android:id="@+id/max_speed_text" 79 android:layout_alignParentTop="true" 80 android:layout_centerHorizontal="true" 81 android:fontFamily="sans-serif-thin" 82 android:textSize="17sp" 83 android:layout_marginTop="33dp" /> 84 85 <ImageView 86 android:layout_width="wrap_content" 87 android:layout_height="wrap_content" 88 android:src="@drawable/ic_gps_not_saving_grey600_96dp" 89 android:id="@+id/gps_permission" 90 android:onClick="onGpsPermissionClick" 91 android:layout_alignParentBottom="true" 92 android:layout_alignParentLeft="true" 93 android:layout_marginBottom="20dp" 94 android:layout_marginLeft="50dp" /> 95 96 <ImageButton 97 android:layout_width="wrap_content" 98 android:layout_height="wrap_content" 99 android:id="@+id/speed_limit_setting" 100 android:onClick="onSpeedLimitClick" 101 android:background="@drawable/settings" 102 android:layout_alignParentRight="true" 103 android:layout_alignBottom="@+id/gps_permission" 104 android:layout_marginRight="50dp"/> 105</RelativeLayout> 106