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


Java PullToRefreshLayout.findViewById方法代码示例

本文整理汇总了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;
}
 
开发者ID:hoyin258,项目名称:MisterWok,代码行数:17,代码来源:OrderListFragment.java

示例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;
}
 
开发者ID:kyze8439690,项目名称:v2ex-daily-android,代码行数:14,代码来源:NewestNodeFragment.java

示例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;
}
 
开发者ID:kyze8439690,项目名称:v2ex-daily-android,代码行数:14,代码来源:UserFragment.java

示例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;
}
 
开发者ID:kyze8439690,项目名称:v2ex-daily-android,代码行数:8,代码来源:TopicFragment.java

示例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;
}
 
开发者ID:kyze8439690,项目名称:v2ex-daily-android,代码行数:9,代码来源:NotificationFragment.java

示例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;
}
 
开发者ID:kyze8439690,项目名称:v2ex-daily-android,代码行数:9,代码来源:NodeFragment.java

示例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;
}
 
开发者ID:hoyin258,项目名称:MisterWok,代码行数:14,代码来源:FoodListFragment.java

示例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;
}
 
开发者ID:DarkangelKid,项目名称:rss,代码行数:30,代码来源:FragmentFeeds.java


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