本文整理汇总了Java中com.bignerdranch.expandablerecyclerview.Model.ParentObject类的典型用法代码示例。如果您正苦于以下问题:Java ParentObject类的具体用法?Java ParentObject怎么用?Java ParentObject使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
ParentObject类属于com.bignerdranch.expandablerecyclerview.Model包,在下文中一共展示了ParentObject类的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: onPostExecute
import com.bignerdranch.expandablerecyclerview.Model.ParentObject; //导入依赖的package包/类
@Override
protected void onPostExecute(ArrayList<ParentObject> parentObjects) {
super.onPostExecute(parentObjects);
((MainActivity)getActivity()).hideProgress();
if (parentObjects != null) {
if (parentObjects.size() > 0) {
adapter = new ExpandableDownloadedAdapter(getActivity(), parentObjects);
recyclerView.setVisibility(View.VISIBLE);
recyclerView.setLayoutManager(new LinearLayoutManager(getActivity().getApplicationContext()));
recyclerView.setAdapter(adapter);
empty.setVisibility(View.GONE);
} else {
recyclerView.setVisibility(View.GONE);
empty.setVisibility(View.VISIBLE);
}
} else {
((MainActivity)getActivity()).hideProgress();
recyclerView.setVisibility(View.GONE);
empty.setVisibility(View.VISIBLE);
}
}
示例2: setUpData
import com.bignerdranch.expandablerecyclerview.Model.ParentObject; //导入依赖的package包/类
private ArrayList<ParentObject> setUpData() {
ArrayList<ParentObject> parentObjectList = new ArrayList<>();
for (String aParentList : parentList) {
ArrayList<Object> childObjectList = new ArrayList<>();
ArrayList<String> selected = getTechsForCharacter(aParentList);
for (int r = 0; r < selected.size(); r++) {
childObjectList.add(new CustomChildObject(selected.get(r)));
}
CustomParentObject customParentObject = new CustomParentObject();
customParentObject.setChildObjectList(childObjectList);
customParentObject.setParentText(aParentList);
parentObjectList.add(customParentObject);
}
return parentObjectList;
}
示例3: setUpData
import com.bignerdranch.expandablerecyclerview.Model.ParentObject; //导入依赖的package包/类
private ArrayList<ParentObject> setUpData() {
ArrayList<ParentObject> parentObjectList = new ArrayList<>();
for(int i = 0; i < 2; i++) {
ArrayList<Object> childObjectList = new ArrayList<>();
switch(i) {
case 0: {
childObjectList.add(new CustomChildObject(eyeList[0]));
childObjectList.add(new CustomChildObject(eyeList[1]));
childObjectList.add(new CustomChildObject(eyeList[2]));
childObjectList.add(new CustomChildObject(eyeList[3]));
childObjectList.add(new CustomChildObject(eyeList[4]));
}
break;
case 1: {
childObjectList.add(new CustomChildObject(handList[0]));
childObjectList.add(new CustomChildObject(handList[1]));
childObjectList.add(new CustomChildObject(handList[2]));
childObjectList.add(new CustomChildObject(handList[3]));
childObjectList.add(new CustomChildObject(handList[4]));
childObjectList.add(new CustomChildObject(handList[5]));
childObjectList.add(new CustomChildObject(handList[6]));
childObjectList.add(new CustomChildObject(handList[7]));
childObjectList.add(new CustomChildObject(handList[8]));
childObjectList.add(new CustomChildObject(handList[9]));
}
break;
}
CustomParentObject customParentObject = new CustomParentObject();
customParentObject.setChildObjectList(childObjectList);
customParentObject.setParentText(parentList[i]);
parentObjectList.add(customParentObject);
}
return parentObjectList;
}
示例4: HitboxesAdapter
import com.bignerdranch.expandablerecyclerview.Model.ParentObject; //导入依赖的package包/类
public HitboxesAdapter(Context context, List<ParentObject> parentItemList, String character) {
super(context, parentItemList);
this.context = context;
characterPicked = character;
mInflater = LayoutInflater.from(context);
removeAnimation();
}
示例5: ExpandableAdapter
import com.bignerdranch.expandablerecyclerview.Model.ParentObject; //导入依赖的package包/类
public ExpandableAdapter(Context context, List<ParentObject> parentItemList, boolean healthy) {
super(context, parentItemList);
this.context = context;
mInflater = LayoutInflater.from(context);
removeAnimation();
this.healthy = healthy;
}
示例6: TopArtistsExpandableAdapter
import com.bignerdranch.expandablerecyclerview.Model.ParentObject; //导入依赖的package包/类
public TopArtistsExpandableAdapter(Context context, List<ParentObject> parentItemList) {
super(context, parentItemList);
}
示例7: ExpandableDownloadedAdapter
import com.bignerdranch.expandablerecyclerview.Model.ParentObject; //导入依赖的package包/类
public ExpandableDownloadedAdapter(Context context, List<ParentObject> itemList) {
super(context, itemList);
mInflater = LayoutInflater.from(context);
fileUtils = new FileUtils();
}