Shubham Gupta

Results 4 comments of Shubham Gupta

I generally use this approach and find it easier to understand and recognize all the id's. [https://jeroenmols.com/img/blog/resourcenaming/resourcenaming_cheatsheet.pdf](url). It uses 4 things to name a resource id: **WHAT, WHERE, DESCRIPTION, SIZE**....

Check the id of your card. Check if the id myCard is correct for you. Alternatively, you can change the background in the xml file. In, expandable_cardview.xml file, you can...

The card disappears because the card height is 0. When the card expands, in expand() method, the line: final int initialHeight = card.getHeight(); gives the card height as 0. When...

`new Handler().postDelayed(new Runnable() { @Override public void run() { card.setExpanded(true); } }, 10);` The delay works because when the system is inflating the layout, the card is not yet expanded....