Show image descriptions in gallery (#630)
* Add circleci * Commit to maybe fix ci * Suppress false positives in lint * Disable linting for tests in ci * Add image descriptions to gallery * Fix test * [CI] Attempt to fix OOM error * [CI] Attempt to fix OOM error, 2 * Add option to open status from media * fix theme issue * increase linespacing on media description
This commit is contained in:
parent
1108652823
commit
23d84dfa66
27 changed files with 313 additions and 193 deletions
|
@ -179,7 +179,7 @@
|
|||
android:layout_gravity="top"
|
||||
android:background="@android:color/transparent"
|
||||
app:layout_collapseMode="pin"
|
||||
app:popupTheme="?attr/account_toolbar_popup_theme" />
|
||||
app:popupTheme="?attr/toolbar_popup_theme" />
|
||||
|
||||
</android.support.design.widget.CollapsingToolbarLayout>
|
||||
|
||||
|
|
|
@ -15,8 +15,8 @@
|
|||
android:id="@+id/toolbar"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="?attr/actionBarSize"
|
||||
android:background="@color/toolbar_view_media"
|
||||
android:theme="@style/AppTheme.Account.AppBarLayout"
|
||||
app:popupTheme="@style/AppTheme.Account.ToolbarPopupTheme.Dark"
|
||||
android:background="@color/toolbar_view_media" />
|
||||
app:popupTheme="?attr/toolbar_popup_theme"/>
|
||||
|
||||
</FrameLayout>
|
|
@ -1,9 +1,11 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_gravity="center"
|
||||
android:clickable="true">
|
||||
android:clickable="true"
|
||||
android:focusable="true">
|
||||
|
||||
<com.github.chrisbanes.photoview.PhotoView
|
||||
android:id="@+id/view_media_image"
|
||||
|
@ -18,4 +20,16 @@
|
|||
android:layout_centerVertical="true"
|
||||
android:layout_gravity="center" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_media_description"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignParentBottom="true"
|
||||
android:background="#60000000"
|
||||
android:lineSpacingMultiplier="1.1"
|
||||
android:padding="8dp"
|
||||
android:textAlignment="center"
|
||||
android:textColor="#eee"
|
||||
tools:text="Some media description" />
|
||||
|
||||
</RelativeLayout>
|
|
@ -6,4 +6,8 @@
|
|||
android:icon="@drawable/ic_file_download_black_24dp"
|
||||
android:title="@string/dialog_download_image"
|
||||
app:showAsAction="always" />
|
||||
<item
|
||||
android:id="@+id/action_open_status"
|
||||
android:title="@string/action_open_toot"
|
||||
app:showAsAction="never" />
|
||||
</menu>
|
|
@ -41,7 +41,7 @@
|
|||
<item name="account_header_background_color">@color/account_header_background_dark</item>
|
||||
<item name="account_toolbar_icon_tint_uncollapsed">@color/toolbar_icon_dark</item>
|
||||
<item name="account_toolbar_icon_tint_collapsed">@color/account_toolbar_icon_collapsed_dark</item>
|
||||
<item name="account_toolbar_popup_theme">@style/AppTheme.Account.ToolbarPopupTheme.Dark</item>
|
||||
<item name="toolbar_popup_theme">@style/AppTheme.Account.ToolbarPopupTheme.Dark</item>
|
||||
<item name="compose_close_button_tint">@color/toolbar_icon_dark</item>
|
||||
<item name="compose_media_button_disabled_tint">@color/compose_media_button_disabled_dark</item>
|
||||
<item name="compose_mention_color">@color/color_accent_dark</item>
|
||||
|
|
|
@ -27,7 +27,7 @@
|
|||
<attr name="account_header_background_color" format="reference|color" />
|
||||
<attr name="account_toolbar_icon_tint_uncollapsed" format="reference|color" />
|
||||
<attr name="account_toolbar_icon_tint_collapsed" format="reference|color" />
|
||||
<attr name="account_toolbar_popup_theme" format="reference" />
|
||||
<attr name="toolbar_popup_theme" format="reference" />
|
||||
<attr name="compose_close_button_tint" format="reference|color" />
|
||||
<attr name="compose_media_button_disabled_tint" format="reference|color" />
|
||||
<attr name="compose_mention_color" format="reference|color" />
|
||||
|
|
|
@ -315,6 +315,7 @@
|
|||
<string name="download_fonts">You\'ll need to download these emoji sets first</string>
|
||||
<string name="performing_lookup_title">Performing lookup...</string>
|
||||
<string name="expand_collapse_all_statuses">Expand/Collapse all statuses</string>
|
||||
<string name="action_open_toot">Open toot</string>
|
||||
<string name="restart_required">App restart required</string>
|
||||
<string name="restart_emoji">You\'ll need to restart Tusky in order to apply these changes</string>
|
||||
<string name="later">Later</string>
|
||||
|
|
|
@ -74,7 +74,7 @@
|
|||
<item name="account_header_background_color">@color/account_header_background_light</item>
|
||||
<item name="account_toolbar_icon_tint_uncollapsed">@color/toolbar_icon_dark</item> <!--Default to dark on purpose, because header backgrounds with gradients are always dark.-->
|
||||
<item name="account_toolbar_icon_tint_collapsed">@color/account_toolbar_icon_collapsed_light</item>
|
||||
<item name="account_toolbar_popup_theme">@style/AppTheme.Account.ToolbarPopupTheme.Light</item>
|
||||
<item name="toolbar_popup_theme">@style/AppTheme.Account.ToolbarPopupTheme.Light</item>
|
||||
<item name="compose_close_button_tint">@color/toolbar_icon_light</item>
|
||||
<item name="compose_media_button_disabled_tint">@color/compose_media_button_disabled_light</item>
|
||||
<item name="compose_mention_color">@color/compose_mention_light</item>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue