Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Text Truncation Issue in SimpleMenuPreference with Long Option Labels #34

Open
xchacha20-poly1305 opened this issue Feb 11, 2025 · 0 comments

Comments

@xchacha20-poly1305
Copy link

xchacha20-poly1305 commented Feb 11, 2025

First of all, thank you for developing and maintaining such a useful library.

I have encountered an issue where, on devices like Xiaomi Redmi 23049RAD8C, the text in the SimpleMenuPreference options is truncated when the text is too long. This means the full text of the options is not displayed, which can impact usability. I'm wondering if there might be a configuration option or a limitation in the layout of SimpleMenuPreference that is causing this truncation on these devices. Is there a recommended way to handle longer text labels within this component to prevent truncation?

Could you please advise if there's something I can do to resolve this on my end?

To help you investigate, here is some relevant device information from a user experiencing this issue:

SDK_INT: 34
RELEASE: 14
MANUFACTURER: Xiaomi
BRAND: Redmi
MODEL: 23049RAD8C

I am using version 1.0.3. My xml code is as follows: https://github.com/xchacha20-poly1305/husi/blob/90b1c4ac5608c5745383ce9dd7bedfec2daf1e5c/app/src/main/res/xml/global_preferences.xml#L336-L343

<rikka.preference.SimpleMenuPreference
            app:defaultValue="1"
            app:entries="@array/cert_provider"
            app:entryValues="@array/int_array_3"
            app:icon="@drawable/ic_baseline_push_pin_24"
            app:key="certProvider"
            app:title="@string/certificate_authority"
            app:useSimpleSummaryProvider="true" />

More information, including screenshots, can be found in this related issue on my project: xchacha20-poly1305/husi#242

What's more, I tried gregkorossy/Android-Support-Preference-V7-Fix's SimpleMenuPreference, and there is the same problem.

Please let me know if you require any further information from my side, and how I can best provide it.

Thank you for your time and assistance.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant