|Thanks for your reply David
"My first concern is that you are declaring the click handler twice: once in the layout file, and again in code. Use one or the other, but not both."
I thought we have to add the click event on the layout file and add hookup the event to the button also in the initialization of the Activity. i learned, thanks. i am coming from asp.net background
i have changed my function in my frament page to be like this
public void btn_details_saveClick(View view)
//// set onclick listener here, by deleting some process
//btn_details_save.Click += delegate
and i ran it and i got the Error
java.lang.IllegalStateException: Could not find a method btn_details_saveClick(View) in the activity class android.support.v7.widget.TintContextWrapper for onClick handler on view class android.support.v7.widget.AppCompatButton with id 'btn_details_save'
i have also have a example project( 9mb) on this link Example Project
To Reproduce the Error
1) Open the drawer
2) Click on loan application and click the button "Continue" and you will get an Error
Spoted in Daniweb-- Sorry to rant. I hate websites. They are just wierd. They don't behave like normal code.
modified 30-Aug-17 18:00pm.
General News Suggestion Question Bug Answer Joke Praise Rant Admin
Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.