My favorites | Sign in
Project Home Downloads Wiki Issues Source
Checkout   Browse   Changes    
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:id="@+id/dialog_multy_selector"
android:background="#ffffff"
>

<LinearLayout android:id="@+id/unidialog_layout_ok_cancel"
android:background="#C2C2C2"
android:orientation="horizontal"
android:gravity="center_vertical"
android:layout_alignParentBottom="true"
android:layout_weight="1"
android:layout_width="fill_parent"
android:layout_height="60dip">
<Button android:id="@+id/unidialog_button_ok"
android:text="Ok"
android:gravity="center"
android:layout_gravity="center_vertical"
android:layout_weight="1"
android:layout_marginRight="5dip"
android:layout_marginLeft="5dip"
android:layout_centerVertical="true"
android:layout_width="fill_parent"
android:layout_height="50dip">
</Button>
<Button android:id="@+id/unidialog_button_cancel"
android:text="Cancel"
android:layout_weight="1"
android:layout_marginRight="5dip"
android:layout_marginLeft="5dip"
android:layout_centerVertical="true"
android:gravity="center"
android:layout_gravity="center_vertical"
android:layout_width="fill_parent"
android:layout_height="50dip">
</Button>
</LinearLayout>

<LinearLayout
android:id="@+id/unidialog_pageview"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:focusable="true"
android:focusableInTouchMode="true"
android:orientation="vertical"
android:layout_above="@id/unidialog_layout_ok_cancel"
>
<ListView
android:id="@+id/unidialog_listview"
android:layout_height="wrap_content"
android:layout_width="fill_parent"
android:scrollbarStyle="outsideOverlay"
android:cacheColorHint="#FFFFFFFF"
android:fastScrollEnabled="true"
android:smoothScrollbar="true"/>

</LinearLayout>

</RelativeLayout>

Change log

r45 by dvpublic0 on Dec 16, 2011   Diff
Universal implementation of multi/single
selection dialog. Dialog is able to show
list of any items. If item implements a
couple of special interfaces then dialog
will be able to show images and
descriptions.
Go to: 
Sign in to write a code review

Older revisions

All revisions of this file

File info

Size: 2034 bytes, 63 lines
Powered by Google Project Hosting