-2

i got this error when i tried to implement Circular Reveal Effect.
Does anyone have an idea?

private void ChooseFile() {

    int cx = (mRevealView.getLeft() + mRevealView.getRight());
        int cy = (mRevealView.getTop() + mRevealView.getBottom())/2;
   // int cy = mRevealView.getTop();

    int radius = Math.max(mRevealView.getWidth(), mRevealView.getHeight());
Phantômaxx
  • 37,901
  • 21
  • 84
  • 115
UsSf DeEm
  • 1
  • 2

1 Answers1

0

mRevealView does not exist. Make sure you set mRevealView to have a value

techfly
  • 1,826
  • 3
  • 25
  • 31
  • thank you for help, i already set mRevealView in activity_chat and call it in ChatActivity – UsSf DeEm Jun 25 '17 at 09:52
  • the probleme is in getLeft the parameters of animation reveal – UsSf DeEm Jun 25 '17 at 09:55
  • You set `mRevealView` in another activity but in the current class it is not set. If you want to use the same instance, you need to pass it as a parameter to your current class/activity – techfly Jun 25 '17 at 14:16
  • thank you for your time bro :) i resolved it by puting compile ('com.github.ozodrukh:CircularReveal:1.1.1@aar') { transitive = true; } instead of : compile ('com.github.ozodrukh:CircularReveal:1.1.0') – UsSf DeEm Jun 25 '17 at 14:59