草庐IT

non-scrolling

全部标签

安卓 : How to avoid header from scrolling in listview , 安卓?

我有一个ListView,我在其中将标题View添加到该列表。一切都很好,但是当滚动列表headerview也随着列表移动时,所以我想避免headerview滚动,我的意思是当我列表到达顶View(标题栏)时我必须只滚动列表,headerview必须保持在标题栏的底部。有人可以为此提供解决方案吗? 最佳答案 使用以下布局代替标题:-->Yourheaderlayouthere需要注意的重要事项:ListView的id必须是@android:id/list才能使用ListActivity使用0高度并将权重设置为1

安卓开发 : Improve EditText Scrolling?

有什么方法可以增加我的EditText的滚动吗?我想让它像在Web浏览器上那样滚动,流畅且快速。这可能吗?谢谢,亚历克斯。 最佳答案 Webview使用平滑滚动。ScrollView也有这个属性。在ScrollView中添加TextView。为ScrollView创建一个ID并在您的代码中创建引用。将EditText放置在此ScrollView中(使editText包装内容)。使用以下方法启用平滑滚动,publicvoidsetSmoothScrollingEnabled(booleansmoothScrollingEnabled)

android - 在 Scroll Flutter 上隐藏 Appbar?

考虑这张图片。如您所见,它有一个应用栏,而应用栏有选项卡式按钮。我正在尝试为appbar设置动画,以便它在向上滚动时隐藏并只留下选项卡按钮显示,并且在向上滚动时appbar出现。请帮帮我。抱歉英语不好,不是美国人,我也不是英语 最佳答案 如果我理解正确,以下代码应该使应用栏在滚动时隐藏,而TabBar保持可见:空安全码:class_SomePageStateextendsStatewithSingleTickerProviderStateMixin{latefinalTabController_tabController;@over

android - 在 Scroll Flutter 上隐藏 Appbar?

考虑这张图片。如您所见,它有一个应用栏,而应用栏有选项卡式按钮。我正在尝试为appbar设置动画,以便它在向上滚动时隐藏并只留下选项卡按钮显示,并且在向上滚动时appbar出现。请帮帮我。抱歉英语不好,不是美国人,我也不是英语 最佳答案 如果我理解正确,以下代码应该使应用栏在滚动时隐藏,而TabBar保持可见:空安全码:class_SomePageStateextendsStatewithSingleTickerProviderStateMixin{latefinalTabController_tabController;@over

android - Material 设计 list : hiding app bar on scroll?

根据新的AndroidMaterialDesignlist:http://android-developers.blogspot.com/2014/10/material-design-on-android-checklist.htmlWhereappropriate,uponscrollingdown,theappbarcanscrolloffthescreen,leavingmoreverticalspaceforcontent.Uponscrollingbackup,theappbarshouldbeshownagain.我知道有很多问题/答案可以为ICS样式的应用栏实现此行为,

android - Gradle 不会将 gdbserver 打包成 apk。 ndk-gdb 结果为 "ERROR: Non-debuggable application installed on the target device"

在AndroidStudio0.6中,我创建了一个android测试项目,其中包含一个用JNI封装的非常简单的C函数。我在AndroidManifest.xml中设置了android:debuggable="true"。我运行了ndk-buildNDK_DEBUG=1。这会在正确的位置生成一个gdbserver和一个gdb.setup文件。但是,当我在AndroidStudio中构建项目并运行ndk-gdb--debug时,我得到了以下输出:AndroidNDKinstallationpath:/usr/local/android-ndk-r9dUsingdefaultadbcomma

安卓工作室 : Unexpected top level exception (finished with non-zero exit value 2. 。)

当我尝试调试我的Android应用程序时,我收到以下错误消息:Error:Executionfailedfortask':app:transformClassesWithDexForDebug'.com.android.build.transform.api.TransformException:com.android.ide.common.process.ProcessException:org.gradle.process.internal.ExecException:Process'command'/Library/Java/JavaVirtualMachines/jdk1.8.

android - 如何在不出现 "cannot make a static reference to the non static method"编译器错误的情况下使用 runOnUiThread

我有一个主类;ClientPlayerextendsActivity{和服务LotteryServerextendsServiceimplementsRunnable{尝试在此服务的运行方法中使用RunOnUiThread时出现编译器错误,“无法对非静态方法进行静态引用”如何解决这个问题?这里显示了我如何使用代码;@Overridepublicvoidrun(){//ItriedbothClientPlayer.runOnUiThreadandLotteryServer.runOnUiThread//bothdon'tworkClientPlayer.runOnUiThread(new

android: AbsListView.OnScrollListener SCROLL_STATE_IDLE 在 SCROLL_STATE_TOUCH_SCROLL 之后不被调用(版本 2.1)

我的android版本2.1有问题。它看起来像一个错误。我将OnScrollListener附加到我的listView。我正在使用方法onScrollStateChanged(AbsListViewview,intscrollState)来监视我的ListView的滚动状态。滚动状态可以取3个值(取自文档):SCROLL_STATE_FLING:用户有以前一直在滚动使用触摸并进行了猛烈攻击。这动画正在滑行停止SCROLL_STATE_IDLE:View不是滚动。注意导航列表使用轨迹球算作在空闲状态,因为这些过渡不是动画。SCROLL_STATE_TOUCH_SCROLL:用户正在使用触

dart - PageView : Disable the default scrolling and replace it with Tap event

如果我有PageView,如何禁用默认滚动行为(滑动)并通过点击按钮将下一个项目滚动到View中? 最佳答案 要禁用滑动,您可以设置:PageView(physics:NeverScrollableScrollPhysics()) 关于dart-PageView:DisablethedefaultscrollingandreplaceitwithTapevent,我们在StackOverflow上找到一个类似的问题: https://stackoverflow