Ticket #724: helpfulcheckbox_layout.xml

File helpfulcheckbox_layout.xml, 1.2 KB (added by agnieszka.domanska, on 03/15/2015 at 11:40:24 AM)

new custom layout for helpfulCheckboxPreference

Line 
1<?xml version="1.0" encoding="utf-8"?>
2
3<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
4    android:layout_width="fill_parent"
5    android:layout_height="wrap_content"
6    android:minHeight="?android:attr/listPreferredItemHeight"
7    android:gravity="center_vertical"
8    android:paddingRight="?android:attr/scrollbarSize"
9    android:orientation="horizontal">
10
11    <RelativeLayout
12        android:layout_width="wrap_content"
13        android:layout_height="wrap_content"
14        android:layout_marginLeft="15dip"
15        android:layout_marginRight="6dip"
16        android:layout_marginTop="6dip"
17        android:layout_marginBottom="6dip"
18        android:layout_weight="1">
19       
20        <ImageView
21                android:id="@+id/menu_help"
22                android:layout_width="wrap_content"
23                android:layout_height="wrap_content"
24                android:src="@drawable/ic_menu_help"
25                android:layout_toRightOf="@+android:id/summary"
26                android:layout_centerVertical="true" />
27
28    </RelativeLayout>
29   
30    <CheckBox android:id="@+android:id/checkbox"
31                android:layout_width="wrap_content"
32                android:layout_height="wrap_content"
33                android:focusable="false"
34                android:clickable="false"/>
35
36</LinearLayout>
37   
38   
39
40
41   
42