From dbcacb8a988815b14b58f41b245ed78c3a78e63a Mon Sep 17 00:00:00 2001 From: Felix Ableitner Date: Mon, 17 Nov 2014 13:09:16 +0200 Subject: [PATCH] Layout fixes. --- app/src/main/res/layout/dialog_add_contact.xml | 2 +- .../com/nutomic/ensichat/activities/AddContactsActivity.scala | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/app/src/main/res/layout/dialog_add_contact.xml b/app/src/main/res/layout/dialog_add_contact.xml index 7d0677f..e1a1a5e 100644 --- a/app/src/main/res/layout/dialog_add_contact.xml +++ b/app/src/main/res/layout/dialog_add_contact.xml @@ -8,12 +8,12 @@ android:id="@+id/scrollview" android:layout_width="match_parent" android:layout_height="wrap_content" - android:layout_centerHorizontal="true" android:layout_above="@+id/hint"> diff --git a/app/src/main/scala/com/nutomic/ensichat/activities/AddContactsActivity.scala b/app/src/main/scala/com/nutomic/ensichat/activities/AddContactsActivity.scala index 7fe9f82..0959675 100644 --- a/app/src/main/scala/com/nutomic/ensichat/activities/AddContactsActivity.scala +++ b/app/src/main/scala/com/nutomic/ensichat/activities/AddContactsActivity.scala @@ -59,6 +59,7 @@ class AddContactsActivity extends EnsiChatActivity with ChatService.OnConnection val list = findViewById(android.R.id.list).asInstanceOf[ListView] list.setAdapter(Adapter) list.setOnItemClickListener(this) + list.setEmptyView(findViewById(android.R.id.empty)) runOnServiceConnected(() => { service.registerConnectionListener(AddContactsActivity.this)