blob: b52148817ad8f610730970880392db364d429a3e [file] [log] [blame]
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (C) 2016 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_alignParentTop="true"
android:layout_alignParentEnd="true"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:paddingTop="@dimen/car_radio_container_top_padding"
android:orientation="horizontal">
<TextView
android:id="@+id/radio_station_channel"
android:layout_marginEnd="@dimen/car_keyline_1"
android:layout_marginTop="@dimen/car_radio_station_top_margin"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
style="@style/RadioStationChannelText" />
<!-- Using a negative margin start on this View so that it starts off flushed to the
end of radio_station_channel. This is needed because radio_station_channel needs
to be a distance of car_keyline_2 from the end of its parent. -->
<TextView
android:id="@+id/radio_station_band"
android:layout_alignBaseline="@id/radio_station_channel"
android:layout_toEndOf="@id/radio_station_channel"
android:layout_marginStart="@dimen/car_keyline_1_neg"
android:layout_marginTop="@dimen/car_radio_station_top_margin"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:paddingStart="@dimen/car_radio_band_display_margin_start"
style="@style/RadioStationBandText" />
</RelativeLayout>