2017-01-28 04:33:43 +01:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
2019-05-15 12:43:16 +02:00
|
|
|
<androidx.swiperefreshlayout.widget.SwipeRefreshLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
2017-01-28 04:33:43 +01:00
|
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
2017-08-05 11:34:50 +02:00
|
|
|
xmlns:tools="http://schemas.android.com/tools"
|
2019-05-15 12:43:16 +02:00
|
|
|
android:id="@+id/swipeToRefreshLayout"
|
2017-01-28 04:33:43 +01:00
|
|
|
android:layout_width="match_parent"
|
2019-05-15 12:43:16 +02:00
|
|
|
android:layout_height="match_parent">
|
2017-01-28 04:33:43 +01:00
|
|
|
|
2019-05-15 12:43:16 +02:00
|
|
|
<androidx.coordinatorlayout.widget.CoordinatorLayout
|
|
|
|
android:id="@+id/accountCoordinatorLayout"
|
2017-01-28 04:33:43 +01:00
|
|
|
android:layout_width="match_parent"
|
2019-05-15 12:43:16 +02:00
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:fillViewport="true"
|
|
|
|
android:textDirection="anyRtl">
|
2017-01-28 04:33:43 +01:00
|
|
|
|
2019-05-15 12:43:16 +02:00
|
|
|
<com.google.android.material.appbar.AppBarLayout
|
|
|
|
android:id="@+id/accountAppBarLayout"
|
2017-01-28 04:33:43 +01:00
|
|
|
android:layout_width="match_parent"
|
2018-06-18 13:26:18 +02:00
|
|
|
android:layout_height="wrap_content"
|
2019-05-15 12:43:16 +02:00
|
|
|
android:elevation="@dimen/actionbar_elevation">
|
2017-01-28 04:33:43 +01:00
|
|
|
|
2019-05-15 12:43:16 +02:00
|
|
|
<com.google.android.material.appbar.CollapsingToolbarLayout
|
|
|
|
android:id="@+id/collapsingToolbar"
|
2017-01-28 04:33:43 +01:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
2019-10-12 20:00:29 +02:00
|
|
|
app:contentScrim="?attr/colorSurface"
|
2019-05-15 12:43:16 +02:00
|
|
|
app:layout_scrollFlags="scroll|exitUntilCollapsed"
|
2019-10-12 20:00:29 +02:00
|
|
|
app:statusBarScrim="?attr/colorSurface"
|
2019-05-15 12:43:16 +02:00
|
|
|
app:titleEnabled="false">
|
2018-06-18 13:26:18 +02:00
|
|
|
|
2019-05-15 12:43:16 +02:00
|
|
|
<ImageView
|
|
|
|
android:id="@+id/accountHeaderImageView"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="180dp"
|
|
|
|
android:layout_alignTop="@+id/account_header_info"
|
2020-01-30 21:37:28 +01:00
|
|
|
android:background="?attr/colorPrimaryDark"
|
2019-05-15 12:43:16 +02:00
|
|
|
android:scaleType="centerCrop"
|
|
|
|
app:layout_collapseMode="parallax"
|
2018-06-18 13:26:18 +02:00
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
app:layout_constraintTop_toTopOf="parent"
|
2019-05-15 12:43:16 +02:00
|
|
|
tools:background="#000" />
|
2017-01-28 04:33:43 +01:00
|
|
|
|
2019-05-15 12:43:16 +02:00
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
|
|
|
android:id="@+id/accountHeaderInfoContainer"
|
|
|
|
android:layout_width="match_parent"
|
2018-06-18 13:26:18 +02:00
|
|
|
android:layout_height="wrap_content"
|
2019-05-15 12:43:16 +02:00
|
|
|
android:layout_marginTop="180dp"
|
|
|
|
android:paddingStart="16dp"
|
|
|
|
android:paddingEnd="16dp">
|
2018-06-18 13:26:18 +02:00
|
|
|
|
2019-05-15 12:43:16 +02:00
|
|
|
<androidx.constraintlayout.widget.Guideline
|
|
|
|
android:id="@+id/guideAvatar"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:orientation="vertical"
|
|
|
|
app:layout_constraintGuide_begin="@dimen/account_activity_avatar_size" />
|
2018-06-18 13:26:18 +02:00
|
|
|
|
2019-05-15 12:43:16 +02:00
|
|
|
<Button
|
|
|
|
android:id="@+id/accountFollowButton"
|
|
|
|
style="@style/TuskyButton"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginTop="6dp"
|
|
|
|
android:ellipsize="end"
|
|
|
|
android:maxLines="1"
|
|
|
|
android:textSize="?attr/status_text_medium"
|
|
|
|
app:layout_constrainedWidth="true"
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
app:layout_constraintHorizontal_bias="1"
|
|
|
|
app:layout_constraintHorizontal_chainStyle="packed"
|
|
|
|
app:layout_constraintStart_toEndOf="@id/accountMuteButton"
|
|
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
|
|
tools:text="Follow Requested" />
|
2021-03-07 19:05:51 +01:00
|
|
|
|
2020-12-23 12:52:39 +01:00
|
|
|
<com.google.android.material.button.MaterialButton
|
|
|
|
android:id="@+id/accountSubscribeButton"
|
|
|
|
style="@style/TuskyButton.Outlined"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="0dp"
|
|
|
|
android:layout_marginStart="16dp"
|
|
|
|
android:layout_marginEnd="6dp"
|
|
|
|
android:minWidth="0dp"
|
|
|
|
android:paddingStart="8dp"
|
|
|
|
android:paddingEnd="4dp"
|
|
|
|
android:scaleType="centerInside"
|
|
|
|
app:icon="@drawable/ic_notifications_24dp"
|
|
|
|
app:layout_constrainedHeight="true"
|
|
|
|
app:layout_constraintBottom_toBottomOf="@+id/accountFollowButton"
|
|
|
|
app:layout_constraintEnd_toStartOf="@id/accountFollowButton"
|
|
|
|
app:layout_constraintHorizontal_bias="1"
|
|
|
|
app:layout_constraintHorizontal_chainStyle="packed"
|
|
|
|
app:layout_constraintStart_toStartOf="@id/accountMuteButton"
|
|
|
|
app:layout_constraintTop_toTopOf="@+id/accountFollowButton" />
|
2018-06-18 13:26:18 +02:00
|
|
|
|
2019-05-15 12:43:16 +02:00
|
|
|
<com.google.android.material.button.MaterialButton
|
|
|
|
android:id="@+id/accountMuteButton"
|
|
|
|
style="@style/TuskyButton.Outlined"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="0dp"
|
|
|
|
android:layout_marginStart="16dp"
|
|
|
|
android:layout_marginEnd="6dp"
|
|
|
|
android:minWidth="0dp"
|
|
|
|
android:paddingStart="8dp"
|
|
|
|
android:paddingEnd="8dp"
|
|
|
|
android:scaleType="centerInside"
|
|
|
|
app:icon="@drawable/ic_unmute_24dp"
|
|
|
|
app:layout_constrainedHeight="true"
|
|
|
|
app:layout_constraintBottom_toBottomOf="@+id/accountFollowButton"
|
2020-12-23 12:52:39 +01:00
|
|
|
app:layout_constraintEnd_toStartOf="@id/accountSubscribeButton"
|
2019-05-15 12:43:16 +02:00
|
|
|
app:layout_constraintHorizontal_bias="1"
|
|
|
|
app:layout_constraintHorizontal_chainStyle="packed"
|
|
|
|
app:layout_constraintStart_toStartOf="@id/guideAvatar"
|
|
|
|
app:layout_constraintTop_toTopOf="@+id/accountFollowButton" />
|
2018-06-18 13:26:18 +02:00
|
|
|
|
2022-04-26 18:50:58 +02:00
|
|
|
<TextView
|
2019-05-15 12:43:16 +02:00
|
|
|
android:id="@+id/accountDisplayNameTextView"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginTop="62dp"
|
|
|
|
android:ellipsize="end"
|
|
|
|
android:maxLines="1"
|
|
|
|
android:textColor="?android:textColorPrimary"
|
|
|
|
android:textSize="?attr/status_text_large"
|
|
|
|
android:textStyle="normal|bold"
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
|
|
tools:text="Tusky Mastodon Client " />
|
2018-06-18 13:26:18 +02:00
|
|
|
|
|
|
|
<TextView
|
2019-05-15 12:43:16 +02:00
|
|
|
android:id="@+id/accountUsernameTextView"
|
2017-08-05 11:34:50 +02:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
2019-05-15 12:43:16 +02:00
|
|
|
android:layout_gravity="center_horizontal"
|
|
|
|
android:ellipsize="end"
|
|
|
|
android:maxLines="1"
|
|
|
|
android:textColor="?android:textColorSecondary"
|
2018-02-03 13:34:40 +01:00
|
|
|
android:textSize="?attr/status_text_medium"
|
2019-05-15 12:43:16 +02:00
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
app:layout_constraintTop_toBottomOf="@id/accountDisplayNameTextView"
|
|
|
|
tools:text="\@Tusky" />
|
|
|
|
|
|
|
|
<ImageView
|
|
|
|
android:id="@+id/accountLockedImageView"
|
|
|
|
android:layout_width="16sp"
|
|
|
|
android:layout_height="16sp"
|
|
|
|
android:layout_marginStart="4dp"
|
|
|
|
android:contentDescription="@string/description_account_locked"
|
|
|
|
android:visibility="gone"
|
|
|
|
app:layout_constraintBottom_toBottomOf="@+id/accountUsernameTextView"
|
|
|
|
app:layout_constraintStart_toEndOf="@+id/accountUsernameTextView"
|
|
|
|
app:layout_constraintTop_toTopOf="@+id/accountUsernameTextView"
|
2020-01-30 21:37:28 +01:00
|
|
|
app:srcCompat="@drawable/ic_reblog_private_24dp"
|
2020-06-04 20:16:48 +02:00
|
|
|
app:tint="?android:textColorSecondary"
|
2019-05-15 12:43:16 +02:00
|
|
|
tools:visibility="visible" />
|
2017-08-05 11:34:50 +02:00
|
|
|
|
|
|
|
<TextView
|
2019-05-15 12:43:16 +02:00
|
|
|
android:id="@+id/accountFollowsYouTextView"
|
2017-08-05 11:34:50 +02:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
2019-05-15 12:43:16 +02:00
|
|
|
android:layout_marginTop="6dp"
|
|
|
|
android:background="@drawable/profile_badge_background"
|
|
|
|
android:text="@string/follows_you"
|
|
|
|
android:textSize="?attr/status_text_small"
|
|
|
|
android:visibility="gone"
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
app:layout_constraintTop_toBottomOf="@id/accountUsernameTextView"
|
|
|
|
tools:visibility="visible" />
|
2017-08-05 11:34:50 +02:00
|
|
|
|
|
|
|
<TextView
|
2019-05-15 12:43:16 +02:00
|
|
|
android:id="@+id/accountBadgeTextView"
|
2017-08-05 11:34:50 +02:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
2019-05-15 12:43:16 +02:00
|
|
|
android:layout_marginStart="8dp"
|
|
|
|
android:layout_marginTop="6dp"
|
|
|
|
android:background="@drawable/profile_badge_background"
|
|
|
|
android:text="@string/profile_badge_bot_text"
|
|
|
|
android:textSize="?attr/status_text_small"
|
|
|
|
android:visibility="gone"
|
|
|
|
app:layout_constraintStart_toEndOf="@id/accountFollowsYouTextView"
|
|
|
|
app:layout_constraintTop_toBottomOf="@id/accountUsernameTextView"
|
|
|
|
app:layout_goneMarginStart="0dp"
|
|
|
|
tools:visibility="visible" />
|
2017-03-07 08:28:12 +01:00
|
|
|
|
2019-05-15 12:43:16 +02:00
|
|
|
<androidx.constraintlayout.widget.Barrier
|
|
|
|
android:id="@+id/labelBarrier"
|
2017-11-05 22:32:36 +01:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
2019-05-15 12:43:16 +02:00
|
|
|
app:barrierDirection="bottom"
|
|
|
|
app:constraint_referenced_ids="accountFollowsYouTextView,accountBadgeTextView" />
|
2017-11-05 22:32:36 +01:00
|
|
|
|
2020-11-17 20:10:54 +01:00
|
|
|
<com.google.android.material.textfield.TextInputLayout
|
|
|
|
android:id="@+id/accountNoteTextInputLayout"
|
|
|
|
style="@style/Widget.MaterialComponents.TextInputLayout.FilledBox.Dense"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginTop="16dp"
|
|
|
|
android:visibility="gone"
|
|
|
|
app:layout_constraintTop_toBottomOf="@id/labelBarrier"
|
|
|
|
tools:visibility="visible">
|
|
|
|
|
|
|
|
<com.google.android.material.textfield.TextInputEditText
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:hint="@string/account_note_hint" />
|
|
|
|
|
|
|
|
</com.google.android.material.textfield.TextInputLayout>
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/saveNoteInfo"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:text="@string/account_note_saved"
|
|
|
|
android:textColor="@color/tusky_blue"
|
|
|
|
android:visibility="gone"
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
app:layout_constraintTop_toBottomOf="@id/accountNoteTextInputLayout" />
|
|
|
|
|
2022-04-26 18:50:58 +02:00
|
|
|
<TextView
|
2019-05-15 12:43:16 +02:00
|
|
|
android:id="@+id/accountNoteTextView"
|
2017-11-05 22:32:36 +01:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
2019-10-22 21:18:20 +02:00
|
|
|
android:hyphenationFrequency="full"
|
2019-05-15 12:43:16 +02:00
|
|
|
android:lineSpacingMultiplier="1.1"
|
2020-11-17 20:10:54 +01:00
|
|
|
android:paddingTop="2dp"
|
2019-05-15 12:43:16 +02:00
|
|
|
android:textColor="?android:textColorTertiary"
|
2017-12-09 21:34:04 +01:00
|
|
|
android:textSize="?attr/status_text_medium"
|
2020-11-17 20:10:54 +01:00
|
|
|
app:layout_constraintTop_toBottomOf="@id/saveNoteInfo"
|
2019-05-15 12:43:16 +02:00
|
|
|
tools:text="This is a test description. Descriptions can be quite looooong." />
|
|
|
|
|
|
|
|
<androidx.recyclerview.widget.RecyclerView
|
|
|
|
android:id="@+id/accountFieldList"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
app:layout_constraintTop_toBottomOf="@id/accountNoteTextView"
|
|
|
|
tools:itemCount="2"
|
|
|
|
tools:listitem="@layout/item_account_field" />
|
2017-11-05 22:32:36 +01:00
|
|
|
|
2022-05-17 19:49:42 +02:00
|
|
|
<TextView
|
|
|
|
android:id="@+id/accountDateJoined"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginTop="8dp"
|
|
|
|
android:layout_marginBottom="8dp"
|
|
|
|
tools:text="April, 1971"
|
|
|
|
android:textColor="@color/textColorSecondary"
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
app:layout_constraintTop_toBottomOf="@id/accountFieldList"
|
|
|
|
app:layout_constraintBottom_toTopOf="@id/accountRemoveView"/>
|
|
|
|
|
2017-11-05 22:32:36 +01:00
|
|
|
<TextView
|
2019-05-15 12:43:16 +02:00
|
|
|
android:id="@+id/accountRemoveView"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginTop="8dp"
|
|
|
|
android:layout_marginBottom="8dp"
|
2019-10-22 21:18:20 +02:00
|
|
|
android:hyphenationFrequency="full"
|
2019-05-15 12:43:16 +02:00
|
|
|
android:lineSpacingMultiplier="1.1"
|
|
|
|
android:text="@string/label_remote_account"
|
|
|
|
android:visibility="gone"
|
2022-05-17 19:49:42 +02:00
|
|
|
app:layout_constraintTop_toBottomOf="@id/accountDateJoined"
|
2019-05-15 12:43:16 +02:00
|
|
|
tools:visibility="visible" />
|
|
|
|
|
2022-04-19 11:10:23 +02:00
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
2019-05-15 12:43:16 +02:00
|
|
|
android:id="@+id/accountMovedView"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
2021-03-07 19:05:51 +01:00
|
|
|
android:visibility="gone"
|
2022-04-19 11:10:23 +02:00
|
|
|
android:layout_marginTop="4dp"
|
2021-03-07 19:05:51 +01:00
|
|
|
app:layout_constraintTop_toBottomOf="@id/accountRemoveView"
|
2022-04-19 11:10:23 +02:00
|
|
|
tools:visibility="visible">
|
2021-03-07 19:05:51 +01:00
|
|
|
|
2022-04-26 18:50:58 +02:00
|
|
|
<TextView
|
2022-04-19 11:10:23 +02:00
|
|
|
android:id="@+id/accountMovedText"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginTop="8dp"
|
|
|
|
android:drawablePadding="6dp"
|
|
|
|
android:drawableStart="@drawable/ic_briefcase"
|
|
|
|
android:textSize="?attr/status_text_medium"
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
|
|
tools:text="Account has moved" />
|
|
|
|
|
|
|
|
<ImageView
|
|
|
|
android:importantForAccessibility="no"
|
|
|
|
android:id="@+id/accountMovedAvatar"
|
|
|
|
android:layout_width="48dp"
|
|
|
|
android:layout_height="48dp"
|
|
|
|
android:layout_centerVertical="true"
|
|
|
|
android:layout_marginTop="8dp"
|
|
|
|
android:layout_marginBottom="8dp"
|
|
|
|
android:layout_marginEnd="24dp"
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
|
|
app:layout_constraintTop_toBottomOf="@id/accountMovedText"
|
|
|
|
tools:src="@drawable/avatar_default" />
|
|
|
|
|
2022-04-26 18:50:58 +02:00
|
|
|
<TextView
|
2022-04-19 11:10:23 +02:00
|
|
|
android:id="@+id/accountMovedDisplayName"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginStart="16dp"
|
|
|
|
android:ellipsize="end"
|
|
|
|
android:maxLines="1"
|
|
|
|
android:textColor="?android:textColorPrimary"
|
|
|
|
android:textSize="?attr/status_text_large"
|
|
|
|
android:textStyle="normal|bold"
|
|
|
|
app:layout_constraintBottom_toTopOf="@id/accountMovedUsername"
|
|
|
|
app:layout_constraintStart_toEndOf="@id/accountMovedAvatar"
|
|
|
|
app:layout_constraintTop_toTopOf="@id/accountMovedAvatar"
|
|
|
|
tools:text="Display name" />
|
2021-03-07 19:05:51 +01:00
|
|
|
|
2022-04-19 11:10:23 +02:00
|
|
|
<TextView
|
|
|
|
android:id="@+id/accountMovedUsername"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginStart="16dp"
|
|
|
|
android:ellipsize="end"
|
|
|
|
android:maxLines="1"
|
|
|
|
android:textColor="?android:textColorSecondary"
|
|
|
|
android:textSize="?attr/status_text_medium"
|
|
|
|
app:layout_constraintBottom_toBottomOf="@id/accountMovedAvatar"
|
|
|
|
app:layout_constraintStart_toEndOf="@id/accountMovedAvatar"
|
|
|
|
app:layout_constraintTop_toBottomOf="@id/accountMovedDisplayName"
|
|
|
|
tools:text="\@username" />
|
2021-03-07 19:05:51 +01:00
|
|
|
|
2022-04-19 11:10:23 +02:00
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
2019-05-15 12:43:16 +02:00
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:id="@+id/accountStatuses"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:background="?attr/selectableItemBackgroundBorderless"
|
|
|
|
android:gravity="center_horizontal"
|
|
|
|
android:orientation="vertical"
|
|
|
|
app:layout_constraintEnd_toStartOf="@id/accountFollowing"
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
2022-04-19 11:10:23 +02:00
|
|
|
app:layout_constraintTop_toBottomOf="@id/accountMovedView">
|
2019-05-15 12:43:16 +02:00
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/accountStatusesTextView"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginTop="8dp"
|
|
|
|
android:fontFamily="sans-serif-medium"
|
|
|
|
android:textColor="@color/account_tab_font_color"
|
|
|
|
android:textSize="?attr/status_text_medium"
|
|
|
|
tools:text="3000" />
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:paddingBottom="6dp"
|
2022-03-27 12:23:25 +02:00
|
|
|
android:text="@string/title_posts"
|
2019-05-15 12:43:16 +02:00
|
|
|
android:textColor="@color/account_tab_font_color"
|
|
|
|
android:textSize="?attr/status_text_medium" />
|
2020-11-17 20:10:54 +01:00
|
|
|
|
2019-05-15 12:43:16 +02:00
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:id="@+id/accountFollowing"
|
2017-11-05 22:32:36 +01:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
2019-05-15 12:43:16 +02:00
|
|
|
android:background="?attr/selectableItemBackgroundBorderless"
|
|
|
|
android:gravity="center_horizontal"
|
|
|
|
android:orientation="vertical"
|
|
|
|
app:layout_constraintEnd_toStartOf="@id/accountFollowers"
|
|
|
|
app:layout_constraintStart_toEndOf="@id/accountStatuses"
|
2022-04-19 11:10:23 +02:00
|
|
|
app:layout_constraintTop_toBottomOf="@id/accountMovedView">
|
2019-05-15 12:43:16 +02:00
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/accountFollowingTextView"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginTop="8dp"
|
|
|
|
android:fontFamily="sans-serif-medium"
|
|
|
|
android:textColor="@color/account_tab_font_color"
|
|
|
|
android:textSize="?attr/status_text_medium"
|
|
|
|
tools:text="500" />
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:paddingBottom="6dp"
|
|
|
|
android:text="@string/title_follows"
|
|
|
|
android:textColor="@color/account_tab_font_color"
|
|
|
|
android:textSize="?attr/status_text_medium" />
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:id="@+id/accountFollowers"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:background="?attr/selectableItemBackgroundBorderless"
|
|
|
|
android:gravity="center_horizontal"
|
|
|
|
android:orientation="vertical"
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
app:layout_constraintStart_toEndOf="@id/accountFollowing"
|
2022-04-19 11:10:23 +02:00
|
|
|
app:layout_constraintTop_toBottomOf="@id/accountMovedView">
|
2019-05-15 12:43:16 +02:00
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/accountFollowersTextView"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginTop="8dp"
|
|
|
|
android:fontFamily="sans-serif-medium"
|
|
|
|
android:textColor="@color/account_tab_font_color"
|
|
|
|
android:textSize="?attr/status_text_medium"
|
|
|
|
tools:text="1234" />
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:paddingBottom="6dp"
|
|
|
|
android:text="@string/title_followers"
|
|
|
|
android:textColor="@color/account_tab_font_color"
|
|
|
|
android:textSize="?attr/status_text_medium" />
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
|
|
|
|
|
|
<!-- top margin equal to statusbar size will be set programmatically -->
|
|
|
|
<androidx.appcompat.widget.Toolbar
|
|
|
|
android:id="@+id/accountToolbar"
|
|
|
|
android:layout_width="match_parent"
|
2020-05-11 16:44:32 +02:00
|
|
|
android:layout_height="wrap_content"
|
2019-05-15 12:43:16 +02:00
|
|
|
android:layout_gravity="top"
|
|
|
|
android:background="@android:color/transparent"
|
2019-10-12 20:00:29 +02:00
|
|
|
app:contentInsetStartWithNavigation="0dp"
|
2019-10-22 21:18:20 +02:00
|
|
|
app:layout_collapseMode="pin"
|
2019-05-15 12:43:16 +02:00
|
|
|
app:layout_scrollFlags="scroll|enterAlways" />
|
2019-10-12 20:00:29 +02:00
|
|
|
|
2019-05-15 12:43:16 +02:00
|
|
|
</com.google.android.material.appbar.CollapsingToolbarLayout>
|
|
|
|
|
|
|
|
<com.google.android.material.tabs.TabLayout
|
|
|
|
android:id="@+id/accountTabLayout"
|
|
|
|
style="@style/TuskyTabAppearance"
|
2017-01-28 04:33:43 +01:00
|
|
|
android:layout_width="match_parent"
|
2019-05-15 12:43:16 +02:00
|
|
|
android:layout_height="wrap_content"
|
2020-01-30 21:37:28 +01:00
|
|
|
android:background="?attr/colorSurface"
|
2019-05-15 12:43:16 +02:00
|
|
|
app:tabGravity="center"
|
|
|
|
app:tabMode="scrollable"
|
|
|
|
app:tabTextAppearance="@style/TuskyTabAppearance" />
|
|
|
|
|
|
|
|
</com.google.android.material.appbar.AppBarLayout>
|
|
|
|
|
2019-11-06 20:17:53 +01:00
|
|
|
<androidx.viewpager2.widget.ViewPager2
|
2019-05-15 12:43:16 +02:00
|
|
|
android:id="@+id/accountFragmentViewPager"
|
2017-01-28 04:33:43 +01:00
|
|
|
android:layout_width="match_parent"
|
2019-05-15 12:43:16 +02:00
|
|
|
android:layout_height="match_parent"
|
2020-01-30 21:37:28 +01:00
|
|
|
android:background="?android:windowBackground"
|
2019-05-15 12:43:16 +02:00
|
|
|
app:layout_behavior="@string/appbar_scrolling_view_behavior" />
|
|
|
|
|
|
|
|
<com.google.android.material.floatingactionbutton.FloatingActionButton
|
|
|
|
android:id="@+id/accountFloatingActionButton"
|
|
|
|
android:layout_width="wrap_content"
|
2017-05-04 18:07:59 +02:00
|
|
|
android:layout_height="wrap_content"
|
2019-05-15 12:43:16 +02:00
|
|
|
android:layout_gravity="bottom|end"
|
|
|
|
android:layout_margin="16dp"
|
|
|
|
android:contentDescription="@string/action_mention"
|
|
|
|
app:srcCompat="@drawable/ic_create_24dp" />
|
2017-01-28 04:33:43 +01:00
|
|
|
|
2019-05-15 12:43:16 +02:00
|
|
|
<include layout="@layout/item_status_bottom_sheet" />
|
2017-01-28 04:33:43 +01:00
|
|
|
|
2019-05-26 08:46:08 +02:00
|
|
|
<ImageView
|
2019-05-15 12:43:16 +02:00
|
|
|
android:id="@+id/accountAvatarImageView"
|
|
|
|
android:layout_width="@dimen/account_activity_avatar_size"
|
|
|
|
android:layout_height="@dimen/account_activity_avatar_size"
|
|
|
|
android:layout_marginStart="16dp"
|
|
|
|
android:padding="3dp"
|
|
|
|
app:layout_anchor="@+id/accountHeaderInfoContainer"
|
|
|
|
app:layout_anchorGravity="top"
|
|
|
|
app:layout_scrollFlags="scroll"
|
|
|
|
app:srcCompat="@drawable/avatar_default" />
|
2019-10-12 20:00:29 +02:00
|
|
|
|
2019-05-15 12:43:16 +02:00
|
|
|
</androidx.coordinatorlayout.widget.CoordinatorLayout>
|
2019-10-12 20:00:29 +02:00
|
|
|
|
2019-05-26 08:46:08 +02:00
|
|
|
</androidx.swiperefreshlayout.widget.SwipeRefreshLayout>
|