AndroidCountryPicker icon indicating copy to clipboard operation
AndroidCountryPicker copied to clipboard

Custom Row Layout

Open hbb20 opened this issue 5 years ago • 5 comments

Easy way to use different row layout

hbb20 avatar Jul 24 '20 12:07 hbb20

@hbb20 Is it possible to do it? I would like to change the image height, which is hardcoded to 14dp.

gergely-szebenyi avatar Jun 07 '24 17:06 gergely-szebenyi

No. It still doesn't have it. I was assuming that with jetpack compose, developers can use library provided data and build their own UI pretty easily. So I didn't prioritize it.

hbb20 avatar Jun 07 '24 18:06 hbb20

@hbb20 Thanks for this quick reply. I've solved it with overwriting cp_country_row.xml in my app. Not the most elagant solutions but it works.

If I have a custom dialog with an extra view, can I assign a clickListener to it to close the dialog without selection?

gergely-szebenyi avatar Jun 07 '24 19:06 gergely-szebenyi

@hbb20 I see that clearSelectionButton does something similar (it closes the dialog) but also clears my previous selection (which is obvious by it's name). I'm currently trying to set an initial selection from code, not sure if it is possible

gergely-szebenyi avatar Jun 07 '24 19:06 gergely-szebenyi

Managed to solve it.

gergely-szebenyi avatar Jun 07 '24 19:06 gergely-szebenyi

@gergely-szebenyi That is great!! Can you please post your solution here?

RahulSDeshpande avatar May 06 '25 11:05 RahulSDeshpande