本文整理了Java中android.support.v4.widget.SwipeRefreshLayout.findViewById()
方法的一些代码示例,展示了SwipeRefreshLayout.findViewById()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。SwipeRefreshLayout.findViewById()
方法的具体详情如下:
包路径:android.support.v4.widget.SwipeRefreshLayout
类名称:SwipeRefreshLayout
方法名:findViewById
暂无
代码示例来源:origin: boredream/DesignResCollection
private void initView() {
srl.setColorSchemeColors(activity.getResources().getColor(R.color.colorPrimary));
rv = (RecyclerView) srl.findViewById(R.id.rv);
LinearLayoutManager layoutManager = new LinearLayoutManager(
activity, StaggeredGridLayoutManager.VERTICAL, false);
rv.setLayoutManager(layoutManager);
itemDecoration = new DividerItemDecoration(activity);
rv.addItemDecoration(itemDecoration);
}
代码示例来源:origin: xujianhui404/livewallpaper
private void initRecyclerView() {
swipeRefreshLayout = (SwipeRefreshLayout)(LayoutInflater.from(getContext()).inflate(R.layout.pull_refresh_recycler_layout, this, true).findViewById(R.id.SwipeRefreshLayout));
recyclerView = (RecyclerView) swipeRefreshLayout.findViewById(R.id.recycler_view);
swipeRefreshLayout.setOnRefreshListener(this);
recyclerView.addOnScrollListener(new RecyclerScrollerListener());
}
代码示例来源:origin: w568w/fuckView
SwipeRefreshLayout layout = (SwipeRefreshLayout) inflater.inflate(R.layout.online_rules_fragment, null);
mInfo = (TextView) layout.findViewById(R.id.online_rules_info);
mDownload = (Button) layout.findViewById(R.id.online_rules_download);
mProgressBar = (ProgressBar) layout.findViewById(R.id.online_rules_progressBar);
mLayout = layout;
mDownload.setEnabled(false);
mLayout.findViewById(R.id.online_rules_rl).setOnTouchListener(new View.OnTouchListener() {
@Override
public boolean onTouch(View v, MotionEvent event) {
代码示例来源:origin: openmrs/openmrs-contrib-android-client
@Override
public void showOpenPatientSnackbar(final Long patientId) {
FrameLayout frameLayout = (FrameLayout) mSwipeRefreshLayout.findViewById(R.id.swipe_container);
Snackbar snackbar = Snackbar.make(frameLayout, getResources().getString(R.string.snackbar_info_patient_downloaded), Snackbar.LENGTH_LONG);
snackbar.setActionTextColor(Color.WHITE);
View sbView = snackbar.getView();
TextView textView = (TextView) sbView.findViewById(android.support.design.R.id.snackbar_text);
textView.setTextColor(Color.WHITE);
snackbar.setAction(getResources().getString(R.string.snackbar_action_open), new View.OnClickListener() {
@Override
public void onClick(View v) {
openPatientDashboardActivity(patientId);
}
});
snackbar.show();
}
内容来源于网络,如有侵权,请联系作者删除!