Code example for ExpandableListView

Methods: setAdaptersetGroupIndicator

0
	@Override 
	public Object instantiateItem(View container, int position) {
		MyLog.p("Instantiate expandable"); 
		RelativeLayout v = new RelativeLayout(mContext);
		 
		lv = new ExpandableListView(mContext);
		lv.setGroupIndicator(null);
		lv.setAdapter(new ExpadableAdapter(mContext, listListMovies.get(position)));
		 
//		TextView t = new TextView(mContext); 
//		TextView t1 = new TextView(mContext); 
//		t1.setText("Test"); 
//		t.setLayoutParams(new LayoutParams(LayoutParams.MATCH_PARENT, LayoutParams.MATCH_PARENT)); 
//		t.setText(mData[position]); 
//		t.setTextSize(120); 
//		t.setGravity(Gravity.CENTER); 
//		t.setTextColor(mTextColor); 
//		t.setBackgroundColor(mBackgroundColor); 
		 
//		v.addView(t); 
		v.addView(lv);