当前位置: 首页>>代码示例>>Java>>正文


Java ParentObject类代码示例

本文整理汇总了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);
    }
}
 
开发者ID:b1acKr0se,项目名称:jumpmanga,代码行数:22,代码来源:DownloadedFragment.java

示例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;
}
 
开发者ID:ThatKawaiiGuy,项目名称:Handbook_for_Melee,代码行数:18,代码来源:UniqueFragment.java

示例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;
}
 
开发者ID:ThatKawaiiGuy,项目名称:Handbook_for_Melee,代码行数:37,代码来源:HealthyFragment.java

示例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();
}
 
开发者ID:ThatKawaiiGuy,项目名称:Handbook_for_Melee,代码行数:8,代码来源:HitboxesAdapter.java

示例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;
}
 
开发者ID:ThatKawaiiGuy,项目名称:Handbook_for_Melee,代码行数:8,代码来源:ExpandableAdapter.java

示例6: TopArtistsExpandableAdapter

import com.bignerdranch.expandablerecyclerview.Model.ParentObject; //导入依赖的package包/类
public TopArtistsExpandableAdapter(Context context, List<ParentObject> parentItemList) {
    super(context, parentItemList);
}
 
开发者ID:sharaquss,项目名称:Betterfy,代码行数:4,代码来源:TopArtistsExpandableAdapter.java

示例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();
}
 
开发者ID:b1acKr0se,项目名称:jumpmanga,代码行数:6,代码来源:ExpandableDownloadedAdapter.java


注:本文中的com.bignerdranch.expandablerecyclerview.Model.ParentObject类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。