2020-04-09 22:36:59 +02:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
tools:context=".ProfileActivity">
|
|
|
|
|
2020-10-04 23:27:06 +02:00
|
|
|
<androidx.core.widget.NestedScrollView
|
2020-05-01 11:26:18 +02:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent">
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:orientation="vertical">
|
|
|
|
|
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content">
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_margin="20dp"
|
|
|
|
android:orientation="horizontal"
|
|
|
|
app:layout_constraintTop_toTopOf="parent">
|
|
|
|
|
|
|
|
<ImageView
|
|
|
|
android:id="@+id/profilePictureImageView"
|
|
|
|
android:layout_width="120dp"
|
|
|
|
android:layout_height="120dp"
|
|
|
|
android:layout_weight="1"
|
2020-05-21 15:22:57 +02:00
|
|
|
tools:srcCompat="@tools:sample/avatars" />
|
2020-05-01 11:26:18 +02:00
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:layout_weight="10"
|
|
|
|
android:orientation="horizontal">
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/nbPostsTextView"
|
|
|
|
android:layout_width="15dp"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:layout_weight="1"
|
|
|
|
android:gravity="center"
|
2020-05-21 15:22:57 +02:00
|
|
|
android:text="@string/default_nposts" />
|
2020-05-01 11:26:18 +02:00
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/nbFollowersTextView"
|
|
|
|
android:layout_width="15dp"
|
|
|
|
android:layout_height="120dp"
|
|
|
|
android:layout_weight="1"
|
|
|
|
android:gravity="center"
|
2020-05-21 15:22:57 +02:00
|
|
|
android:text="@string/default_nfollowers" />
|
2020-05-01 11:26:18 +02:00
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/nbFollowingTextView"
|
|
|
|
android:layout_width="15dp"
|
|
|
|
android:layout_height="120dp"
|
|
|
|
android:layout_weight="1"
|
|
|
|
android:gravity="center"
|
2020-05-21 15:22:57 +02:00
|
|
|
android:text="@string/default_nfollowing" />
|
2020-05-01 11:26:18 +02:00
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
|
|
|
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginLeft="20dp"
|
|
|
|
android:layout_marginTop="5dp"
|
|
|
|
android:layout_marginRight="20dp">
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/accountNameTextView"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
2020-05-21 15:22:57 +02:00
|
|
|
android:text="@string/no_username"
|
2020-05-01 11:26:18 +02:00
|
|
|
app:layout_constraintTop_toTopOf="parent" />
|
|
|
|
|
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
|
|
|
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginLeft="20dp"
|
|
|
|
android:layout_marginTop="5dp"
|
|
|
|
android:layout_marginRight="20dp"
|
|
|
|
android:layout_marginBottom="10dp">
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/descriptionTextView"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
app:layout_constraintTop_toTopOf="parent" />
|
|
|
|
|
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
|
|
|
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginLeft="50dp"
|
|
|
|
android:layout_marginRight="50dp"
|
|
|
|
android:layout_marginBottom="15dp">
|
|
|
|
|
|
|
|
<Button
|
|
|
|
android:id="@+id/followButton"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
2020-05-21 15:22:57 +02:00
|
|
|
android:text="@string/follow"
|
2020-05-01 11:26:18 +02:00
|
|
|
android:visibility="invisible"
|
2020-05-15 09:23:06 +02:00
|
|
|
android:textColor="@color/colorButtonText"
|
|
|
|
android:backgroundTint="@color/colorButtonBg"
|
2020-05-01 11:26:18 +02:00
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
app:layout_constraintTop_toTopOf="parent" />
|
|
|
|
|
|
|
|
<Button
|
|
|
|
android:id="@+id/editButton"
|
|
|
|
android:layout_width="match_parent"
|
2020-05-15 09:23:06 +02:00
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:textColor="@color/colorButtonText"
|
|
|
|
android:backgroundTint="@color/colorButtonBg"
|
2020-05-01 11:26:18 +02:00
|
|
|
android:visibility="gone"
|
2020-05-21 15:22:57 +02:00
|
|
|
android:text="@string/edit_profile"
|
2020-05-01 11:26:18 +02:00
|
|
|
app:layout_constraintTop_toTopOf="parent" />
|
|
|
|
|
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
|
|
|
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content">
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:orientation="horizontal"
|
|
|
|
app:layout_constraintTop_toTopOf="parent">
|
|
|
|
|
|
|
|
<ImageButton
|
|
|
|
android:id="@+id/postsButton"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_weight="1"
|
2020-05-15 09:23:06 +02:00
|
|
|
android:background="@color/colorPrimaryTab"
|
|
|
|
android:src="@android:drawable/ic_dialog_dialer"
|
|
|
|
android:contentDescription="TODO" />
|
2020-05-01 11:26:18 +02:00
|
|
|
|
|
|
|
<ImageButton
|
|
|
|
android:id="@+id/collectionButton"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_weight="1"
|
2020-05-15 09:23:06 +02:00
|
|
|
android:background="@color/colorPrimaryTab"
|
|
|
|
android:src="@android:drawable/ic_menu_gallery"
|
|
|
|
android:contentDescription="TODO" />
|
2020-05-01 11:26:18 +02:00
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
|
|
|
|
|
|
<androidx.recyclerview.widget.RecyclerView
|
|
|
|
android:id="@+id/profilePostsRecyclerView"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:layout_margin="5dp"
|
2020-10-04 23:27:06 +02:00
|
|
|
android:nestedScrollingEnabled="false"
|
2020-05-01 11:26:18 +02:00
|
|
|
app:layoutManager="LinearLayoutManager"
|
|
|
|
tools:context=".fragments.ProfileFragment"
|
|
|
|
tools:listitem="@layout/fragment_profile_posts" />
|
|
|
|
</LinearLayout>
|
2020-10-04 23:27:06 +02:00
|
|
|
</androidx.core.widget.NestedScrollView>
|
2020-05-01 11:26:18 +02:00
|
|
|
|
2020-04-09 22:36:59 +02:00
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|