Home | History | Annotate | Download | only in layout
      1 <?xml version="1.0" encoding="utf-8"?>
      2 <!--
      3      Copyright (C) 2014 The Android Open Source Project
      4 
      5      Licensed under the Apache License, Version 2.0 (the "License");
      6      you may not use this file except in compliance with the License.
      7      You may obtain a copy of the License at
      8 
      9           http://www.apache.org/licenses/LICENSE-2.0
     10 
     11      Unless required by applicable law or agreed to in writing, software
     12      distributed under the License is distributed on an "AS IS" BASIS,
     13      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     14      See the License for the specific language governing permissions and
     15      limitations under the License.
     16 -->
     17 
     18 <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
     19     android:layout_width="match_parent"
     20     android:layout_height="@dimen/fm_list_item_height"
     21     android:descendantFocusability="blocksDescendants" >
     22 
     23     <RelativeLayout
     24         android:id="@+id/list_item_left"
     25         android:layout_width="wrap_content"
     26         android:layout_height="@dimen/fm_list_item_height"
     27         android:layout_alignParentLeft="true"
     28         android:layout_marginLeft="@dimen/fm_station_list_margin_left"
     29         android:layout_toLeftOf="@+id/list_item_right"
     30         android:gravity="center_vertical" >
     31 
     32         <RelativeLayout
     33             android:id="@+id/list_item_left_up"
     34             android:layout_width="wrap_content"
     35             android:layout_height="wrap_content"
     36             android:layout_alignParentLeft="true"
     37             android:gravity="center_vertical" >
     38 
     39             <TextView
     40                 android:id="@+id/lv_station_freq"
     41                 android:layout_width="wrap_content"
     42                 android:layout_height="wrap_content"
     43                 android:textColor="@color/black_color"
     44                 android:alpha="0.87"
     45                 android:fontFamily="sans-serif"
     46                 android:gravity="center_vertical"
     47                 android:singleLine="true"
     48                 android:textSize="@dimen/fm_primary_text_size" />
     49 
     50             <TextView
     51                 android:id="@+id/lv_station_name"
     52                 android:layout_width="wrap_content"
     53                 android:layout_height="wrap_content"
     54                 android:textColor="@color/black_color"
     55                 android:layout_marginLeft="6dip"
     56                 android:layout_toRightOf="@+id/lv_station_freq"
     57                 android:alpha="0.87"
     58                 android:ellipsize="end"
     59                 android:fontFamily="sans-serif"
     60                 android:gravity="center_vertical"
     61                 android:singleLine="true"
     62                 android:textSize="@dimen/fm_primary_text_size" />
     63         </RelativeLayout>
     64 
     65         <RelativeLayout
     66             android:id="@+id/list_item_left_down"
     67             android:layout_width="wrap_content"
     68             android:layout_height="wrap_content"
     69             android:layout_below="@+id/list_item_left_up"
     70             android:gravity="center_vertical" >
     71 
     72             <TextView
     73                 android:id="@+id/lv_station_rds"
     74                 android:layout_width="wrap_content"
     75                 android:layout_height="wrap_content"
     76                 android:textColor="@color/black_color"
     77                 android:layout_marginTop="6dip"
     78                 android:alpha="0.54"
     79                 android:ellipsize="end"
     80                 android:fontFamily="sans-serif"
     81                 android:gravity="center_vertical"
     82                 android:singleLine="true"
     83                 android:textSize="@dimen/fm_rds_text_size"
     84                 android:visibility="visible" />
     85         </RelativeLayout>
     86     </RelativeLayout>
     87 
     88     <RelativeLayout
     89         android:id="@+id/list_item_right"
     90         android:layout_width="@dimen/fm_rl_imgbtn_touch_size"
     91         android:layout_height="@dimen/fm_list_item_height"
     92         android:layout_alignParentRight="true"
     93         android:clickable="true"
     94         android:focusable="true"
     95         android:gravity="center_vertical" >
     96 
     97         <LinearLayout
     98             android:id="@+id/list_item_right_inner"
     99             android:layout_width="@dimen/fm_rl_imgbtn_touch_size"
    100             android:layout_height="@dimen/fm_rl_imgbtn_touch_size"
    101             android:background="@drawable/favorite_circle_button"
    102             android:gravity="center" >
    103 
    104             <ImageView
    105                 android:id="@+id/lv_station_type"
    106                 android:layout_width="@dimen/fm_list_star_width"
    107                 android:layout_height="@dimen/fm_list_star_height"
    108                 android:contentDescription="@string/talk_add_favorite" />
    109         </LinearLayout>
    110     </RelativeLayout>
    111 
    112 </RelativeLayout>