Anki-Android icon indicating copy to clipboard operation
Anki-Android copied to clipboard

Fix spacing for spinner checkmarks in ChangeNoteTypeDialog

Open Ratnesh5 opened this issue 2 months ago • 2 comments

Description

There is currently a TODO in ChangeNoteTypeDialog.kt mentioning: "Properly handle spacing for spinner checkmarks. Issue not created yet."

The dropdown layout item_spinner_dropdown_with_radio.xml uses hardcoded values (paddingStart="16dp" and paddingEnd="12dp") to visually hack the checkmark spacing because CheckedTextView's default android:checkMark doesn't allow for configurable padding. This can cause the text to overlap the radio button or the radio button to sit at an awkward distance from the edge, depending on the device or theme.

Expected behavior

The layout should use standard Material theme attributes (listPreferredItemPaddingStart/End) to handle the screen edge padding dynamically, and properly space the text from the radio button without overlapping.

Ratnesh5 avatar Sep 20 '26 09:09 Ratnesh5

I believe this is handled in:

  • https://github.com/ankidroid/Anki-Android/pull/21469

david-allison avatar Sep 20 '26 10:09 david-allison

Thanks for pointing that out! I'll go ahead and close this issue.

Ratnesh5 avatar Sep 20 '26 10:09 Ratnesh5