Home | History | Annotate | Download | only in layout
      1 <?xml version="1.0" encoding="utf-8"?>
      2 <!--
      3 /*
      4  * Copyright (C) 2011 The Android Open Source Project
      5  *
      6  * Licensed under the Apache License, Version 2.0 (the "License");
      7  * you may not use this file except in compliance with the License.
      8  * You may obtain a copy of the License at
      9  *
     10  *      http://www.apache.org/licenses/LICENSE-2.0
     11  *
     12  * Unless required by applicable law or agreed to in writing, software
     13  * distributed under the License is distributed on an "AS IS" BASIS,
     14  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     15  * See the License for the specific language governing permissions and
     16  * limitations under the License.
     17  */
     18 -->
     19 
     20 <com.android.cellbroadcastreceiver.CellBroadcastListItem xmlns:android="http://schemas.android.com/apk/res/android"
     21     android:layout_width="match_parent"
     22     android:layout_height="?android:attr/listPreferredItemHeight"
     23     android:background="@drawable/list_item_background_unread"
     24     android:paddingRight="10dip" >
     25 
     26     <TextView android:id="@+id/channel"
     27         android:layout_width="wrap_content"
     28         android:layout_height="wrap_content"
     29         android:textAppearance="?android:attr/textAppearanceMediumInverse"
     30         android:singleLine="true"
     31         android:layout_marginTop="6dip"
     32         android:layout_marginRight="5dip"
     33         android:layout_marginLeft="7dip"
     34         android:layout_alignParentLeft="true"
     35         android:layout_alignParentTop="true"
     36         android:layout_alignWithParentIfMissing="true"
     37         android:layout_toLeftOf="@+id/date"
     38         android:ellipsize="marquee"  />
     39 
     40     <TextView android:id="@+id/date"
     41         android:layout_marginTop="6dip"
     42         android:layout_marginRight="5dip"
     43         android:layout_height="wrap_content"
     44         android:layout_width="wrap_content"
     45         android:textAppearance="?android:attr/textAppearanceSmallInverse"
     46         android:singleLine="true"
     47         android:layout_alignParentRight="true"
     48         android:layout_alignParentTop="true" />
     49 
     50     <TextView android:id="@+id/message"
     51         android:layout_width="wrap_content"
     52         android:layout_height="wrap_content"
     53         android:textAppearance="?android:attr/textAppearanceSmallInverse"
     54         android:singleLine="true"
     55         android:layout_marginBottom="6dip"
     56         android:layout_marginLeft="7dip"
     57         android:layout_alignParentBottom="true"
     58         android:layout_alignWithParentIfMissing="true"
     59         android:ellipsize="end" />
     60 
     61 </com.android.cellbroadcastreceiver.CellBroadcastListItem>
     62