本文整理汇总了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;
}