Add UI changes to support collapsing statuses
The button uses subtle styling to not be distracting like the CW button on the timeline The button is toggleable, full width to match the status textbox hitbox width and also is shorter to not be too intrusive between the status text and images, or the post below
This commit is contained in:
parent
8f6c327cc7
commit
6b1ec083b7
|
@ -134,11 +134,23 @@
|
|||
android:textSize="?attr/status_text_medium"
|
||||
tools:text="This is a status" />
|
||||
|
||||
<ToggleButton
|
||||
style="@style/Widget.AppCompat.Button.Borderless"
|
||||
android:id="@+id/button_toggle_content"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="32dp"
|
||||
android:padding="0dp"
|
||||
android:layout_toEndOf="@id/status_avatar"
|
||||
android:layout_below="@id/status_content"
|
||||
android:textOff="@string/status_content_show_more"
|
||||
android:textOn="@string/status_content_show_less"
|
||||
android:visibility="gone" />
|
||||
|
||||
<android.support.constraint.ConstraintLayout
|
||||
android:id="@+id/status_media_preview_container"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_below="@+id/status_content"
|
||||
android:layout_below="@+id/button_toggle_content"
|
||||
android:layout_marginTop="@dimen/status_media_preview_margin_top"
|
||||
android:layout_toEndOf="@+id/status_avatar">
|
||||
|
||||
|
@ -353,4 +365,4 @@
|
|||
|
||||
</LinearLayout>
|
||||
|
||||
</RelativeLayout>
|
||||
</RelativeLayout>
|
||||
|
|
|
@ -46,6 +46,8 @@
|
|||
<string name="status_sensitive_media_directions">Click to view</string>
|
||||
<string name="status_content_warning_show_more">Show More</string>
|
||||
<string name="status_content_warning_show_less">Show Less</string>
|
||||
<string name="status_content_show_more">Show more</string>
|
||||
<string name="status_content_show_less">Show less</string>
|
||||
|
||||
<string name="footer_empty">Nothing here. Pull down to refresh!</string>
|
||||
|
||||
|
|
Loading…
Reference in New Issue