Android: support features don't appear in android L

醉酒当歌 提交于 2019-12-06 12:09:44

Make sure you're using com.android.support:recyclerview-v7:22.2.0

(With version prior to 22.2.0 it didn't work for me either)

Mneckoee

I solved RecyclerView issue. I searched a lot. I write my code in a fragment and for previewing them I used

fragmentTransaction.add(R.id.fragment_main,
                fragment);

so in lollipop my fragment went behind the previous fragment and didn't handle touches so now I use

fragmentTransaction.replace(R.id.fragment_main,
                    fragment);

Now recyclerView is scrolling.

For shadow I used card_view:cardUseCompatPadding="true" but didn't work because I set android:hardwareAccelerated in Manifest to false. Making it true solved the problem.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!