android.widget.ExpandableListView.OnGroupClickListener Java Examples
The following examples show how to use
android.widget.ExpandableListView.OnGroupClickListener.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: StarActivity.java From letv with Apache License 2.0 | 6 votes |
private void initListView() { this.mStarAdapter = new StarAdapter(this, this.mStarName); this.mStarAdapter.setStarBookCallback(this.mBooedkProgramsCallback); this.mListView.setAdapter(this.mStarAdapter); DisplayMetrics displayMetrics = new DisplayMetrics(); getWindowManager().getDefaultDisplay().getMetrics(displayMetrics); int screenWidth = displayMetrics.widthPixels; this.mListView.setHeaderLayoutParams(new LayoutParams(screenWidth, (int) (9.0f * (((float) screenWidth) / 16.0f)))); this.mListView.setScrollViewCallbacks(this); ((ExpandableListView) this.mListView.getRootView()).setGroupIndicator(null); ((ExpandableListView) this.mListView.getRootView()).setOnGroupClickListener(new OnGroupClickListener(this) { final /* synthetic */ StarActivity this$0; { if (HotFix.PREVENT_VERIFY) { System.out.println(VerifyLoad.class); } this.this$0 = this$0; } public boolean onGroupClick(ExpandableListView expandableListView, View view, int i, long l) { return true; } }); }