Android Studio Tutorial - Expandable ListView

EDMT Dev · 122K views · 2016 · 15:25

Open on YouTube

Software (other)Software practice, open source & careerstutorialdated

Why Stack Overflow recommends it

Stack Overflow users cite it as the tutorial they built their ExpandableListView code from when asking about adapter and rendering problems.

Recommended by 0 people across 0 different months, 2017 to 2019.

What it is

A 15-minute Android Studio tutorial from the EDMT Dev channel that shows how to build an ExpandableListView, a list that groups items under headers which expand and collapse when tapped. It is a screen-recorded, code-along beginner walkthrough.

What people said

Cites supro_96 · 2017-10 · Stack Overflow · on “RatingBar values duplicated in ExpandableListView”

When I rate something in First ExpandableListView: [LINK] Then when I open Second ExpandableListView or any other, the values are duplicated: [LINK] I've taken help from [this video] and just modified it by adding rating bar. The ratings are not saved in the view. Code: Java expListview = (ExpandableListView)findViewById(R.id.expSkills); initData(); expListadapter = new ExpandablelistAdapter(getApplicationContext(),listDataheader,listHash); expListview.setAdapter(expListadapter); private void initData() { listDataheader = new ArrayList<>(); listHash = new HashMap<>(); listDataheader.add("Communication Skills"); listDataheader.add("Social Skills"); listDataheader.add("Music and Movement"); listDat

Cites milkchocolate · 2018-01 · Stack Overflow · on “changing groupName at onChildClickListener, ExpandableListView”

1: Don't put your data in your Adapter. It belongs to the Activity with your expandableListView or in the string.xml 2: To refresh your expandableListView set a new adapter with the refreshed data to your ListView. Your Activity: grupa = "Płeć"; //declare as String dzieci = {"Kobieta","Mężczyzna"}; //declare as String[] customAdapter = new CustomAdapter (this, grupa, dzieci); expandableListView.setAdapter(customAdapter); expandableListView.setOnChildClickListener(new ExpandableListView.OnChildClickListener() { @Override public boolean onChildClick(ExpandableListView parent, View v, int group, int position, long id) { String tekst = (String) parent.getExpandableListAdapter().getChild(group,po

Cites Marco Papula · 2019-04 · Stack Overflow · on “ExpandableListView with ViewPager as child-elements executes getChildView twice”

I want to create an expandable list with viewpagers as subviews. The problem is now that with my code it calls the getChildView method twice and thus creates my viewpager twice. I also tried it with the TextView (which is the sample code I posted here for convenience) to simplify the code but the same issue arose. My best guess is it has something to do with the height property of the layouts but no matter how i changed it, I couldn't resolve the issue. Please help. I am totally lost. I used a tutorial for this code and I seem to be the only who has that issue judging from the youtube comment section. ( [this video] ) (If you need any other part of the code please let me know.) delete.xml file lo