daimajia / AndroidViewHover

An elegant way to show your menu or messages.
3.21k stars 722 forks source link

Problem on LG G3 with android 5.0 #16

Closed arashmidos closed 9 years ago

arashmidos commented 9 years ago

I recently finished my app using AndroidViewHover which shows icons over a CardView. I test it on android 2.3, 4.0 and 4.4 and works fine. But one of my customer complaining that icons dont show up on LG G3 using android 5.0

Any idea?

arashmidos commented 9 years ago

I tried to simulate it on virtual device using android 5.0 and got the following result. It seems it related to elevation issues. My buttons are under the CardView.

:-?

demo

arashmidos commented 9 years ago

I changed the elevation and now it's working fine! :+1:

    <com.daimajia.androidviewhover.BlurLayout

        android:id="@+id/blur"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        >

        <android.support.v7.widget.CardView
            xmlns:card_view="http://schemas.android.com/apk/res-auto"
            android:id="@+id/cardView"
            android:layout_width="fill_parent"
            android:layout_height="wrap_content"
            android:layout_margin="8dp"
            card_view:cardCornerRadius="4dp"
            card_view:cardElevation="-2dp">