Fragment_crime layout did not show its content when running


When I add two buttons in fragment_crime.xml and set the code according to guidline and run then crimefragment class didn’t load and its content disappear from when app was started.

When I click add button on toolbar, new activity does start but not showing contents like edit texts and buttons and textviews.


I suggest you double check your code. I had the the problem, and it turned out I forgot to add a “+” sign in the code to create a new database table with the new “suspect” column.


Thank you, nphan, I had this same problem and the same solution worked!