1gravity / Android-ContactPicker

A beautifully designed component to pick one or several contacts (including groups) from the Android contacts list
Apache License 2.0
66 stars 33 forks source link

can't get it to work #14

Closed hullymolly closed 7 years ago

hullymolly commented 7 years ago

as soon as i add the library to my project, it stops working and i get these errors.

[2017-01-03 21:29:11 - TestCalls] /Users/mac/Documents/workspace/main/res/layout/cp_contact_list.xml:20: error: No resource identifier found for attribute 'rfs_backgroundColor' in package 'com.dobicube.TestCalls' [2017-01-03 21:29:11 - TestCalls] [2017-01-03 21:29:11 - TestCalls] /Users/mac/Documents/workspace/main/res/layout/cp_contact_list.xml:20: error: No resource identifier found for attribute 'rfs_textColor' in package 'com.dobicube.TestCalls' [2017-01-03 21:29:11 - TestCalls] [2017-01-03 21:29:11 - TestCalls] /Users/mac/Documents/workspace/main/res/layout/cp_contact_list.xml:20: error: Error: No resource found that matches the given name (at 'layout_height' with value '@dimen/list_item_height'). [2017-01-03 21:29:11 - TestCalls] [2017-01-03 21:29:11 - TestCalls] /Users/mac/Documents/workspace/main/res/layout/cp_contact_tab_layout.xml:9: error: No resource identifier found for attribute 'tabTextColor' in package 'com.dobicube.TestCalls' [2017-01-03 21:29:11 - TestCalls] [2017-01-03 21:29:11 - TestCalls] /Users/mac/Documents/workspace/main/res/layout/cp_contact_tab_layout.xml:9: error: No resource identifier found for attribute 'tabSelectedTextColor' in package 'com.dobicube.TestCalls' [2017-01-03 21:29:11 - TestCalls]

Attached are the project and library's properties, not sure what i did wrong here, oh and the Demo app won't work either. I would really appreciate some help.

Thanks

screenshot 2017-01-03 23 05 43 screenshot 2017-01-03 23 09 04

1gravity commented 7 years ago

You need to define the custom attributes in your theme or inherit from the contact picker theme. Please read the paragraph about theming in readme.md: https://github.com/1gravity/Android-ContactPicker/blob/master/README.md