| <?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. |
| --> |
| |
| <android.support.v7.widget.CardView xmlns:android="http://schemas.android.com/apk/res/android" |
| android:id="@+id/card_view" |
| android:layout_width="wrap_content" |
| android:layout_height="88dip" |
| android:elevation="5dp" > |
| |
| <RelativeLayout |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| android:layout_gravity="top|right" > |
| <ImageView |
| android:id="@+id/station_more" |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| android:layout_alignParentRight="true" |
| android:layout_alignParentTop="true" |
| android:layout_marginTop="6dp" |
| android:background="@drawable/favorite_circle_button" |
| android:contentDescription="@string/more" |
| android:src="@drawable/ic_menu_moreoverflow_mtrl_alpha" |
| android:tint="#FF6b6b6b" > |
| </ImageView> |
| |
| <View |
| android:id="@+id/popupmenu_anchor" |
| android:layout_width="36dp" |
| android:layout_height="0dp" |
| android:layout_alignParentRight="true" |
| android:layout_below="@id/station_more" > |
| </View> |
| </RelativeLayout> |
| |
| <RelativeLayout |
| android:layout_width="wrap_content" |
| android:layout_height="88dp" |
| android:padding="12dip" > |
| |
| <com.android.fmradio.views.FmVisualizerView |
| android:id="@+id/fm_play_indicator" |
| android:layout_width="24dip" |
| android:layout_height="24dip" |
| android:layout_alignParentLeft="true" |
| android:layout_alignParentTop="true" |
| android:alpha="0.54" /> |
| |
| <TextView |
| android:id="@+id/station_freq" |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| android:layout_alignWithParentIfMissing="true" |
| android:layout_below="@id/fm_play_indicator" |
| android:layout_marginTop="4dip" |
| android:alpha="0.87" |
| android:ellipsize="end" |
| android:fontFamily="sans-serif-medium" |
| android:singleLine="true" |
| android:textColor="#000000" |
| android:textSize="14dip" /> |
| |
| <TextView |
| android:id="@+id/station_name" |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| android:layout_alignWithParentIfMissing="true" |
| android:layout_below="@id/station_freq" |
| android:alpha="0.54" |
| android:fontFamily="sans-serif" |
| android:maxLines="2" |
| android:ellipsize="end" |
| android:textColor="#000000" |
| android:textSize="12dip" /> |
| </RelativeLayout> |
| |
| </android.support.v7.widget.CardView> |