Friends List is displayed

This commit is contained in:
Pierre
2017-11-15 18:29:58 +01:00
parent 81c2e390c2
commit 3a54768224
8 changed files with 351 additions and 13 deletions

View File

@ -0,0 +1,43 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:orientation="horizontal"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:paddingStart="8dp"
android:paddingEnd="8dp">
<ImageView
android:id="@+id/fragment_friendslist_item_accountimage"
android:layout_width="@dimen/account_image_default_width"
android:layout_height="@dimen/account_image_default_height"
android:src="@drawable/default_account_image"
android:contentDescription="User account image"
android:layout_gravity="center"/>
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="vertical"
android:paddingStart="8dp"
android:paddingEnd="4dp"
android:layout_gravity="center"
>
<TextView
android:id="@+id/fragment_friendslist_item_fullname"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
tools:text="Full user name"
android:textSize="16sp"/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
tools:text="Online"
android:textColor="@android:color/holo_green_dark"/>
</LinearLayout>
</LinearLayout>

View File

@ -1,11 +1,20 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical" android:layout_width="match_parent"
android:layout_height="match_parent">
<TextView
<!-- Progress bar - when loading the list of friends -->
<ProgressBar
android:id="@+id/fragment_friendslist_progressbar"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Hello from friends list"/>
android:layout_centerHorizontal="true" />
</LinearLayout>
<ListView
android:id="@+id/fragment_friendslist_listview"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
android:numColumns="auto_fit" />
</RelativeLayout>