2017-01-28 14:33:43 +11:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
2017-05-05 02:07:59 +10:00
|
|
|
<android.support.design.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
2017-01-28 14:33:43 +11:00
|
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
2017-08-05 19:34:50 +10:00
|
|
|
xmlns:tools="http://schemas.android.com/tools"
|
2018-06-18 21:26:18 +10:00
|
|
|
android:id="@+id/accountCoordinatorLayout"
|
2017-01-28 14:33:43 +11:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
2018-06-18 21:26:18 +10:00
|
|
|
android:fillViewport="true">
|
2017-01-28 14:33:43 +11:00
|
|
|
|
|
|
|
<android.support.design.widget.AppBarLayout
|
2018-06-18 21:26:18 +10:00
|
|
|
android:id="@+id/accountAppBarLayout"
|
2017-01-28 14:33:43 +11:00
|
|
|
android:layout_width="match_parent"
|
2018-09-17 03:46:06 +10:00
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:elevation="@dimen/actionbar_elevation">
|
2017-01-28 14:33:43 +11:00
|
|
|
|
|
|
|
<android.support.design.widget.CollapsingToolbarLayout
|
2018-06-18 21:26:18 +10:00
|
|
|
android:id="@+id/collapsingToolbar"
|
2017-01-28 14:33:43 +11:00
|
|
|
android:layout_width="match_parent"
|
2018-06-18 21:26:18 +10:00
|
|
|
android:layout_height="wrap_content"
|
2017-05-05 02:07:59 +10:00
|
|
|
app:contentScrim="?attr/toolbar_background_color"
|
|
|
|
app:layout_scrollFlags="scroll|exitUntilCollapsed"
|
2018-06-18 21:26:18 +10:00
|
|
|
app:statusBarScrim="?android:attr/colorBackground"
|
2017-01-28 14:33:43 +11:00
|
|
|
app:titleEnabled="false">
|
|
|
|
|
2018-06-18 21:26:18 +10:00
|
|
|
<ImageView
|
|
|
|
android:id="@+id/accountHeaderImageView"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="180dp"
|
|
|
|
android:layout_alignTop="@+id/account_header_info"
|
|
|
|
android:background="?attr/account_header_background_color"
|
|
|
|
android:scaleType="centerCrop"
|
|
|
|
app:layout_collapseMode="parallax"
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
|
|
tools:background="#000" />
|
|
|
|
|
|
|
|
<android.support.constraint.ConstraintLayout
|
|
|
|
android:id="@+id/accountHeaderInfoContainer"
|
2017-01-28 14:33:43 +11:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
2018-06-18 21:26:18 +10:00
|
|
|
android:layout_marginTop="180dp"
|
|
|
|
android:paddingEnd="16dp"
|
|
|
|
android:paddingStart="16dp">
|
|
|
|
|
|
|
|
<Button
|
|
|
|
android:id="@+id/accountFollowButton"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginTop="6dp"
|
|
|
|
android:textColor="@android:color/white"
|
|
|
|
android:textSize="?attr/status_text_medium"
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
|
|
tools:text="Follow" />
|
|
|
|
|
|
|
|
<android.support.text.emoji.widget.EmojiTextView
|
|
|
|
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 " />
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/accountUsernameTextView"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_gravity="center_horizontal"
|
|
|
|
android:ellipsize="end"
|
|
|
|
android:maxLines="1"
|
|
|
|
android:textColor="?android:textColorSecondary"
|
|
|
|
android:textSize="?attr/status_text_medium"
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
app:layout_constraintTop_toBottomOf="@id/accountDisplayNameTextView"
|
|
|
|
tools:text="\@Tusky" />
|
2017-01-28 14:33:43 +11:00
|
|
|
|
2017-03-07 06:48:31 +11:00
|
|
|
<ImageView
|
2018-06-18 21:26:18 +10:00
|
|
|
android:id="@+id/accountLockedImageView"
|
|
|
|
android:layout_width="16sp"
|
|
|
|
android:layout_height="16sp"
|
|
|
|
android:layout_marginStart="4dp"
|
|
|
|
android:contentDescription="@string/description_account_locked"
|
|
|
|
android:tint="?android:textColorSecondary"
|
|
|
|
android:visibility="gone"
|
|
|
|
app:layout_constraintBottom_toBottomOf="@+id/accountUsernameTextView"
|
|
|
|
app:layout_constraintStart_toEndOf="@+id/accountUsernameTextView"
|
|
|
|
app:layout_constraintTop_toTopOf="@+id/accountUsernameTextView"
|
|
|
|
app:srcCompat="@drawable/reblog_private_light"
|
|
|
|
tools:visibility="visible" />
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/accountFollowsYouTextView"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
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" />
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/accountBadgeTextView"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
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" />
|
|
|
|
|
|
|
|
<android.support.constraint.Barrier
|
|
|
|
android:id="@+id/labelBarrier"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
app:barrierDirection="bottom"
|
|
|
|
app:constraint_referenced_ids="accountFollowsYouTextView,accountBadgeTextView" />
|
|
|
|
|
|
|
|
<android.support.text.emoji.widget.EmojiTextView
|
|
|
|
android:id="@+id/accountNoteTextView"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_below="@id/labelBarrier"
|
|
|
|
android:lineSpacingMultiplier="1.1"
|
|
|
|
android:paddingTop="10dp"
|
|
|
|
android:textColor="?android:textColorTertiary"
|
|
|
|
android:textSize="?attr/status_text_medium"
|
|
|
|
app:layout_constraintTop_toBottomOf="@id/labelBarrier"
|
|
|
|
tools:text="This is a test description. Descriptions can be quite looooong." />
|
|
|
|
|
|
|
|
<android.support.v7.widget.RecyclerView
|
|
|
|
android:id="@+id/accountFieldList"
|
2017-01-28 14:33:43 +11:00
|
|
|
android:layout_width="match_parent"
|
2018-06-18 21:26:18 +10:00
|
|
|
android:layout_height="wrap_content"
|
|
|
|
app:layout_constraintTop_toBottomOf="@id/accountNoteTextView"
|
|
|
|
tools:itemCount="2"
|
|
|
|
tools:listitem="@layout/item_account_field" />
|
|
|
|
|
|
|
|
<ViewStub
|
|
|
|
android:id="@+id/accountMovedView"
|
2017-01-28 14:33:43 +11:00
|
|
|
android:layout_width="match_parent"
|
2017-05-05 02:07:59 +10:00
|
|
|
android:layout_height="wrap_content"
|
2018-06-18 21:26:18 +10:00
|
|
|
android:inflatedId="@+id/accountMovedView"
|
|
|
|
android:layout="@layout/view_account_moved"
|
|
|
|
app:layout_constraintTop_toBottomOf="@id/accountFieldList" />
|
|
|
|
|
|
|
|
<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_toStartOf="@id/accountFollowing"
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
app:layout_constraintTop_toBottomOf="@id/accountMovedView">
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/accountFollowersTextView"
|
2017-08-05 19:34:50 +10:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
2018-06-18 21:26:18 +10:00
|
|
|
android:layout_marginTop="8dp"
|
|
|
|
android:background="@android:color/transparent"
|
|
|
|
android:fontFamily="sans-serif-medium"
|
|
|
|
android:textColor="@color/account_tab_font_color"
|
2018-02-03 23:34:40 +11:00
|
|
|
android:textSize="?attr/status_text_medium"
|
2018-06-18 21:26:18 +10:00
|
|
|
tools:text="1234" />
|
2017-08-05 19:34:50 +10:00
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
2018-06-18 21:26:18 +10:00
|
|
|
android:paddingBottom="6dp"
|
|
|
|
android:text="@string/title_followers"
|
|
|
|
android:textColor="@color/account_tab_font_color"
|
|
|
|
android:textSize="?attr/status_text_medium" />
|
|
|
|
</LinearLayout>
|
2017-08-05 19:34:50 +10:00
|
|
|
|
2018-06-18 21:26:18 +10:00
|
|
|
<LinearLayout
|
|
|
|
android:id="@+id/accountFollowing"
|
|
|
|
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/accountStatuses"
|
|
|
|
app:layout_constraintStart_toEndOf="@id/accountFollowers"
|
|
|
|
app:layout_constraintTop_toBottomOf="@id/accountMovedView">
|
2017-08-05 19:34:50 +10:00
|
|
|
|
|
|
|
<TextView
|
2018-06-18 21:26:18 +10:00
|
|
|
android:id="@+id/accountFollowingTextView"
|
2017-08-05 19:34:50 +10:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
2018-06-18 21:26:18 +10:00
|
|
|
android:layout_marginTop="8dp"
|
|
|
|
android:fontFamily="sans-serif-medium"
|
|
|
|
android:textColor="@color/account_tab_font_color"
|
2017-12-10 07:34:04 +11:00
|
|
|
android:textSize="?attr/status_text_medium"
|
2018-06-18 21:26:18 +10:00
|
|
|
tools:text="500" />
|
2017-03-07 18:28:12 +11:00
|
|
|
|
2017-11-06 08:32:36 +11:00
|
|
|
<TextView
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
2018-06-18 21:26:18 +10:00
|
|
|
android:paddingBottom="6dp"
|
|
|
|
android:text="@string/title_follows"
|
2017-12-01 06:12:09 +11:00
|
|
|
android:textColor="@color/account_tab_font_color"
|
2018-06-18 21:26:18 +10:00
|
|
|
android:textSize="?attr/status_text_medium" />
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
<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_toEndOf="parent"
|
|
|
|
app:layout_constraintStart_toEndOf="@id/accountFollowing"
|
|
|
|
app:layout_constraintTop_toBottomOf="@id/accountMovedView">
|
2017-11-06 08:32:36 +11:00
|
|
|
|
|
|
|
<TextView
|
2018-06-18 21:26:18 +10:00
|
|
|
android:id="@+id/accountStatusesTextView"
|
2017-11-06 08:32:36 +11:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
2018-06-18 21:26:18 +10:00
|
|
|
android:layout_marginTop="8dp"
|
|
|
|
android:fontFamily="sans-serif-medium"
|
2017-12-01 06:12:09 +11:00
|
|
|
android:textColor="@color/account_tab_font_color"
|
2017-12-10 07:34:04 +11:00
|
|
|
android:textSize="?attr/status_text_medium"
|
2018-06-18 21:26:18 +10:00
|
|
|
tools:text="3000" />
|
2017-11-06 08:32:36 +11:00
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
2018-06-18 21:26:18 +10:00
|
|
|
android:paddingBottom="6dp"
|
|
|
|
android:text="@string/title_statuses"
|
2017-12-01 06:12:09 +11:00
|
|
|
android:textColor="@color/account_tab_font_color"
|
2018-06-18 21:26:18 +10:00
|
|
|
android:textSize="?attr/status_text_medium" />
|
|
|
|
</LinearLayout>
|
|
|
|
</android.support.constraint.ConstraintLayout>
|
2017-01-28 14:33:43 +11:00
|
|
|
|
2018-06-18 21:26:18 +10:00
|
|
|
<!-- top margin equal to statusbar size will be set programmatically -->
|
2017-01-28 14:33:43 +11:00
|
|
|
<android.support.v7.widget.Toolbar
|
2018-06-18 21:26:18 +10:00
|
|
|
android:id="@+id/accountToolbar"
|
2017-01-28 14:33:43 +11:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="?attr/actionBarSize"
|
2017-05-05 02:07:59 +10:00
|
|
|
android:layout_gravity="top"
|
|
|
|
android:background="@android:color/transparent"
|
2017-03-07 18:28:12 +11:00
|
|
|
app:layout_collapseMode="pin"
|
2018-06-18 21:26:18 +10:00
|
|
|
app:layout_scrollFlags="scroll|enterAlways"
|
2018-05-11 04:13:25 +10:00
|
|
|
app:popupTheme="?attr/toolbar_popup_theme" />
|
2017-01-28 14:33:43 +11:00
|
|
|
</android.support.design.widget.CollapsingToolbarLayout>
|
|
|
|
|
|
|
|
<android.support.design.widget.TabLayout
|
2018-06-18 21:26:18 +10:00
|
|
|
android:id="@+id/accountTabLayout"
|
|
|
|
style="@style/TuskyTabAppearance"
|
2017-01-28 14:33:43 +11:00
|
|
|
android:layout_width="match_parent"
|
2017-05-05 02:07:59 +10:00
|
|
|
android:layout_height="wrap_content"
|
2018-06-18 21:26:18 +10:00
|
|
|
android:layout_gravity="center_horizontal"
|
2017-11-06 08:32:36 +11:00
|
|
|
android:background="?android:colorBackground"
|
2017-12-01 06:12:09 +11:00
|
|
|
app:tabGravity="fill"
|
2017-12-10 07:34:04 +11:00
|
|
|
app:tabIndicatorHeight="3dp"
|
2018-07-13 06:21:51 +10:00
|
|
|
app:tabMaxWidth="0dp"
|
2017-12-10 07:34:04 +11:00
|
|
|
app:tabSelectedTextColor="?attr/colorAccent"
|
2018-06-18 21:26:18 +10:00
|
|
|
app:tabTextAppearance="@style/TuskyTabAppearance" />
|
2017-01-28 14:33:43 +11:00
|
|
|
|
2018-06-18 21:26:18 +10:00
|
|
|
</android.support.design.widget.AppBarLayout>
|
2017-01-28 14:33:43 +11:00
|
|
|
|
2018-06-18 21:26:18 +10:00
|
|
|
<android.support.v4.view.ViewPager
|
|
|
|
android:id="@+id/accountFragmentViewPager"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
app:layout_behavior="@string/appbar_scrolling_view_behavior" />
|
2017-01-28 14:33:43 +11:00
|
|
|
|
2017-03-07 06:48:31 +11:00
|
|
|
<android.support.design.widget.FloatingActionButton
|
2018-06-18 21:26:18 +10:00
|
|
|
android:id="@+id/accountFloatingActionButton"
|
2017-03-07 06:48:31 +11:00
|
|
|
android:layout_width="wrap_content"
|
2017-05-05 02:07:59 +10:00
|
|
|
android:layout_height="wrap_content"
|
2017-03-07 06:48:31 +11:00
|
|
|
android:layout_gravity="bottom|end"
|
|
|
|
android:layout_margin="16dp"
|
2017-08-04 18:53:38 +10:00
|
|
|
android:contentDescription="@string/action_mention"
|
|
|
|
app:srcCompat="@drawable/ic_create_24dp" />
|
2017-03-07 06:48:31 +11:00
|
|
|
|
2018-06-18 21:26:18 +10:00
|
|
|
<include layout="@layout/item_status_bottom_sheet" />
|
|
|
|
|
2018-07-30 23:36:22 +10:00
|
|
|
<com.keylesspalace.tusky.view.RoundedImageView
|
2018-06-18 21:26:18 +10: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:background="@drawable/avatar_background"
|
|
|
|
android:padding="3dp"
|
|
|
|
app:layout_anchor="@+id/accountHeaderInfoContainer"
|
|
|
|
app:layout_anchorGravity="top"
|
|
|
|
app:layout_scrollFlags="scroll"
|
|
|
|
app:srcCompat="@drawable/avatar_default" />
|
2017-04-09 18:13:18 +10:00
|
|
|
</android.support.design.widget.CoordinatorLayout>
|