Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>You can use Expendable list which will allow you to show group and kind of sub-group. To do so you need to create a BaseExpandableListAdapter. You need to override two methods of this class.</p> <pre><code>@Override public View getGroupView(int groupPosition, boolean isExpanded, View convertView, ViewGroup parent) { // TODO Auto-generated method stub if (convertView == null) { LayoutInflater inflater = (LayoutInflater) context.getSystemService(Context.LAYOUT_INFLATER_SERVICE); convertView = inflater.inflate(R.layout.group_row, null); } //TextView tv=new TextView(context); TextView tv = (TextView) convertView.findViewById(R.id.tvGroupName); //tv.setText(parentList[groupPosition]); tv.setText(category_list.get(groupPosition).toString()); //tv.setPadding(70,0,0,10); //return tv; return convertView; } @Override public View getChildView(int groupPosition, int childPosition, boolean isLastChild, View convertView, ViewGroup parent) { // TODO Auto-generated method stub if (convertView == null) { LayoutInflater inflater = (LayoutInflater) context.getSystemService(Context.LAYOUT_INFLATER_SERVICE); convertView = inflater.inflate(R.layout.child_row, null); } //TextView tv=new TextView(context); TextView tv = (TextView) convertView.findViewById(R.id.tvPlayerName); //tv.setText(childList[groupPosition][childPosition]); tv.setText((String)((ArrayList)sub_category_list.get(groupPosition)).get(childPosition)); //tv.setPadding(70,0,0,10); //return tv; return convertView; } </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload