Home | History | Annotate | Download | only in layout
      1 <?xml version="1.0" encoding="utf-8"?>
      2 <!-- Copyright (C) 2012 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 
     17 <LinearLayout
     18     xmlns:android="http://schemas.android.com/apk/res/android"
     19     android:layout_width="match_parent"
     20     android:gravity="center_vertical"
     21     android:background="?android:attr/selectableItemBackground"
     22     android:layout_height="wrap_content"
     23     android:minHeight="@dimen/cities_list_item_height"
     24     android:orientation="horizontal">
     25     <CheckBox
     26         android:id="@+id/city_onoff"
     27         android:clickable="false"
     28         android:button="@drawable/red_checkbox"
     29         android:layout_height="wrap_content"
     30         android:layout_width="wrap_content" />
     31     <ImageView
     32         android:id="@+id/city_selected_icon"
     33         android:clickable="false"
     34         android:src="@drawable/ic_location"
     35         android:layout_height="wrap_content"
     36         android:layout_width="wrap_content" />
     37     <TextView
     38         android:id="@+id/city_name"
     39         style="@style/city_name"
     40         android:textColor="@color/clock_white"
     41         android:paddingStart="16dip"
     42         android:paddingEnd="10dip"
     43         android:layout_height="wrap_content"
     44         android:layout_width="0dip"
     45         android:layout_weight="1"
     46         android:ellipsize="end"
     47         android:singleLine="true" />
     48     <TextView
     49         android:id="@+id/city_time"
     50         style="@style/city_time"
     51         android:textColor="@color/clock_gray"
     52         android:layout_marginRight="8dip"
     53         android:layout_height="wrap_content"
     54         android:layout_width="wrap_content"/>
     55     <ImageView
     56         android:id="@+id/city_remove"
     57         android:src="@android:drawable/ic_menu_close_clear_cancel"
     58         android:background="@drawable/item_background"
     59         android:layout_marginRight="4dip"
     60         android:gravity="center_vertical"
     61         android:layout_height="wrap_content"
     62         android:layout_width="wrap_content" />
     63 </LinearLayout>
     64