gyscos / gyscos/cursive

[FEATURE] Add focus support for TextView

Open
#560 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
Rust
Stars
4.8k
Forks
270
Avg merge
5d 19h
Merged PRs (30d)
2

Description

Are there any ways to focus a `TextView` element?
My use case is that I want to create a select list using `LinearLayout` (vertical) and `TextView`. This results in an error because `TextView` uses the default implementation of `take_focus` from `View`. Using `SelectView` is an alternative, but it restricts the `label` to be within one single row.
I wonder why `focus` is not supported for `TextView`. Are there any difficulties involved supporting this feature that I may miss?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.