关于低版本design:23.0.0 会出现滑动的时候出现getX()出现为null问题
来源:互联网 发布:重庆时时彩遗漏数据 编辑:程序博客网 时间:2024/05/13 04:20
如果使用23.0.0滑动会出现null问题
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:id="@+id/main_content"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@android:color/white"
android:orientation="vertical"
>
<android.support.design.widget.CoordinatorLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@color/colorPrimary"
>
<android.support.design.widget.AppBarLayout
android:id="@+id/appBarLayout"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:theme="@style/ThemeOverlay.AppCompat.Dark.ActionBar">
<android.support.design.widget.CollapsingToolbarLayout
android:background="@color/colorPrimary"
android:id="@+id/collapse_toolbar"
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:contentScrim="@color/colorPrimary"
app:layout_scrollFlags="scroll|exitUntilCollapsed">
<!--头布局-->
<include layout="@layout/activity_main2"/>
<android.support.v7.widget.Toolbar
android:id="@+id/toolbar"
android:layout_width="match_parent"
android:layout_height="?attr/actionBarSize"
android:minHeight="?attr/actionBarSize"
app:layout_collapseMode="pin"
android:background="@color/colorPrimary"
app:popupTheme="@style/ThemeOverlay.AppCompat.Light"
app:titleMarginTop="1dp" >
<include layout="@layout/titile" />
</android.support.v7.widget.Toolbar>
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="bottom"
app:layout_scrollFlags="scroll|exitUntilCollapsed"
>
<TextView
android:layout_width="match_parent"
android:layout_height="60dp"
android:background="@color/green"
android:text="我在底部按住我滑动啊"
/>
</RelativeLayout>
<!-- <android.support.design.widget.TabLayout
android:id="@+id/tab_layout"
android:layout_width="match_parent"
android:layout_height="@dimen/y100"
android:layout_gravity="bottom"
android:background="@color/white"
app:tabIndicatorColor="@color/title_blue"
app:tabSelectedTextColor="@color/title_blue"
app:tabTextColor="@color/title_blue" />-->
</android.support.design.widget.CollapsingToolbarLayout>
</android.support.design.widget.AppBarLayout>
<android.support.v4.widget.SwipeRefreshLayout
android:id="@+id/swipe_container"
android:layout_width="match_parent"
android:layout_height="match_parent"
app:layout_behavior="@string/appbar_scrolling_view_behavior"
>
<android.support.v4.widget.NestedScrollView
android:layout_width="match_parent"
android:layout_height="match_parent"
app:layout_behavior="@string/appbar_scrolling_view_behavior"
>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@color/gray"
>
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:id="@+id/ll_out"
/>
</LinearLayout>
</android.support.v4.widget.NestedScrollView>
</android.support.v4.widget.SwipeRefreshLayout>
</android.support.design.widget.CoordinatorLayout>
</LinearLayout>
解决方案
使用更高版本
compile 'com.android.support:design:25.1.1'
- 关于低版本design:23.0.0 会出现滑动的时候出现getX()出现为null问题
- post表单提交后,后台获取数据为null 大量数据的时候会出现这个问题
- 切换api到低版本时滑动listview出现特效异常的问题
- NSString 转NSURL的时候会出现NSURL为空
- 关于IE8及更低版本使用innerHTML出现的问题
- 低版本jdk可能出现的泛型问题
- 关于NDoc在生成帮助文档的时候会出现的一些问题
- 在hadoop启动的时候,会出现各种各样的问题
- 在hadoop启动的时候,会出现各种各样的问题
- 在hadoop启动的时候,会出现各种各样的问题
- 在hadoop启动的时候,会出现各种各样的问题
- 关于Python升级版本出现的问题
- 安装.net framework 4.0的时候有可能会出现错误码为0x80000222的错误
- 关于android 的org.json类JsonObject解析值为null的出现的问题
- 加载模块的时候出现版本不匹配的问题
- 关于overridePendingTransition效果在1.6版本中会出现VerifyError的问题的解决
- 关于overridePendingTransition效果在1.6版本中会出现VerifyError的问题的解决
- 滑动ListView,头部在低版本手机上出现闪烁,甚至大面积变成灰色的解决方案。
- 微信Tinker热修复集成
- springmvc校验注解
- Android自定义控件几个重要步骤
- 为什么不使用默认的980px的布局Viewport
- BZOJ 1492 [NOI2007 D1T2] 货币兑换Cash
- 关于低版本design:23.0.0 会出现滑动的时候出现getX()出现为null问题
- 基于DragonBoard 410c的遥控炮台三之远程交互(上)
- mysqldump数据备份
- js在控制台中调试的一些函数
- 播放器音视频同步及网络抖动解决方案
- AAADDCC编码3A2D2D
- Verilog系统任务和函数(Tasks and Functions)
- iOS 键盘遮挡处理办法(不用键盘高度计算)
- 亚稳态与多时钟切换