7
3
Fork
You've already forked android
4

#14: Better error display with special snackbar #15

Merged
dzolnai merged 2 commits from feature/threading_fix into master 2025年03月12日 13:08:43 +01:00
Collaborator
Copy link
No description provided.
@ -0,0 +20,4 @@
val snackbar = Snackbar.make(view, text, Snackbar.LENGTH_INDEFINITE)
val snackbarView = snackbar.view
val snackTextView = snackbarView.findViewById<View>(com.google.android.material.R.id.snackbar_text) as TextView
snackTextView.maxLines = 8

wouldn't this depend on screen size?

wouldn't this depend on screen size?
Author
Collaborator
Copy link

This is the theoretical max lines to display, after 8 lines it will just truncate the text. Before 8 lines, it will resize the popup accordingly

This is the theoretical max lines to display, after 8 lines it will just truncate the text. Before 8 lines, it will resize the popup accordingly

ah perfect, thanks!

ah perfect, thanks!
dzolnai marked this conversation as resolved
Sign in to join this conversation.
No reviewers
Milestone
Clear milestone
No items
No milestone
Projects
Clear projects
No items
No project
Assignees
Clear assignees
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
eduVPN/android!15
Reference in a new issue
eduVPN/android
No description provided.
Delete branch "feature/threading_fix"

Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?