Layout fixes.
This commit is contained in:
parent
eac2221cef
commit
dbcacb8a98
2 changed files with 2 additions and 1 deletions
|
@ -8,12 +8,12 @@
|
||||||
android:id="@+id/scrollview"
|
android:id="@+id/scrollview"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_centerHorizontal="true"
|
|
||||||
android:layout_above="@+id/hint">
|
android:layout_above="@+id/hint">
|
||||||
|
|
||||||
<RelativeLayout
|
<RelativeLayout
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_gravity="center"
|
||||||
android:gravity="center"
|
android:gravity="center"
|
||||||
android:padding="10dip">
|
android:padding="10dip">
|
||||||
|
|
||||||
|
|
|
@ -59,6 +59,7 @@ class AddContactsActivity extends EnsiChatActivity with ChatService.OnConnection
|
||||||
val list = findViewById(android.R.id.list).asInstanceOf[ListView]
|
val list = findViewById(android.R.id.list).asInstanceOf[ListView]
|
||||||
list.setAdapter(Adapter)
|
list.setAdapter(Adapter)
|
||||||
list.setOnItemClickListener(this)
|
list.setOnItemClickListener(this)
|
||||||
|
list.setEmptyView(findViewById(android.R.id.empty))
|
||||||
|
|
||||||
runOnServiceConnected(() => {
|
runOnServiceConnected(() => {
|
||||||
service.registerConnectionListener(AddContactsActivity.this)
|
service.registerConnectionListener(AddContactsActivity.this)
|
||||||
|
|
Reference in a new issue