當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。