{"action":"created","issue":{"url":"https://api.github.com/repos/henrytao-me/android-md-core/issues/60","labels_url":"https://api.github.com/repos/henrytao-me/android-md-core/issues/60/labels{/name}","comments_url":"https://api.github.com/repos/henrytao-me/android-md-core/issues/60/comments","events_url":"https://api.github.com/repos/henrytao-me/android-md-core/issues/60/events","html_url":"https://github.com/henrytao-me/android-md-core/issues/60","id":115658356,"number":60,"title":"Preserving colour of drawable when setting avatar and icon","user":{"login":"nikoladoherty","id":15702263,"avatar_url":"https://avatars.githubusercontent.com/u/15702263?v=3","gravatar_id":"","url":"https://api.github.com/users/nikoladoherty","html_url":"https://github.com/nikoladoherty","followers_url":"https://api.github.com/users/nikoladoherty/followers","following_url":"https://api.github.com/users/nikoladoherty/following{/other_user}","gists_url":"https://api.github.com/users/nikoladoherty/gists{/gist_id}","starred_url":"https://api.github.com/users/nikoladoherty/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nikoladoherty/subscriptions","organizations_url":"https://api.github.com/users/nikoladoherty/orgs","repos_url":"https://api.github.com/users/nikoladoherty/repos","events_url":"https://api.github.com/users/nikoladoherty/events{/privacy}","received_events_url":"https://api.github.com/users/nikoladoherty/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-11-07T10:41:56Z","updated_at":"2015-11-07T14:47:02Z","closed_at":null,"body":"Hi @henrytao-me,\r\n\r\nThis seems to be a great lib. Something that Google should've done to encourage the adoption of material design. I tried to put drawables into the avatar and icon of MdListItem. But they are all turned dark when I use the MdTheme.Light and they are all turned light when I use the MdTheme.Dark. How do I keep the original colour of the drawable the way the avatars in the Gmail app works? It seems that there is a MdIcon tint and some other icon colours in the source. What should I override in my theme that extends MdTheme?\r\n\r\n I think this library will attract a lot more attention once you have more documentation. Thank you.\r\n\r\nNiko"},"comment":{"url":"https://api.github.com/repos/henrytao-me/android-md-core/issues/comments/154712080","html_url":"https://github.com/henrytao-me/android-md-core/issues/60#issuecomment-154712080","issue_url":"https://api.github.com/repos/henrytao-me/android-md-core/issues/60","id":154712080,"user":{"login":"henrytao-me","id":5274722,"avatar_url":"https://avatars.githubusercontent.com/u/5274722?v=3","gravatar_id":"","url":"https://api.github.com/users/henrytao-me","html_url":"https://github.com/henrytao-me","followers_url":"https://api.github.com/users/henrytao-me/followers","following_url":"https://api.github.com/users/henrytao-me/following{/other_user}","gists_url":"https://api.github.com/users/henrytao-me/gists{/gist_id}","starred_url":"https://api.github.com/users/henrytao-me/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/henrytao-me/subscriptions","organizations_url":"https://api.github.com/users/henrytao-me/orgs","repos_url":"https://api.github.com/users/henrytao-me/repos","events_url":"https://api.github.com/users/henrytao-me/events{/privacy}","received_events_url":"https://api.github.com/users/henrytao-me/received_events","type":"User","site_admin":false},"created_at":"2015-11-07T14:47:02Z","updated_at":"2015-11-07T14:47:02Z","body":"Hi @nikoladoherty \r\nPlease check out `v1.9.10`. I updated iconTintMode for list item. You raised a very good point where MdListItem shouldn't apply tint mode for avatar. In your case, if you want to keep icon color, you can declare view like this:\r\n\r\n```\r\n<me.henrytao.mdcore.widgets.MdListItem\r\n      android:layout_width=\"match_parent\"\r\n      android:layout_height=\"wrap_content\"\r\n      android:background=\"?attr/selectableItemBackground\"\r\n      android:clickable=\"true\"\r\n      app:mdli_divider_layout=\"@layout/mdli_divider_left\"\r\n      app:mdli_icon=\"@drawable/ic_blank_circle\"\r\n      app:mdli_icon_tintMode=\"dst\"\r\n      app:mdli_title=\"@string/text_single_line_item\"\r\n      app:mdli_type=\"single_line_icon_with_text\" />\r\n```"}}