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


Java AppListView类代码示例

本文整理汇总了Java中org.fdroid.fdroid.views.AppListView的典型用法代码示例。如果您正苦于以下问题:Java AppListView类的具体用法?Java AppListView怎么用?Java AppListView使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


AppListView类属于org.fdroid.fdroid.views包,在下文中一共展示了AppListView类的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: createPlainAppList

import org.fdroid.fdroid.views.AppListView; //导入依赖的package包/类
protected AppListView createPlainAppList() {
    AppListView view = new AppListView(getActivity());
    ListView list = createAppListView();
    view.addView(
            list,
            new ViewGroup.LayoutParams(
                    ViewGroup.LayoutParams.MATCH_PARENT,
                    ViewGroup.LayoutParams.WRAP_CONTENT));
    view.setAppList(list);
    return view;
}
 
开发者ID:devscitech1,项目名称:aakash-fdroid-client,代码行数:12,代码来源:AppListFragment.java

示例2: onCreateView

import org.fdroid.fdroid.views.AppListView; //导入依赖的package包/类
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
       AppListView view = new AppListView(getActivity());
       view.setOrientation(LinearLayout.VERTICAL);

       Spinner spinner = new Spinner(getActivity());
       // Giving it an ID lets the default save/restore state
       // functionality do its stuff.
       spinner.setId(R.id.categorySpinner);
       spinner.setAdapter(getAppListManager().getCategoriesAdapter());
       spinner.setOnItemSelectedListener(this);

       view.addView(
               spinner,
               new ViewGroup.LayoutParams(
                       LayoutParams.MATCH_PARENT,
                       LayoutParams.WRAP_CONTENT));

       ListView list = createAppListView();
       view.setAppList(list);
       view.addView(
               list,
               new ViewGroup.LayoutParams(
                       LayoutParams.MATCH_PARENT,
                       LayoutParams.MATCH_PARENT));

       return view;
   }
 
开发者ID:devscitech1,项目名称:aakash-fdroid-client,代码行数:29,代码来源:AvailableAppsFragment.java


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