![](https://img-blog.csdnimg.cn/20201014180756754.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
android踩过的坑
小角儿儿
android 工程师
展开
-
Android问题一:You need to use a Theme.AppCompat theme (or descendant) with this activity.
activity 继承 AppCompatActivity 后设置默认titlebar不显示时会出现这样的错误。You need to use a Theme.AppCompat theme (or descendant) with this activity.原创 2016-05-19 08:35:56 · 178 阅读 · 0 评论 -
页面轮换,ViewFlipper 和 ViewPager 的区别
ViewFlipper继承ViewAnimator,切换view的时候是有动画效果的,适合做ppt,多界面的程序欢迎引导界面,算是个轻量级的组件,适合展示静态数据,少量数据。 ViewPager继承ViewGroup。和Fragment是好搭档,Fragment有自己的生命周期。也就是说ViewPager更适用复杂的视图切换,而且Viewpager有自己的adapter,这也让其适应复杂对象,实转载 2016-05-19 15:46:56 · 371 阅读 · 0 评论 -
android错误android.content.res.Resources$NotFoundException
错误:android.content.res.Resources$NotFoundException: String resource ID #0x1 public final void setText(@StringRes int resid) 原因:发生在参数 int resId 错误,把int值赋值给int类型的resId,所以编译器找不到正确的resource于是报错原创 2016-12-09 16:58:36 · 614 阅读 · 0 评论