本文整理匯總了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);
}
示例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);
}
示例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;
}
示例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;
}