Skip to content

Conversation

sk22
Copy link
Contributor

@sk22 sk22 commented May 5, 2022

Fixes #100, #107.

  • Button added to PhotoViewer's toolbar that indicates the existence of an image description.
  • When pressed, the button opens a BottomSheet that displays the image description.

image

Comment on lines +47 to +51
TextView heading=new TextView(activity);
heading.setText(R.string.image_description);
heading.setAllCaps(true);
heading.setTypeface(null, Typeface.BOLD);
heading.setPadding(0, V.dp(24), 0, V.dp(8));
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure about this. Is there a specific styling more suitable for headings?

handleView.setBackgroundResource(R.drawable.bg_bottom_sheet_handle);
ViewGroup handle=new FrameLayout(activity);
handle.addView(handleView);
handle.setLayoutParams(new FrameLayout.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT, V.dp(24)));
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I didn't find where or if the AccountSwitcherSheet sets the height of the handle somewhere - setting it to 24dp manually was the only solution I could find; might be a bit hacky.

@grishka grishka added the ui/ux related Needs review by UI/UX people label May 13, 2022
@grishka
Copy link
Member

grishka commented May 25, 2023

Already implemented but differently (tappable ALT badges in timelines).

@grishka grishka closed this May 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ui/ux related Needs review by UI/UX people
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Alt text on images not visible
2 participants