Use same profile item order (toots, following, followers) as Mastodon (#1177)

main
Mélanie Chauvel (ariasuni) 6 years ago committed by Konrad Pozniak
parent f12ad19f96
commit a91dea7c60
  1. 22
      app/src/main/res/layout/activity_account.xml

@ -171,7 +171,7 @@
tools:visibility="visible" /> tools:visibility="visible" />
<LinearLayout <LinearLayout
android:id="@+id/accountFollowers" android:id="@+id/accountStatuses"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:background="?attr/selectableItemBackgroundBorderless" android:background="?attr/selectableItemBackgroundBorderless"
@ -182,21 +182,20 @@
app:layout_constraintTop_toBottomOf="@id/accountRemoveView"> app:layout_constraintTop_toBottomOf="@id/accountRemoveView">
<TextView <TextView
android:id="@+id/accountFollowersTextView" android:id="@+id/accountStatusesTextView"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginTop="8dp" android:layout_marginTop="8dp"
android:background="@android:color/transparent"
android:fontFamily="sans-serif-medium" android:fontFamily="sans-serif-medium"
android:textColor="@color/account_tab_font_color" android:textColor="@color/account_tab_font_color"
android:textSize="?attr/status_text_medium" android:textSize="?attr/status_text_medium"
tools:text="1234" /> tools:text="3000" />
<TextView <TextView
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:paddingBottom="6dp" android:paddingBottom="6dp"
android:text="@string/title_followers" android:text="@string/title_statuses"
android:textColor="@color/account_tab_font_color" android:textColor="@color/account_tab_font_color"
android:textSize="?attr/status_text_medium" /> android:textSize="?attr/status_text_medium" />
</LinearLayout> </LinearLayout>
@ -208,8 +207,8 @@
android:background="?attr/selectableItemBackgroundBorderless" android:background="?attr/selectableItemBackgroundBorderless"
android:gravity="center_horizontal" android:gravity="center_horizontal"
android:orientation="vertical" android:orientation="vertical"
app:layout_constraintEnd_toStartOf="@id/accountStatuses" app:layout_constraintEnd_toStartOf="@id/accountFollowers"
app:layout_constraintStart_toEndOf="@id/accountFollowers" app:layout_constraintStart_toEndOf="@id/accountStatuses"
app:layout_constraintTop_toBottomOf="@id/accountRemoveView"> app:layout_constraintTop_toBottomOf="@id/accountRemoveView">
<TextView <TextView
@ -232,7 +231,7 @@
</LinearLayout> </LinearLayout>
<LinearLayout <LinearLayout
android:id="@+id/accountStatuses" android:id="@+id/accountFollowers"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:background="?attr/selectableItemBackgroundBorderless" android:background="?attr/selectableItemBackgroundBorderless"
@ -243,20 +242,21 @@
app:layout_constraintTop_toBottomOf="@id/accountRemoveView"> app:layout_constraintTop_toBottomOf="@id/accountRemoveView">
<TextView <TextView
android:id="@+id/accountStatusesTextView" android:id="@+id/accountFollowersTextView"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginTop="8dp" android:layout_marginTop="8dp"
android:background="@android:color/transparent"
android:fontFamily="sans-serif-medium" android:fontFamily="sans-serif-medium"
android:textColor="@color/account_tab_font_color" android:textColor="@color/account_tab_font_color"
android:textSize="?attr/status_text_medium" android:textSize="?attr/status_text_medium"
tools:text="3000" /> tools:text="1234" />
<TextView <TextView
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:paddingBottom="6dp" android:paddingBottom="6dp"
android:text="@string/title_statuses" android:text="@string/title_followers"
android:textColor="@color/account_tab_font_color" android:textColor="@color/account_tab_font_color"
android:textSize="?attr/status_text_medium" /> android:textSize="?attr/status_text_medium" />
</LinearLayout> </LinearLayout>

Loading…
Cancel
Save