@Override public void onViewCreated(View view, Bundle savedInstanceState) { super.onViewCreated(view, savedInstanceState); ExpandableListView listView; listView = (ExpandableListView) view.findViewById(R.id.expListView); listView.setAdapter(new ExpandableListAdapter(questions, answers)); listView.setGroupIndicator(null); }
mDrawerListView.setGroupIndicator(null);
protected void initView() { mEl = (ExpandableListView) findViewById(R.id.el_friend); //不现实groupItem前方系统自带的箭头指示标识符 mEl.setGroupIndicator(null); }
private void initView(){ cartExpandablelistview.setGroupIndicator(null); showData(); } private void showData(){
@Override public View getGroupView(int groupPosition, boolean isExpanded, View convertView, ViewGroup parent) { String headerTitle = (String) getGroup(groupPosition); if (convertView == null) { LayoutInflater infalInflater = (LayoutInflater) this._context.getSystemService(Context.LAYOUT_INFLATER_SERVICE); convertView = infalInflater.inflate(R.layout.list_info_group, null); } TextView lblListHeader = (TextView) convertView.findViewById(R.id.info_list_header); lblListHeader.setTypeface(null, Typeface.BOLD); lblListHeader.setText(headerTitle); ExpandableListView expListView = (ExpandableListView) parent; expListView.expandGroup(groupPosition); expListView.setGroupIndicator(null); return convertView; }
ExpandableListView elvProgramCourseList = (ExpandableListView) findViewById(R.id.elvProgramCourseList); ElvProgramCourseListAdapter adapter = new ElvProgramCourseListAdapter(this, programOnly); elvProgramCourseList.setGroupIndicator(null); elvProgramCourseList.setChildIndicator(null); elvProgramCourseList.setAdapter(adapter); setExpandableListViewHeightBasedOnChildren(elvProgramCourseList, null);
@Override public void onViewCreated(android.view.View view, android.os.Bundle savedInstanceState) { super.onViewCreated(view, savedInstanceState); Bundle args = getArguments(); if (args != null) { String title = "" + args.getCharSequence(Constants.KEY_TITLE); } listView = (ExpandableListView) view.findViewById(R.id.expandableListView); listView.setGroupIndicator(null); final TextView textView = (TextView) view.findViewById(R.id.textViewSave); textView.setClickable(true); textView.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { ((ActPlaylist) activity).save(); } }); }
@Override public void updateList(List<Encounter> visitEncounters) { final String[] displayableEncounterTypes = ApplicationConstants.EncounterTypes.ENCOUNTER_TYPES_DISPLAYS; final HashSet<String> displayableEncounterTypesArray = new HashSet<>(Arrays.asList(displayableEncounterTypes)); List<Encounter> displayableEncounters = new ArrayList<>(); for (Encounter encounter : visitEncounters) { String encounterTypeDisplay = encounter.getEncounterType().getDisplay(); if (displayableEncounterTypesArray.contains(encounterTypeDisplay)) { displayableEncounters.add(encounter); } } VisitExpandableListAdapter expandableListAdapter = new VisitExpandableListAdapter(this.getActivity(), displayableEncounters); mExpandableListView.setAdapter(expandableListAdapter); mExpandableListView.setGroupIndicator(null); }
expandList.setGroupIndicator(null); expandList.setAdapter(adapter);
/** * 初始化所有城市列表 */ public void initAllCityList() { // 扩展列表 View provinceContainer = LayoutInflater.from(OfflineMapActivity.this) .inflate(R.layout.offline_province_listview, null); mAllOfflineMapList = (ExpandableListView) provinceContainer .findViewById(R.id.province_download_list); initProvinceListAndCityMap(); adapter = new OfflineListAdapter(provinceList, amapManager, OfflineMapActivity.this); // 为列表绑定数据源 mAllOfflineMapList.setAdapter(adapter); // adapter实现了扩展列表的展开与合并监听 mAllOfflineMapList.setOnGroupCollapseListener(adapter); mAllOfflineMapList.setOnGroupExpandListener(adapter); mAllOfflineMapList.setGroupIndicator(null); }
mExpandableListView.setGroupIndicator(null);
public class MainActivity extends Activity { // More efficient than HashMap for mapping integers to objects SparseArray<Group> groups = new SparseArray<Group>(); @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); createData(); ExpandableListView listView = (ExpandableListView) findViewById(R.id.listView); listView.setGroupIndicator(getResources().getDrawable(R.drawable.listbg)); MyExpandableListAdapter adapter = new MyExpandableListAdapter(this, groups); listView.setAdapter(adapter); } public void createData() { for (int j = 0; j < 5; j++) { Group group = new Group("Test " + j); for (int i = 0; i < 5; i++) { group.children.add("Sub Item" + i); } groups.append(j, group); } } }
/** * Constructor returns an instance of RecentTabsPage. * * @param activity The activity this view belongs to. * @param recentTabsManager The RecentTabsManager which provides the model data. */ public RecentTabsPage(Activity activity, RecentTabsManager recentTabsManager) { mActivity = activity; mRecentTabsManager = recentTabsManager; mTitle = activity.getResources().getString(R.string.recent_tabs); mThemeColor = ApiCompatibilityUtils.getColor( activity.getResources(), R.color.default_primary_color); mRecentTabsManager.setUpdatedCallback(this); LayoutInflater inflater = LayoutInflater.from(activity); mView = (ViewGroup) inflater.inflate(R.layout.recent_tabs_page, null); mListView = (ExpandableListView) mView.findViewById(R.id.odp_listview); mAdapter = buildAdapter(activity, recentTabsManager); mListView.setAdapter(mAdapter); mListView.setOnChildClickListener(this); mListView.setGroupIndicator(null); mListView.setOnGroupCollapseListener(this); mListView.setOnGroupExpandListener(this); mListView.setOnCreateContextMenuListener(this); mView.addOnAttachStateChangeListener(this); ApplicationStatus.registerStateListenerForActivity(this, activity); // {@link #mInForeground} will be updated once the view is attached to the window. onUpdated(); }
final ExpandableListView listView = new ExpandableListView(inflater.getContext()); listView.setGroupIndicator(null); listView.setAdapter(adapter); listView.setOnChildClickListener(new ExpandableListView.OnChildClickListener() {
@Override public void onServiceConnected(ComponentName name, IBinder iBinder) { ConnectionService.LocalBinder binder = (ConnectionService.LocalBinder) iBinder; service = binder.getService(); contact = service.getContact(); expandList.setGroupIndicator(null); ContactAdapter adapter = new ContactAdapter(contact, getActivity()); expandList.setAdapter(adapter); user = service.GetUser(); }
@Override public void onViewCreated(View view, @Nullable Bundle savedInstanceState) { ExpandableListView list = $.id(R.id.app_video_track_list).view(); $.id(R.id.app_video_track_close).clicked(new View.OnClickListener() { @Override public void onClick(View v) { dismissAllowingStateLoss(); // getFragmentManager().beginTransaction().remove(TrackSelectorFragment.this).commit(); } }); final TracksAdapter tracksAdapter = new TracksAdapter(); list.setGroupIndicator(null); list.setOnGroupClickListener(new ExpandableListView.OnGroupClickListener() { @Override public boolean onGroupClick(ExpandableListView parent, View v, int groupPosition, long id) { return true; } }); list.setAdapter(tracksAdapter); tracksAdapter.load(getArguments().getString("fingerprint")); int count = tracksAdapter.getGroupCount(); for ( int i = 0; i < count; i++ ) { list.expandGroup(i); } } }
toggle.syncState(); fragmentManager = getSupportFragmentManager(); navMenuList.setGroupIndicator(null); prepareNavMenuData(); navAdapter = new NavExpandableListAdapter(this, navListHeader, navListChild);
/** * {@inheritDoc} * * @see org.emdev.ui.AbstractActionActivity#onCreateImpl(android.os.Bundle) */ @Override protected void onCreateImpl(final Bundle savedInstanceState) { setContentView(R.layout.opds); setActionForView(R.id.opdsaddfeed); Toolbar toolbar = (Toolbar) findViewById(R.id.toolbar); setSupportActionBar(toolbar); final OPDSActivityController c = getController(); list = (ExpandableListView) findViewById(R.id.opdslist); list.setGroupIndicator(null); list.setChildIndicator(null); list.setOnGroupClickListener(c); list.setOnChildClickListener(c); list.setAdapter(c.adapter); this.registerForContextMenu(list); }