cymcsg / UltimateRecyclerView

A RecyclerView(advanced and flexible version of ListView in Android) with refreshing,loading more,animation and many other features.
Apache License 2.0
7.22k stars 1.43k forks source link

Using this lib with CardView: Background color problem #11

Closed Rainer-Lang closed 9 years ago

Rainer-Lang commented 9 years ago

I'm using this lib with CardView - and I can't set the background color of the view. Not the background of the cards!

cymcsg commented 9 years ago

Could you show more of your code about the problem?

Rainer-Lang commented 9 years ago
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout
    xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    xmlns:fab="http://schemas.android.com/apk/res-auto"
    android:layout_height="match_parent"
    android:layout_width="match_parent"
    android:background="@color/grey_dedede">

    <com.marshalchen.ultimaterecyclerview.UltimateRecyclerView
        android:id="@+id/rvCardRecyclerView"
        android:layout_height="match_parent"
        android:layout_width="match_parent"
        app:recyclerviewClipToPadding="true"
        app:recyclerviewPadding="2dp"
        app:recyclerviewEmptyView="@layout/empty_view">
    </com.marshalchen.ultimaterecyclerview.UltimateRecyclerView>
...

Do you need anything else?

cymcsg commented 9 years ago

It's a good idea to show more of your code especially the code about adapter. I do not know how you use the CardView.

Rainer-Lang commented 9 years ago

Nothing special. I switched from normal RecyclerView with CardView (all was working!) to UltimateRecyclerView. And then my background color was gone...

Rainer-Lang commented 9 years ago

fixed - thanks.

CodingHornet commented 7 years ago

@Rainer-Lang Hi, How did you fixed ?

Rainer-Lang commented 7 years ago

@CodingHornet I sitched to the really awesome FastAdapter of @mikepenz Have a look. @mikepenz has great other libs too, like MaterialDrawer or AboutLibraries or Android-Iconics ....