Reset to default
Trending sort is based off of the default sorting method — by highest score — but it boosts votes that have happened recently, helping to surface more up-to-date answers.
It falls back to sorting by highest score if no posts are trending.
To complete M.Sandholtz answer, you can also define this in XML, with outlineProvider=”none”.
<View android:id="@+id/viewElevationNoShadow" android:outlineProvider="none" android:elevation="4dp" />
I just ran into this same problem and this is what fixed it for me:
val withElevationNoShadow = view.findViewById<*your view type*>(*your view id*) withElevationNoShadow.outlineProvider = null
Keep in mind that the code above is Kotlin, but the Java is almost identical.
This works because shadows are drawn by
ViewOutlineProviders. By setting your view’s
null, you take away the default shadow.
For more info about
ViewOutlineProviders check out