Instantly share code, notes, and snippets.
Created
July 19, 2022 06:19
-
Star
0
(0)
You must be signed in to star a gist -
Fork
0
(0)
You must be signed in to fork a gist
-
Save Sardorbekcyber/65c471e00e7535ebdc123ab9847eaced to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<androidx.appcompat.widget.LinearLayoutCompat 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" | |
android:background="@color/white" | |
android:orientation="vertical"> | |
<include | |
android:id="@+id/app_bar" | |
layout="@layout/flow_menu_profile_app_bar" | |
app:layout_constraintTop_toTopOf="parent" /> | |
<com.google.android.material.progressindicator.LinearProgressIndicator | |
android:id="@+id/linear_progress" | |
android:layout_width="match_parent" | |
android:layout_height="3dp" | |
android:indeterminate="true" | |
app:indicatorColor="@color/primary_blue_700" | |
app:trackColor="@color/white" /> | |
<androidx.coordinatorlayout.widget.CoordinatorLayout | |
android:layout_width="match_parent" | |
android:layout_height="0dp" | |
android:layout_weight="1" | |
android:fitsSystemWindows="false"> | |
<com.google.android.material.appbar.AppBarLayout | |
android:layout_width="match_parent" | |
android:layout_height="wrap_content" | |
android:background="@color/white" | |
android:elevation="0dp"> | |
<com.google.android.material.appbar.CollapsingToolbarLayout | |
android:id="@+id/toolbar_layout" | |
android:layout_width="match_parent" | |
android:layout_height="match_parent" | |
android:fitsSystemWindows="true" | |
android:focusableInTouchMode="false" | |
android:stateListAnimator="@null" | |
app:contentScrim="@color/white" | |
app:layout_scrollFlags="scroll|enterAlwaysCollapsed" | |
app:scrimAnimationDuration="10000000" | |
app:titleEnabled="false"> | |
<androidx.constraintlayout.widget.ConstraintLayout | |
android:layout_width="match_parent" | |
android:layout_height="match_parent" | |
android:background="@android:color/transparent"> | |
<com.google.android.material.imageview.ShapeableImageView | |
android:id="@+id/profile_image" | |
android:layout_width="90dp" | |
android:layout_height="90dp" | |
android:layout_marginStart="@dimen/_16dp" | |
android:layout_marginTop="18.5dp" | |
app:layout_constraintStart_toStartOf="parent" | |
app:layout_constraintTop_toTopOf="parent" | |
app:shapeAppearance="@style/flow_menu_profile_circleImageView" | |
tools:srcCompat="@drawable/avatar" /> | |
<include | |
android:id="@+id/user_details_layout" | |
layout="@layout/flow_menu_profile_layout_user_details_view" | |
android:layout_width="0dp" | |
android:layout_height="wrap_content" | |
android:layout_marginHorizontal="@dimen/_16dp" | |
android:layout_marginTop="@dimen/_12dp" | |
app:layout_constraintEnd_toEndOf="parent" | |
app:layout_constraintStart_toEndOf="@id/profile_image" | |
app:layout_constraintTop_toTopOf="parent" /> | |
<app.skylab.coreui.customview.StreakView | |
android:id="@+id/streak_view_current" | |
android:layout_width="115dp" | |
android:layout_height="wrap_content" | |
android:layout_marginStart="@dimen/_12dp" | |
android:layout_marginTop="@dimen/_8dp" | |
app:layout_constraintEnd_toStartOf="@id/streak_view_best" | |
app:layout_constraintStart_toStartOf="@id/user_details_layout" | |
app:layout_constraintTop_toBottomOf="@id/user_details_layout" | |
tools:streakCount="29 Days" | |
tools:streakText="@string/flow_menu_profile_current_streak" /> | |
<app.skylab.coreui.customview.StreakView | |
android:id="@+id/streak_view_best" | |
android:layout_width="115dp" | |
android:layout_height="wrap_content" | |
android:layout_marginStart="@dimen/_8dp" | |
android:layout_marginTop="@dimen/_8dp" | |
app:layout_constraintEnd_toEndOf="@id/user_details_layout" | |
app:layout_constraintStart_toEndOf="@id/streak_view_current" | |
app:layout_constraintTop_toBottomOf="@id/user_details_layout" | |
tools:streakCount="5 Days" | |
tools:streakText="@string/flow_menu_profile_best_streak" /> | |
<app.skylab.coreui.customview.universal_textview.UniversalTextView | |
android:id="@+id/user_bio" | |
android:layout_width="match_parent" | |
android:layout_height="wrap_content" | |
android:layout_marginHorizontal="@dimen/_16dp" | |
android:layout_marginTop="@dimen/_16dp" | |
android:textColor="@color/black" | |
android:textColorLink="#006BD6" | |
android:textSize="13sp" | |
android:textStyle="bold" | |
app:emailColor="#006BD6" | |
app:hashtagColor="#006BD6" | |
app:layout_constraintTop_toBottomOf="@id/streak_view_current" | |
app:linkType="mention|phone|email|hashtag|url" | |
app:mentionColor="#006BD6" | |
app:normalTextColor="#000" | |
app:phoneColor="#006BD6" | |
app:tvExpandAction="@string/more" | |
app:tvExpandActionColor="@color/primary_blue_700" | |
app:tvLimitedMaxLines="2" | |
app:tvOriginalText="" | |
app:urlColor="#006BD6" | |
tools:text="@string/flow_menu_profile_sample_read_more_text" /> | |
<androidx.appcompat.widget.AppCompatTextView | |
android:id="@+id/img_calendar" | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content" | |
android:layout_marginStart="16dp" | |
android:layout_marginTop="16dp" | |
android:drawablePadding="8dp" | |
android:text="@string/flow_menu_profile_joined" | |
app:drawableStartCompat="@drawable/flow_menu_profile_ic_calendar" | |
app:layout_constraintStart_toStartOf="parent" | |
app:layout_constraintTop_toBottomOf="@id/user_bio" /> | |
<androidx.constraintlayout.widget.Group | |
android:id="@+id/group_location" | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content" | |
app:constraint_referenced_ids="img_map_pin, tv_location" /> | |
<androidx.appcompat.widget.AppCompatTextView | |
android:id="@+id/img_map_pin" | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content" | |
android:layout_marginStart="@dimen/_16dp" | |
android:drawablePadding="8dp" | |
android:text="@string/flow_menu_profile_location" | |
app:drawableStartCompat="@drawable/flow_menu_profile_ic_map_pin" | |
app:layout_constraintStart_toStartOf="parent" | |
app:layout_constraintTop_toBottomOf="@id/img_calendar" /> | |
<androidx.appcompat.widget.AppCompatTextView | |
android:id="@+id/tv_joined_date" | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content" | |
android:layout_marginStart="8dp" | |
android:textAppearance="@style/Text.Medium.14" | |
android:textColor="@color/black" | |
app:layout_constraintBottom_toBottomOf="@id/img_calendar" | |
app:layout_constraintStart_toEndOf="@id/img_calendar" | |
app:layout_constraintTop_toTopOf="@id/img_calendar" | |
tools:text="Jan, 2020" /> | |
<androidx.appcompat.widget.AppCompatTextView | |
android:id="@+id/tv_location" | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content" | |
android:layout_marginStart="8dp" | |
android:textAppearance="@style/Text.Medium.14" | |
android:textColor="@color/black" | |
app:layout_constraintBottom_toBottomOf="@id/img_map_pin" | |
app:layout_constraintStart_toEndOf="@id/img_map_pin" | |
app:layout_constraintTop_toTopOf="@id/img_map_pin" | |
tools:text="Dallas, TX" /> | |
<androidx.constraintlayout.widget.Group | |
android:id="@+id/group_main_actions" | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content" | |
app:constraint_referenced_ids=" | |
btn_follow, btn_message, btn_share" /> | |
<androidx.appcompat.widget.AppCompatTextView | |
android:id="@+id/btn_follow" | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content" | |
android:layout_marginStart="@dimen/_16dp" | |
android:layout_marginTop="@dimen/_16dp" | |
android:background="@drawable/flow_menu_profile_follow_btn_bg" | |
android:paddingHorizontal="12dp" | |
android:paddingVertical="4dp" | |
android:textAllCaps="false" | |
android:textStyle="bold" | |
app:layout_constraintStart_toStartOf="parent" | |
app:layout_constraintTop_toBottomOf="@id/img_map_pin" | |
tools:text="@string/flow_menu_profile_follow" | |
tools:textColor="@color/white" /> | |
<ImageButton | |
android:id="@+id/btn_message" | |
android:layout_width="36dp" | |
android:layout_height="0dp" | |
android:layout_marginStart="@dimen/_16dp" | |
android:background="@drawable/flow_menu_profile_message_button_bg" | |
android:contentDescription="@string/flow_menu_profile_content_desc" | |
android:src="@drawable/flow_menu_profile_ic_mail_new" | |
app:layout_constraintBottom_toBottomOf="@id/btn_follow" | |
app:layout_constraintStart_toEndOf="@id/btn_follow" | |
app:layout_constraintTop_toTopOf="@id/btn_follow" /> | |
<ImageButton | |
android:id="@+id/btn_share" | |
android:layout_width="36dp" | |
android:layout_height="0dp" | |
android:layout_marginStart="@dimen/_16dp" | |
android:background="@drawable/flow_menu_profile_message_button_bg" | |
android:contentDescription="@string/flow_menu_profile_content_desc" | |
android:src="@drawable/flow_menu_profile_ic_share_standard" | |
app:layout_constraintBottom_toBottomOf="@id/btn_follow" | |
app:layout_constraintStart_toEndOf="@id/btn_message" | |
app:layout_constraintTop_toTopOf="@id/btn_follow" /> | |
<ImageButton | |
android:id="@+id/btn_donate" | |
android:layout_width="36dp" | |
android:layout_height="0dp" | |
android:layout_marginStart="@dimen/_16dp" | |
android:background="@drawable/flow_menu_profile_message_button_bg" | |
android:contentDescription="@string/flow_menu_profile_content_desc" | |
android:src="@drawable/flow_menu_profile_ic_dollar_sign" | |
android:visibility="gone" | |
app:layout_constraintBottom_toBottomOf="@id/btn_follow" | |
app:layout_constraintStart_toEndOf="@id/btn_share" | |
app:layout_constraintTop_toTopOf="@id/btn_follow" /> | |
<androidx.constraintlayout.widget.ConstraintLayout | |
android:layout_width="match_parent" | |
android:layout_height="wrap_content" | |
app:layout_constraintTop_toBottomOf="@id/btn_follow"> | |
<com.google.android.material.tabs.TabLayout | |
android:id="@+id/tab_layout" | |
android:layout_width="match_parent" | |
android:layout_height="@dimen/_40dp" | |
android:layout_marginTop="@dimen/_16dp" | |
android:background="@color/white" | |
app:layout_constraintTop_toTopOf="parent" | |
app:tabIndicatorAnimationMode="linear" | |
app:tabIndicatorColor="@color/neutral_gray_700" | |
app:tabIndicatorFullWidth="true" | |
app:tabIndicatorHeight="2dp" | |
app:tabMode="fixed" | |
app:tabRippleColor="@null" | |
app:tabSelectedTextColor="@color/black" | |
app:tabTextAppearance="@style/flow_menu_profile_TabLayoutText" | |
app:tabTextColor="@color/black" /> | |
<include | |
android:id="@+id/reels_fragment" | |
layout="@layout/flow_menu_profile_layout_highlights" | |
android:layout_width="match_parent" | |
android:layout_height="wrap_content" | |
app:layout_constraintTop_toBottomOf="@id/tab_layout" /> | |
</androidx.constraintlayout.widget.ConstraintLayout> | |
</androidx.constraintlayout.widget.ConstraintLayout> | |
</com.google.android.material.appbar.CollapsingToolbarLayout> | |
</com.google.android.material.appbar.AppBarLayout> | |
<androidx.appcompat.widget.LinearLayoutCompat | |
android:id="@+id/stats_view_layout" | |
android:layout_width="match_parent" | |
android:layout_height="match_parent" | |
android:orientation="vertical" | |
android:visibility="gone" | |
app:layout_behavior="@string/appbar_scrolling_view_behavior"> | |
<include | |
android:id="@+id/stats_view" | |
layout="@layout/flow_menu_profile_fragment_stats" | |
android:layout_width="match_parent" | |
android:layout_height="wrap_content" /> | |
</androidx.appcompat.widget.LinearLayoutCompat> | |
<androidx.appcompat.widget.LinearLayoutCompat | |
android:id="@+id/content" | |
android:layout_width="match_parent" | |
android:layout_height="match_parent" | |
android:orientation="vertical" | |
app:layout_behavior="@string/appbar_scrolling_view_behavior"> | |
<View | |
android:id="@+id/divider" | |
android:layout_width="match_parent" | |
android:layout_height="1dp" | |
android:background="@color/neutral_gray_50" /> | |
<com.google.android.material.tabs.TabLayout | |
android:id="@+id/reels_tab_layout" | |
android:layout_width="match_parent" | |
android:layout_height="50dp" | |
android:background="@color/white" | |
app:tabIconTint="@color/flow_menu_profile_tab_state_color" | |
app:tabIndicatorAnimationMode="linear" | |
app:tabIndicatorColor="@color/primary_blue_700" | |
app:tabIndicatorFullWidth="true" | |
app:tabIndicatorHeight="2dp" | |
app:tabMode="fixed" /> | |
<androidx.viewpager2.widget.ViewPager2 | |
android:id="@+id/viewpager" | |
android:layout_width="match_parent" | |
android:layout_height="0dp" | |
android:layout_weight="1" | |
android:orientation="horizontal" | |
android:overScrollMode="never" /> | |
</androidx.appcompat.widget.LinearLayoutCompat> | |
</androidx.coordinatorlayout.widget.CoordinatorLayout> | |
</androidx.appcompat.widget.LinearLayoutCompat> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment