| <?xml version="1.0" encoding="utf-8"?> |
| <!-- Copyright (C) 2014 The Android Open Source Project |
| |
| Licensed under the Apache License, Version 2.0 (the "License"); |
| you may not use this file except in compliance with the License. |
| You may obtain a copy of the License at |
| |
| http://www.apache.org/licenses/LICENSE-2.0 |
| |
| Unless required by applicable law or agreed to in writing, software |
| distributed under the License is distributed on an "AS IS" BASIS, |
| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| See the License for the specific language governing permissions and |
| limitations under the License. |
| --> |
| |
| <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" |
| android:layout_width="match_parent" |
| android:layout_height="match_parent" |
| android:background="#111"> |
| |
| <View |
| android:id="@+id/center" |
| android:layout_width="1px" |
| android:layout_height="1px" |
| android:layout_centerInParent="true"/> |
| |
| <TextView |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| android:layout_centerInParent="true" |
| android:fontFamily="sans-serif-light" |
| android:textSize="17sp" |
| android:textStyle="italic" |
| android:id="@+id/acquiring_gps" |
| android:text="@string/acquiring_gps"/> |
| |
| <TextView |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| android:textAppearance="?android:attr/textAppearanceLarge" |
| android:textSize="50sp" |
| android:fontFamily="sans-serif-light" |
| android:id="@+id/current_speed_text" |
| android:layout_centerVertical="true" |
| android:layout_toLeftOf="@+id/center" |
| android:textColor="@color/green" |
| android:layout_marginRight="-10dp"/> |
| |
| <TextView |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| android:textAppearance="?android:attr/textAppearanceLarge" |
| android:textSize="18sp" |
| android:text="@string/mph" |
| android:layout_marginLeft="15dp" |
| android:layout_alignBaseline="@+id/current_speed_text" |
| android:id="@+id/current_speed_mph" |
| android:fontFamily="sans-serif-thin" |
| android:layout_toRightOf="@+id/current_speed_text"/> |
| |
| <ImageView |
| android:id="@+id/dot" |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| android:layout_toRightOf="@+id/current_speed_mph" |
| android:layout_centerVertical="true" |
| android:layout_marginLeft="5dp" |
| android:visibility="invisible" |
| android:src="@drawable/dot"/> |
| |
| <TextView |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| android:textAppearance="?android:attr/textAppearanceSmall" |
| android:id="@+id/max_speed_text" |
| android:layout_alignParentTop="true" |
| android:layout_centerHorizontal="true" |
| android:fontFamily="sans-serif-thin" |
| android:textSize="17sp" |
| android:layout_marginTop="33dp" /> |
| |
| <ImageView |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| android:src="@drawable/ic_gps_not_saving_grey600_96dp" |
| android:id="@+id/saving" |
| android:layout_alignParentBottom="true" |
| android:layout_alignParentLeft="true" |
| android:layout_marginBottom="20dp" |
| android:layout_marginLeft="60dp" /> |
| |
| <ImageButton |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| android:id="@+id/settings" |
| android:background="@drawable/settings" |
| android:layout_alignParentRight="true" |
| android:layout_alignBottom="@+id/saving" |
| android:layout_marginRight="60dp"/> |
| </RelativeLayout> |