本文整理汇总了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;
}
示例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;
}