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?
"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
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With