| <?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="@dimen/fm_list_item_height" |
| android:descendantFocusability="blocksDescendants" > |
| |
| <RelativeLayout |
| android:id="@+id/list_item_left" |
| android:layout_width="wrap_content" |
| android:layout_height="@dimen/fm_list_item_height" |
| android:layout_alignParentLeft="true" |
| android:layout_marginLeft="@dimen/fm_station_list_margin_left" |
| android:layout_toLeftOf="@+id/list_item_right" |
| android:gravity="center_vertical" > |
| |
| <RelativeLayout |
| android:id="@+id/list_item_left_up" |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| android:layout_alignParentLeft="true" |
| android:gravity="center_vertical" > |
| |
| <TextView |
| android:id="@+id/lv_station_freq" |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| android:textColor="@color/black_color" |
| android:alpha="0.87" |
| android:fontFamily="sans-serif" |
| android:gravity="center_vertical" |
| android:singleLine="true" |
| android:textSize="@dimen/fm_primary_text_size" /> |
| |
| <TextView |
| android:id="@+id/lv_station_name" |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| android:textColor="@color/black_color" |
| android:layout_marginLeft="6dip" |
| android:layout_toRightOf="@+id/lv_station_freq" |
| android:alpha="0.87" |
| android:ellipsize="end" |
| android:fontFamily="sans-serif" |
| android:gravity="center_vertical" |
| android:singleLine="true" |
| android:textSize="@dimen/fm_primary_text_size" /> |
| </RelativeLayout> |
| |
| <RelativeLayout |
| android:id="@+id/list_item_left_down" |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| android:layout_below="@+id/list_item_left_up" |
| android:gravity="center_vertical" > |
| |
| <TextView |
| android:id="@+id/lv_station_rds" |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| android:textColor="@color/black_color" |
| android:layout_marginTop="6dip" |
| android:alpha="0.54" |
| android:ellipsize="end" |
| android:fontFamily="sans-serif" |
| android:gravity="center_vertical" |
| android:singleLine="true" |
| android:textSize="@dimen/fm_rds_text_size" |
| android:visibility="visible" /> |
| </RelativeLayout> |
| </RelativeLayout> |
| |
| <RelativeLayout |
| android:id="@+id/list_item_right" |
| android:layout_width="@dimen/fm_rl_imgbtn_touch_size" |
| android:layout_height="@dimen/fm_list_item_height" |
| android:layout_alignParentRight="true" |
| android:clickable="true" |
| android:focusable="true" |
| android:gravity="center_vertical" > |
| |
| <LinearLayout |
| android:id="@+id/list_item_right_inner" |
| android:layout_width="@dimen/fm_rl_imgbtn_touch_size" |
| android:layout_height="@dimen/fm_rl_imgbtn_touch_size" |
| android:background="@drawable/favorite_circle_button" |
| android:gravity="center" > |
| |
| <ImageView |
| android:id="@+id/lv_station_type" |
| android:layout_width="@dimen/fm_list_star_width" |
| android:layout_height="@dimen/fm_list_star_height" |
| android:contentDescription="@string/talk_add_favorite" /> |
| </LinearLayout> |
| </RelativeLayout> |
| |
| </RelativeLayout> |