本文整理汇总了Java中uk.co.senab.actionbarpulltorefresh.library.PullToRefreshLayout.findViewById方法的典型用法代码示例。如果您正苦于以下问题:Java PullToRefreshLayout.findViewById方法的具体用法?Java PullToRefreshLayout.findViewById怎么用?Java PullToRefreshLayout.findViewById使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类uk.co.senab.actionbarpulltorefresh.library.PullToRefreshLayout
的用法示例。
在下文中一共展示了PullToRefreshLayout.findViewById方法的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: onCreateView
import uk.co.senab.actionbarpulltorefresh.library.PullToRefreshLayout; //导入方法依赖的package包/类
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container,
Bundle savedInstanceState) {
page = 1;
mPullToRefreshLayout = (PullToRefreshLayout) inflater.inflate(R.layout.fragment_orders, container, false);
mListView = (ListView) mPullToRefreshLayout.findViewById(R.id.list_view_fragment_order);
mListView.setEmptyView(mPullToRefreshLayout.findViewById(R.id.progress_bar_fragment_order));
mListView.setOnItemClickListener(this);
mListView.setOnScrollListener(this);
mOrderAdapter = new OrderAdapter();
mListView.setAdapter(mOrderAdapter);
return mPullToRefreshLayout;
}
示例2: onCreateView
import uk.co.senab.actionbarpulltorefresh.library.PullToRefreshLayout; //导入方法依赖的package包/类
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
mPullToRefreshLayout = (PullToRefreshLayout) inflater.inflate(R.layout.fragment_node, container, false);
mListView = (ListView) mPullToRefreshLayout.findViewById(R.id.list_fragment_node);
mListView.setEmptyView(mPullToRefreshLayout.findViewById(R.id.progress_fragment_node));
mListView.setOnItemClickListener(this);
mAllNodesDataHelper = new AllNodesDataHelper(getActivity());
mNewestNodeDataHelper = new NewestNodeDataHelper(getActivity());
mNewestNodeAdapter = new NewestNodeAdapter(getActivity(), this);
mListView.setAdapter(mNewestNodeAdapter);
getLoaderManager().initLoader(0, null, this);
return mPullToRefreshLayout;
}
示例3: onCreateView
import uk.co.senab.actionbarpulltorefresh.library.PullToRefreshLayout; //导入方法依赖的package包/类
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
mPullToRefreshLayout = (PullToRefreshLayout) inflater.inflate(R.layout.fragment_user, container, false);
mListView = (ListView) mPullToRefreshLayout.findViewById(R.id.list_fragment_user);
mHeader = mPullToRefreshLayout.findViewById(R.id.header_fragment_user);
mHeaderLogo = (ImageView) mPullToRefreshLayout.findViewById(R.id.header_logo_fragment_user);
mName = (TextView) mPullToRefreshLayout.findViewById(R.id.txt_fragment_user_name);
mDescription = (TextView) mPullToRefreshLayout.findViewById(R.id.txt_fragment_user_description);
mPlaceHolderView = getActivity().getLayoutInflater().inflate(R.layout.view_header_placeholder, mListView, false);
mListView.addHeaderView(mPlaceHolderView, null, false);
mListView.setOnItemClickListener(this);
return mPullToRefreshLayout;
}
示例4: onCreateView
import uk.co.senab.actionbarpulltorefresh.library.PullToRefreshLayout; //导入方法依赖的package包/类
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
mPullToRefreshLayout = (PullToRefreshLayout) inflater.inflate(R.layout.fragment_topic, container, false);
mListView = (ListView) mPullToRefreshLayout.findViewById(R.id.list_fragment_topic);
mListView.setEmptyView(mPullToRefreshLayout.findViewById(R.id.progress_fragment_topic));
return mPullToRefreshLayout;
}
示例5: onCreateView
import uk.co.senab.actionbarpulltorefresh.library.PullToRefreshLayout; //导入方法依赖的package包/类
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
mPullToRefreshLayout = (PullToRefreshLayout) inflater.inflate(R.layout.fragment_notification, container, false);
mListView = (ListView) mPullToRefreshLayout.findViewById(R.id.list_fragment_notification);
mListView.setEmptyView(mPullToRefreshLayout.findViewById(R.id.txt_fragment_notification_empty));
mListView.setOnItemClickListener(this);
return mPullToRefreshLayout;
}
示例6: onCreateView
import uk.co.senab.actionbarpulltorefresh.library.PullToRefreshLayout; //导入方法依赖的package包/类
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
mPullToRefreshLayout = (PullToRefreshLayout) inflater.inflate(R.layout.fragment_node, container, false);
mListView = (ListView) mPullToRefreshLayout.findViewById(R.id.list_fragment_node);
mListView.setEmptyView(mPullToRefreshLayout.findViewById(R.id.progress_fragment_node));
mListView.setOnItemClickListener(this);
return mPullToRefreshLayout;
}
示例7: onCreateView
import uk.co.senab.actionbarpulltorefresh.library.PullToRefreshLayout; //导入方法依赖的package包/类
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container,
Bundle savedInstanceState) {
mPullToRefreshLayout = (PullToRefreshLayout) inflater.inflate(R.layout.fragment_items, container, false);
mListView = (ListView) mPullToRefreshLayout.findViewById(R.id.list_view_fragment_menu);
mListView.setEmptyView(mPullToRefreshLayout.findViewById(R.id.progress_bar_fragment_menu));
mListView.setOnItemClickListener(this);
View footer = getActivity().getLayoutInflater().inflate(R.layout.view_item_footer, null, false);
mListView.addFooterView(footer);
return mPullToRefreshLayout;
}
示例8: onCreateView
import uk.co.senab.actionbarpulltorefresh.library.PullToRefreshLayout; //导入方法依赖的package包/类
@Override
public
View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState)
{
super.onCreateView(inflater, container, savedInstanceState);
FeedsActivity activity = (FeedsActivity) getActivity();
PullToRefreshLayout layout = (PullToRefreshLayout) inflater.inflate(R.layout.viewpager, container, false);
// Find and configure the ViewPager.
s_viewPager = (ViewPager) layout.findViewById(R.id.viewpager);
s_viewPager.setOffscreenPageLimit(128);
s_viewPager.setOnPageChangeListener(new OnPageChangeListener());
// Create the Options object for the ActionBarPullToRefresh SetupWizard.
Options.Builder optionsBuilder = Options.create();
optionsBuilder.scrollDistance(PULL_DISTANCE);
Options options = optionsBuilder.build();
// Create the ActionBarPullToRefresh object using its SetupWizard.
ActionBarPullToRefresh.SetupWizard setup = ActionBarPullToRefresh.from(activity);
setup.allChildrenArePullable();
setup.options(options);
setup.useViewDelegate(ViewPager.class, new ViewPagerDelegate());
setup.listener(new RefreshListener(activity));
setup.setup(layout);
return layout;
}