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
     17     xmlns:android="http://schemas.android.com/apk/res/android"
     18     android:layout_width="match_parent"
     19     android:layout_height="@dimen/car_preset_item_height"
     20     android:orientation="horizontal" >
     21 
     22     <!-- This FrameLayout ensures that the preset_item_metadata starts at stream_card_keyline_3
     23          while the radio_station_channels starts at stream_card_keyline_1. -->
     24     <FrameLayout
     25         android:layout_width="@dimen/stream_card_keyline_3"
     26         android:layout_height="match_parent">
     27 
     28         <TextView
     29             android:id="@+id/preset_station_channel"
     30             android:background="@drawable/preset_channel_bg"
     31             android:layout_marginStart="@dimen/stream_card_keyline_1"
     32             android:layout_width="@dimen/car_preset_number_bg_width"
     33             android:layout_height="@dimen/car_preset_number_bg_height"
     34             android:layout_gravity="center_vertical"
     35             android:gravity="center"
     36             android:textSize="@dimen/car_body2_size"
     37             style="@style/RadioPresetItemChannelText" />
     38     </FrameLayout>
     39 
     40     <TextView
     41         android:id="@+id/preset_item_metadata"
     42         android:layout_width="0dp"
     43         android:layout_height="wrap_content"
     44         android:layout_weight="1"
     45         android:layout_gravity="center_vertical"
     46         android:layout_marginEnd="@dimen/radio_default_spacing"
     47         style="@style/RadioPresetItemMetadataText" />
     48 
     49     <ImageView
     50         android:id="@+id/preset_equalizer"
     51         android:layout_width="@dimen/preset_equalizer_size"
     52         android:layout_height="@dimen/preset_equalizer_size"
     53         android:layout_gravity="center_vertical"
     54         android:layout_marginEnd="@dimen/stream_card_keyline_1"
     55         android:src="@drawable/ic_equalizer"
     56         android:visibility="gone" />
     57 
     58 </LinearLayout>
     59