I found crash in crashlog of "NullPointerException: Attempt to invoke virtual method 'void android.view.View.getBoundsOnScreen(android.graphics.Rect)' on a null object reference" and I verified some stackoverflow suggestions for this crash. I found below link suggest to use hint in TextInputLayout instead of TextInputEditText, so I want to know what makes it different?
Below link suggests to use hint in TextInputLayout: SO Google shows to use hint in TextInputEditText: Google_Recommendation
I tried hint in both place of TextInputLayout and TextInputEditText. Hint worked well in both place similarly.
I would like to know what is the difference between both method and which one is more appropriate to use.