daimajia / AndroidViewHover

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

Use the library in a fragment #24

Closed HerczegDaniel closed 8 years ago

HerczegDaniel commented 8 years ago

Hello, I'm beginner in Android Development, I can use perfect your library in a simple activity, but a want to use it in a fragment. I attached the fragment .java file. I get java null pointer exception when start the fragment. I try a lot a thing but I can't do it.

I attached the hover xml and one another xml what i use in the fragment.

PicturesFragment.txt hover_sample.txt fragment_pictures.txt

HerczegDaniel commented 8 years ago

I can solve it.

Accidentaly I write the id in layout android:id="@+id/blur_layout4" and in java files I find mSampleLayout = (BlurLayout)view.findViewById(R.id.blur_layout);

Sorry for the mistake, and thank you for this lib.