I tried many custom drawing and I don\'t have idea about this design.Anyone help me out to do this design on drawable or any other way.
You can setVisibility(View.VISIBLE) when you checks the credentials on the exception of your try catch, assuming that you're doing the check that way. And if isn't an error you just let the objecet as (View.GONE) or (View.INVISIBLE)