Open qinshucheng opened 8 years ago
Maybe you should debug ... ,Though I meet the same problem ,which is my fault . So find it and solve it ,
You need to initiate rfaLayout
and rfaButton
. In the author's code, he used AILayout
to initiate this. I have googled that but found nothing. So instead I use a normal way to get the views:
rfaLayout = (RapidFloatingActionLayout) findViewById(R.id.activity_main_rfal);
rfaBtn = (RapidFloatingActionButton) findViewById(R.id.activity_main_rfab);
Put those before rfabHelper = new ... build()
and that should work.
How to solve this problem? I can successfully run the demo example you give,but when i create a new project,it cause this problem.
I found if I download your file 'library' and use it in my project like 'compile project(':library')' there is no such problem,however this problem exits when I use your library via gradle like this 'compile 'com.github.wangjiegulu:RapidFloatingActionButton:1.0.3' .Can you tell me why??