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


Java SwipeRefreshLayout.findViewById方法代码示例

本文整理汇总了Java中android.support.v4.widget.SwipeRefreshLayout.findViewById方法的典型用法代码示例。如果您正苦于以下问题:Java SwipeRefreshLayout.findViewById方法的具体用法?Java SwipeRefreshLayout.findViewById怎么用?Java SwipeRefreshLayout.findViewById使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在android.support.v4.widget.SwipeRefreshLayout的用法示例。


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

示例1: inflateUI

import android.support.v4.widget.SwipeRefreshLayout; //导入方法依赖的package包/类
private void inflateUI() {
    setLayoutParams(new LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT,
            ViewGroup.LayoutParams.MATCH_PARENT));

    LayoutInflater inflater = (LayoutInflater)
            getContext().getSystemService(Context.LAYOUT_INFLATER_SERVICE);

    View view = inflater.inflate(
            R.layout.paginated_recycler, this, true);

    mSwipeRefreshLayout = (SwipeRefreshLayout) view.findViewById(R.id.swipe_container);
    mRecyclerView = (RecyclerView) view.findViewById(R.id.list);
    mProgressBar = (ProgressBar) view.findViewById(R.id.progress_bar);
    mEmptyView = (SwipeRefreshLayout) view.findViewById(R.id.empty_view);
    mEmptyViewTextView = (TextView) mEmptyView.findViewById(R.id.no_data_message);
}
 
开发者ID:ilagarwal,项目名称:AndroidUIExtentions,代码行数:17,代码来源:UCPaginatedList.java

示例2: inflateUI

import android.support.v4.widget.SwipeRefreshLayout; //导入方法依赖的package包/类
private void inflateUI() {
    setLayoutParams(new LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT,
            ViewGroup.LayoutParams.MATCH_PARENT));

    LayoutInflater inflater = (LayoutInflater)
            mContext.getSystemService(Context.LAYOUT_INFLATER_SERVICE);

    View view = inflater.inflate(R.layout.paginated_recycler, this, true);

    mSwipeRefreshLayout = (SwipeRefreshLayout) view.findViewById(R.id.swipe_container);
    mRecyclerView = (RecyclerView) view.findViewById(R.id.list);
    mProgressBar = (ProgressBar) view.findViewById(R.id.progress_bar);
    mEmptyView = (SwipeRefreshLayout) view.findViewById(R.id.empty_view);
    mEmptyViewTextView = (TextView) mEmptyView.findViewById(R.id.no_data_message);
}
 
开发者ID:ilagarwal,项目名称:AndroidUIExtentions,代码行数:16,代码来源:UCPaginatedList.java

示例3: onCreateView

import android.support.v4.widget.SwipeRefreshLayout; //导入方法依赖的package包/类
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container,Bundle savedInstanceState) {
    View view = inflater.inflate(R.layout.frag_0_tab_1, container, false);
    psrl= (SwipeRefreshLayout) view.findViewById(R.id.psrl);
    ll=(LinearLayout)psrl.findViewById(R.id.pll);
    mSyncTask mst=new mSyncTask();
    mst.execute();
    return view;
}
 
开发者ID:GlugMVIT,项目名称:GLUG_MVIT_APP,代码行数:10,代码来源:Tab_fragment_1.java

示例4: onCreateView

import android.support.v4.widget.SwipeRefreshLayout; //导入方法依赖的package包/类
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container,Bundle savedInstanceState) {
    li=inflater;
    View view = inflater.inflate(R.layout.frag_0_tab_0,container, false);
    first=true;
    srl=(SwipeRefreshLayout)view.findViewById(R.id.srl_t0);
    ll=(LinearLayout)srl.findViewById(R.id.f0t0ll);
    srl.setOnRefreshListener(new SwipeRefreshLayout.OnRefreshListener() {
        @Override
        public void onRefresh() {
            refresh();
        }
    });
    return view;
}
 
开发者ID:GlugMVIT,项目名称:GLUG_MVIT_APP,代码行数:16,代码来源:Tab_fragment_0.java


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