You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
tasks/astrid/res/layout/filter_adapter_row.xml

69 lines
2.5 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<!-- See the file "LICENSE" for the full license governing this code. -->
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="58dip"
android:background="@android:drawable/list_selector_background"
android:paddingTop="5dip"
android:paddingBottom="5dip"
android:paddingLeft="7dip"
android:paddingRight="6dip"
android:orientation="horizontal">
<!-- filter icon -->
<ImageView android:id="@+id/icon"
android:layout_width="25dip"
android:layout_height="48dip"
android:layout_alignParentLeft="true"
android:layout_marginTop="4dp"
android:layout_marginLeft="12dip"
android:scaleType="fitCenter"
android:visibility="gone"/>
<!-- filter url image icon -->
<greendroid.widget.AsyncImageView android:id="@+id/url_image"
android:layout_width="30dip"
android:layout_height="48dip"
android:layout_alignParentLeft="true"
android:layout_marginTop="4dp"
android:layout_marginLeft="10dip"
android:scaleType="fitCenter"
android:visibility="gone"/>
<!-- filter name -->
<TextView android:id="@+id/name"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_marginLeft="55dp"
android:layout_marginTop="2dp"
android:paddingRight="30dp"
android:checked="false"
android:checkMark="?android:attr/listChoiceIndicatorMultiple"
android:gravity="center_vertical" />
<!-- size -->
<TextView android:id="@+id/size"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentRight="true"
android:background="@drawable/filter_count"
android:layout_marginRight="5dip"
android:layout_marginTop="15dip"
android:paddingLeft="7dip"
android:paddingRight="7dip"
android:textColor="#ffffff"
android:gravity="center" />
<!-- selected -->
<ImageView android:id="@+id/selected"
android:layout_width="24dip"
android:layout_height="fill_parent"
android:layout_toLeftOf="@id/size"
android:paddingLeft="5dip"
android:paddingRight="5dip"
android:src="?attr/asFilterSelectedIcon"
android:scaleType="fitCenter"
android:visibility="gone"/>
</RelativeLayout>