Viewpager片段不功能运行 [英] Viewpager fragment doesn't running functionally

查看:177
本文介绍了Viewpager片段不功能运行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我现在想实现viewpager与片段。一切都很酷,除非我得到错误的 ViewPager一直没有约束。 异常详细信息记录在窗口>显示视图>错误日志在XML图形布局。

I am now trying to implement viewpager with fragment. Everything is cool except i got error ViewPager has not been bound. Exception details are logged in Window > Show View > Error Log in xml graphical layout.

这是我的应用程序的屏幕截图。

And Here's a screenshot of my application.

有谁知道为什么没有显示低于标题指示线?

Does anyone know why there is not showing indicator line below title ?

推荐答案

我参照这个做这个项目: https://github.com/JakeWharton/Android-ViewPagerIndicator 。 穿过该样本项目。这将真正帮助你解决你的问题。

I did this project by referring this: https://github.com/JakeWharton/Android-ViewPagerIndicator. Go through that sample project. It will really helps you to solve your problem.

这篇关于Viewpager片段不功能运行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆