I'm trying to make application. If the button on page 1 is clicked the page goes to page 2 by sliding the page 1 and the background is not sliding too.
I've tried android:detachWallpaper="true"
but its not working, it still moves the background.
I also have tried using FrameLayout and fragment but there's error when its trying to show messagebox and accessing another class.
the error log:
Unable to start activity ComponentInfo{com.example.myfirstapp/com.example.fragment.MainFragment}: java.lang.NullPointerException
Does anyone knows the best solution?
this totally depends upon your UI implementation there is no default guidelines for the same, below are the possible implementation scenarios through which this can be easily achieved.