Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

android ics fading edges don't work

Tags:

android

layout

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?

like image 377
Anthea Avatar asked Aug 05 '12 13:08

Anthea


2 Answers

"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"

http://developer.android.com/reference/android/R.attr.html#fadingEdge

like image 169
ffleandro Avatar answered Nov 11 '22 11:11

ffleandro


You can try some ideas from answer in my question post: Set textview fading in Android 4.0.3

However, it seems like the fading edge won't work on 4.x somehow. The reason why? I don't know.

like image 4
Pete Houston Avatar answered Nov 11 '22 09:11

Pete Houston