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 <RelativeLayout
     17     xmlns:android="http://schemas.android.com/apk/res/android"
     18     android:layout_alignParentTop="true"
     19     android:layout_alignParentEnd="true"
     20     android:layout_width="wrap_content"
     21     android:layout_height="wrap_content"
     22     android:orientation="horizontal">
     23 
     24     <TextView
     25         android:id="@+id/radio_list_station_channel"
     26         android:layout_marginEnd="@dimen/stream_content_keyline_1"
     27         android:layout_alignParentEnd="true"
     28         android:layout_alignParentTop="true"
     29         android:layout_width="wrap_content"
     30         android:layout_height="wrap_content"
     31         style="@style/RadioStationChannelText" />
     32 
     33     <!-- Using a negative margin start on this View so that it starts off flushed to the
     34          end of radio_station_channel. This is needed because radio_station_channel needs
     35          to be a distance of stream_content_keyline_2 from the end of its parent. -->
     36     <TextView
     37         android:id="@+id/radio_list_station_band"
     38         android:layout_alignBaseline="@id/radio_list_station_channel"
     39         android:layout_gravity="bottom|end"
     40         android:layout_toEndOf="@id/radio_list_station_channel"
     41         android:layout_marginStart="@dimen/stream_content_keyline_1_neg"
     42         android:layout_width="wrap_content"
     43         android:layout_height="wrap_content"
     44         android:paddingStart="@dimen/car_radio_band_display_margin_start"
     45         style="@style/RadioStationBandText" />
     46 </RelativeLayout>
     47