/soc/2012/michael/android: 2a2b22237bb7: Added blist dialog layo...

Michael Zangl michael at soc.pidgin.im
Sat Jul 7 13:00:48 EDT 2012


Changeset: 2a2b22237bb78cb2e1c7c0218b7ef98f6dc536b2
Author:	 Michael Zangl <michael at soc.pidgin.im>
Date:	 2012-07-07 18:04 +0200
Branch:	 soc.2012.android
URL: http://hg.pidgin.im/soc/2012/michael/android/rev/2a2b22237bb7

Description:

Added blist dialog layouts.

diffstat:

 android/workspace/im.pidgin.libpurple.testclient/res/layout/blist.xml             |  13 ++++
 android/workspace/im.pidgin.libpurple.testclient/res/layout/blistitem_contact.xml |  28 ++++++++++
 android/workspace/im.pidgin.libpurple.testclient/res/layout/blistitem_group.xml   |  21 +++++++
 3 files changed, 62 insertions(+), 0 deletions(-)

diffs (80 lines):

diff --git a/android/workspace/im.pidgin.libpurple.testclient/res/layout/blist.xml b/android/workspace/im.pidgin.libpurple.testclient/res/layout/blist.xml
new file mode 100644
--- /dev/null
+++ b/android/workspace/im.pidgin.libpurple.testclient/res/layout/blist.xml
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="utf-8"?>
+<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
+    android:layout_width="match_parent"
+    android:layout_height="match_parent"
+    android:orientation="vertical" >
+
+    <ListView
+        android:id="@+id/blist_list"
+        android:layout_width="match_parent"
+        android:layout_height="wrap_content" >
+    </ListView>
+
+</LinearLayout>
\ No newline at end of file
diff --git a/android/workspace/im.pidgin.libpurple.testclient/res/layout/blistitem_contact.xml b/android/workspace/im.pidgin.libpurple.testclient/res/layout/blistitem_contact.xml
new file mode 100644
--- /dev/null
+++ b/android/workspace/im.pidgin.libpurple.testclient/res/layout/blistitem_contact.xml
@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="utf-8"?>
+<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
+    android:layout_width="match_parent"
+    android:layout_height="match_parent">
+
+    <ImageView
+        android:id="@+id/blistitem_contact_icon"
+        android:layout_width="wrap_content"
+        android:layout_height="wrap_content"
+        android:layout_alignParentLeft="true"
+        android:layout_alignParentTop="true"
+        android:src="@drawable/pidgin" />
+
+    <TextView
+        android:id="@+id/blistitem_contact_name"
+        android:layout_width="wrap_content"
+        android:layout_height="wrap_content"
+        android:layout_alignParentTop="true"
+        android:layout_toRightOf="@+id/blistitem_contact_icon"/>
+
+    <TextView
+        android:id="@+id/blistitem_contact_status"
+        android:layout_width="wrap_content"
+        android:layout_height="wrap_content"
+        android:layout_alignLeft="@+id/blistitem_contact_icon"
+        android:layout_below="@+id/blistitem_contact_name"/>
+
+</RelativeLayout>
\ No newline at end of file
diff --git a/android/workspace/im.pidgin.libpurple.testclient/res/layout/blistitem_group.xml b/android/workspace/im.pidgin.libpurple.testclient/res/layout/blistitem_group.xml
new file mode 100644
--- /dev/null
+++ b/android/workspace/im.pidgin.libpurple.testclient/res/layout/blistitem_group.xml
@@ -0,0 +1,21 @@
+<?xml version="1.0" encoding="utf-8"?>
+<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
+    android:layout_width="match_parent"
+    android:layout_height="match_parent" >
+
+    <ImageView
+        android:id="@+id/blistitem_group_expander"
+        android:layout_width="20sp"
+        android:layout_height="20sp"
+        android:layout_alignParentLeft="true"
+        android:layout_alignParentTop="true"
+        android:src="@drawable/pidgin" />
+
+    <TextView
+        android:id="@+id/blistitem_group_name"
+        android:layout_width="wrap_content"
+        android:layout_height="wrap_content"
+        android:layout_alignParentTop="true"
+        android:layout_toRightOf="@+id/blistitem_group_expander"/>
+
+</RelativeLayout>
\ No newline at end of file



More information about the Commits mailing list