android studio 模拟器 横屏切换,Android Studio:在模拟器上测试时,水平滚动视图会冻结...

博主在测试应用程序时遇到滚动视图在模拟器上冻结的问题,但该问题在实际Android设备(三星Galaxy S4 mini, Android 4.4.2)上表现正常。问题可能与模拟器的内存限制有关。提供的代码片段显示了滚动视图的布局配置。解决方案是检查模拟器设置或考虑在真实设备上进行更多测试。
摘要由CSDN通过智能技术生成

当我在模拟器上测试应用程序(具有“水平滚动视图”)时,滚动部分冻结在中间.有时,当我以其他方式滚动时,滚动会冻结.该应用程序不会冻结,因为后退按钮有效.这会冻结在实际的Android设备上,还是仅仅是我的模拟器做出反应?

这是我的滚动活动代码:

xmlns:tools="http://schemas.android.com/tools"

android:layout_width="match_parent"

android:layout_height="match_parent"

android:paddingLeft="@dimen/activity_horizontal_margin"

android:paddingRight="@dimen/activity_horizontal_margin"

android:paddingTop="@dimen/activity_vertical_margin"

android:paddingBottom="@dimen/activity_vertical_margin"

tools:context="namee.com.myapp.School"

android:background="#000000">

android:layout_width="fill_parent"

android:layout_height="wrap_content"

android:fadingEdgeLength="20dp"

android:background="#000000">

android:layout_width="wrap_content"

android:layout_height="wrap_content"

android:background="#000000">

这是日落3

解决方法:

我在Android设备(三星Galaxy S4 mini,Android 4.4.2)上进行了尝试,并且工作正常.模拟器可能存在一些问题(例如内存限制过低).

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值