Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-23137] Android: Allow to override default hasCheck drawable for TableViewRow

GitHub Issuen/a
TypeNew Feature
PriorityHigh
StatusOpen
ResolutionUnresolved
Affected Version/sRelease 5.2.1
Fix Version/sn/a
ComponentsAndroid
Labelsn/a
ReporterFokke Zandbergen
AssigneeUnknown
Created2016-04-01T19:51:56.000+0000
Updated2018-02-28T19:55:44.000+0000

Description

I'd like to be able to override the default drawable displayed when you set Ti.UI.TableViewRow.hasCheck on Android: https://github.com/appcelerator/titanium_mobile/blob/master/android/titanium/src/java/org/appcelerator/titanium/res/drawable/btn_check_buttonless_on.png Which is selected here: https://github.com/appcelerator/titanium_mobile/blob/bc85170157d3bebc5de1d61a9fe6e34bce84a8c9/android/modules/ui/src/java/ti/modules/titanium/ui/widget/tableview/TiBaseTableViewItem.java#L73-L89 Ideally I'd put an image with the same name in my app's platform/android/drawable folder to override the default.

Comments

  1. Hans Knöchel 2016-04-02

    *BIG* +1 for this, that icon looks like from the 90's. For now, can we just replace it from newer Android SDK's? EDIT: Seems like Android didn't even change the default one (http://androiddrawables.com/Buttons.html) EDIT2: We deliver some drawables [by default](https://github.com/appcelerator/titanium_mobile/tree/master/android/titanium/src/java/org/appcelerator/titanium/res/drawable), if we remove that folder, wouldn't Android just use it's own defaults and we are future-proof?

JSON Source