2023-02-11 23:41:23 -06:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
2023-07-29 00:55:07 -06:00
|
|
|
<androidx.coordinatorlayout.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
2023-02-11 23:41:23 -06:00
|
|
|
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">
|
|
|
|
|
|
|
|
|
|
|
2023-07-15 20:58:57 -06:00
|
|
|
<com.google.android.material.appbar.AppBarLayout
|
|
|
|
|
android:id="@+id/topAppBar_layout"
|
|
|
|
|
android:layout_width="match_parent"
|
2023-07-29 00:55:07 -06:00
|
|
|
android:layout_height="wrap_content">
|
|
|
|
|
<com.google.android.material.appbar.CollapsingToolbarLayout
|
|
|
|
|
android:id="@+id/collapsing_toolbar_layout"
|
2023-07-15 20:58:57 -06:00
|
|
|
android:layout_width="match_parent"
|
2023-07-29 00:55:07 -06:00
|
|
|
android:layout_height="410dp"
|
|
|
|
|
app:layout_scrollFlags="scroll|exitUntilCollapsed|snap"
|
|
|
|
|
app:contentScrim="@color/purple">
|
2023-07-15 20:58:57 -06:00
|
|
|
|
2023-07-29 00:55:07 -06:00
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="350dp"
|
|
|
|
|
android:orientation="vertical"
|
|
|
|
|
android:layout_marginTop="56dp">
|
|
|
|
|
|
|
|
|
|
<com.google.android.material.imageview.ShapeableImageView
|
|
|
|
|
android:id="@+id/profile_image_view"
|
|
|
|
|
android:layout_width="120dp"
|
|
|
|
|
android:layout_height="120dp"
|
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
|
|
|
app:shapeAppearance="@style/ShapeAppearanceOverlay.Avatar"
|
|
|
|
|
tools:srcCompat="@tools:sample/avatars" />
|
|
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
|
android:id="@+id/text_view_username"
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:layout_marginTop="20dp"
|
|
|
|
|
android:layout_weight="1"
|
|
|
|
|
android:textSize="20sp"
|
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
|
app:layout_constraintTop_toBottomOf="@id/profile_image_view"
|
|
|
|
|
tools:text="Erik Cavazos" />
|
|
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
|
android:id="@+id/text_view_description"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:layout_marginHorizontal="20dp"
|
|
|
|
|
android:maxLines="4"
|
|
|
|
|
android:textAlignment="center"
|
|
|
|
|
app:layout_constraintTop_toBottomOf="@id/text_view_username"
|
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
|
tools:text="Hi there, I am software developer!" />
|
|
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
|
android:id="@+id/text_view_following_state"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:layout_marginTop="20dp"
|
|
|
|
|
android:textAlignment="center"
|
|
|
|
|
android:textStyle="bold"
|
|
|
|
|
app:layout_constraintTop_toBottomOf="@id/text_view_description"
|
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
|
tools:text="Following this profile" />
|
|
|
|
|
|
|
|
|
|
<com.google.android.material.button.MaterialButton
|
|
|
|
|
style="?attr/materialIconButtonFilledTonalStyle"
|
|
|
|
|
android:layout_width="0dp"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:layout_marginStart="16dp"
|
|
|
|
|
android:layout_marginEnd="8dp"
|
|
|
|
|
|
|
|
|
|
app:layout_constraintEnd_toStartOf="@id/profile_options_button"
|
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
|
app:layout_constraintTop_toBottomOf="@id/text_view_following_state" />
|
|
|
|
|
|
|
|
|
|
<com.google.android.material.button.MaterialButton
|
|
|
|
|
android:id="@+id/profile_options_button"
|
|
|
|
|
style="?attr/materialIconButtonFilledTonalStyle"
|
|
|
|
|
android:layout_width="0dp"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:layout_marginEnd="16dp"
|
|
|
|
|
app:icon="@drawable/baseline_more_horiz_24"
|
|
|
|
|
|
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
|
app:layout_constraintTop_toBottomOf="@id/text_view_following_state"/>
|
|
|
|
|
|
|
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
|
|
|
|
|
|
|
|
<com.google.android.material.appbar.MaterialToolbar
|
|
|
|
|
android:id="@+id/top_app_bar"
|
|
|
|
|
style="@style/Theme.Isolaatti"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="?attr/actionBarSize"
|
|
|
|
|
app:navigationIcon="@drawable/baseline_arrow_back_24"
|
|
|
|
|
app:navigationIconTint="@color/on_surface"
|
|
|
|
|
app:layout_collapseMode="pin" />
|
2023-07-15 20:58:57 -06:00
|
|
|
|
2023-07-29 00:55:07 -06:00
|
|
|
</com.google.android.material.appbar.CollapsingToolbarLayout>
|
2023-02-11 23:41:23 -06:00
|
|
|
|
2023-07-15 20:58:57 -06:00
|
|
|
|
|
|
|
|
|
2023-02-11 23:41:23 -06:00
|
|
|
|
|
|
|
|
|
2023-07-29 00:55:07 -06:00
|
|
|
</com.google.android.material.appbar.AppBarLayout>
|
|
|
|
|
<androidx.recyclerview.widget.RecyclerView
|
|
|
|
|
android:id="@+id/feed_recycler_view"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
|
app:layout_behavior="com.google.android.material.appbar.AppBarLayout$ScrollingViewBehavior"/>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</androidx.coordinatorlayout.widget.CoordinatorLayout>
|