161 lines
6.5 KiB
XML
161 lines
6.5 KiB
XML
|
<?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">
|
||
|
|
||
|
|
||
|
<LinearLayout
|
||
|
android:layout_width="match_parent"
|
||
|
android:layout_height="match_parent"
|
||
|
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:orientation="horizontal"
|
||
|
app:layout_constraintTop_toTopOf="parent"
|
||
|
android:layout_margin="20dp">
|
||
|
|
||
|
<ImageView
|
||
|
android:id="@+id/profilePictureImageView"
|
||
|
android:layout_width="120dp"
|
||
|
android:layout_height="120dp"
|
||
|
android:layout_weight="1"
|
||
|
tools:srcCompat="@tools:sample/avatars" />
|
||
|
|
||
|
<LinearLayout
|
||
|
android:id="@+id/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"
|
||
|
android:text="-\nPosts" />
|
||
|
|
||
|
<TextView
|
||
|
android:id="@+id/nbFollowersTextView"
|
||
|
android:layout_width="15dp"
|
||
|
android:layout_height="120dp"
|
||
|
android:layout_weight="1"
|
||
|
android:gravity="center"
|
||
|
android:text="-\nFollowers" />
|
||
|
|
||
|
<TextView
|
||
|
android:id="@+id/nbFollowingTextView"
|
||
|
android:layout_width="15dp"
|
||
|
android:layout_height="120dp"
|
||
|
android:layout_weight="1"
|
||
|
android:gravity="center"
|
||
|
android:text="-\nFollowing" />
|
||
|
</LinearLayout>
|
||
|
|
||
|
</LinearLayout>
|
||
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
||
|
|
||
|
<androidx.constraintlayout.widget.ConstraintLayout
|
||
|
android:layout_width="match_parent"
|
||
|
android:layout_height="wrap_content"
|
||
|
android:layout_marginTop="5dp"
|
||
|
android:layout_marginLeft="20dp"
|
||
|
android:layout_marginRight="20dp">
|
||
|
|
||
|
<TextView
|
||
|
android:id="@+id/accountNameTextView"
|
||
|
android:layout_width="match_parent"
|
||
|
android:layout_height="wrap_content"
|
||
|
android:text="No Username"
|
||
|
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_marginTop="5dp"
|
||
|
android:layout_marginBottom="10dp"
|
||
|
android:layout_marginRight="20dp"
|
||
|
android:layout_marginLeft="20dp">
|
||
|
|
||
|
<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_marginRight="50dp"
|
||
|
android:layout_marginLeft="50dp"
|
||
|
android:layout_marginBottom="15dp">
|
||
|
|
||
|
<Button
|
||
|
android:id="@+id/followButton"
|
||
|
android:layout_width="100dp"
|
||
|
android:layout_height="30dp"
|
||
|
android:background="@color/browser_actions_divider_color"
|
||
|
android:text="Follow"
|
||
|
android:textColor="@color/colorPrimary"
|
||
|
app:layout_constraintStart_toStartOf="parent"
|
||
|
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:id="@+id/linearLayout2"
|
||
|
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"
|
||
|
android:background="@color/colorPrimary"
|
||
|
android:src="@android:drawable/ic_dialog_dialer" />
|
||
|
|
||
|
<ImageButton
|
||
|
android:id="@+id/collectionButton"
|
||
|
android:layout_width="wrap_content"
|
||
|
android:layout_height="wrap_content"
|
||
|
android:layout_weight="1"
|
||
|
android:background="@color/colorPrimary"
|
||
|
android:src="@android:drawable/ic_menu_gallery" />
|
||
|
</LinearLayout>
|
||
|
|
||
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
||
|
|
||
|
<androidx.recyclerview.widget.RecyclerView
|
||
|
android:layout_width="match_parent"
|
||
|
android:layout_height="match_parent"
|
||
|
android:id="@+id/profilePostsRecyclerView"
|
||
|
android:layout_marginLeft="5dp"
|
||
|
android:layout_marginRight="5dp"
|
||
|
android:layout_marginTop="16dp"
|
||
|
app:layoutManager="LinearLayoutManager"
|
||
|
tools:context=".fragments.MyProfileFragment"
|
||
|
tools:listitem="@layout/fragment_profile_posts"/>
|
||
|
</LinearLayout>
|
||
|
|
||
|
</androidx.constraintlayout.widget.ConstraintLayout>
|