Android的芯片衰落的边缘不工作 [英] android ics fading edges don't work

查看:110
本文介绍了Android的芯片衰落的边缘不工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

不知怎么衰落的边缘似乎没有为Android IC的工作(机器人4+)对自己的看法。如果我测试这个布局在一个较低的Andr​​oid版本也描绘了衰落的边缘,但不是在Android 4.1。

somehow fading edges seems not to work for android ics (android 4+) for own views. If I test this layout on a lower android version it paints the fading edge but not on android 4.1.

<FrameLayout
    android:layout_width="fill_parent" 
    android:layout_height="wrap_content"
    android:fadingEdge="vertical"
    android:focusableInTouchMode="true" <-- does not make any change
    android:focusable="true"           <--
/>

有没有什么解决方法吗?

Is there any workaround?

推荐答案

使用衰落的边缘可能会带来显着的性能下降,仅由应用程序的可视化设计要求时,应使用。请与API的14级及以上的衰落边缘,使用安卓requiresFadingEdge 属性,而不是

"Using fading edges may introduce noticeable performance degradations and should be used only when required by the application's visual design. To request fading edges with API level 14 and above, use the android:requiresFadingEdge attribute instead"

<一个href="http://developer.android.com/reference/android/R.attr.html#fadingEdge">http://developer.android.com/reference/android/R.attr.html#fadingEdge

这篇关于Android的芯片衰落的边缘不工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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