My project is going on easily but suddenly what I found below bugs when developing an app. I know it's minor bug but it may be useful to anyone. Here is the error: Error:(2) Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.Button.Inverse'. Error:(2) Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.Button.Colored'. Solution: This happens because after updates your android studio uses API 23 by default. 1) First check that your compile SDK version must match the support library's major version. If you are using version 23 of the support library, you need to compile against version 23 of the Android SDK. Alternatively you can continue compiling against version 22 of the Android SDK by switching to the latest support library v22. 2) Go to your project structure -> Properties -> and change Build tool version to
If you have "ExpandableListView" and show only one child of expandable Listview at a time, then below is the code for it. expendListView.setOnGroupExpandListener(new ExpandableListView.OnGroupExpandListener() { int previousGroup = -1; @Override public void onGroupExpand(int groupPosition) { if(groupPosition != previousGroup) expendListView.collapseGroup(previousGroup); previousGroup = groupPosition; } }); "groupPosition" will return the open group id. So when I expand the other group then open group will collapse. You can also expand specific item of "ExpandableListView" by applying following code: expendListView.expandGroup(i);