This is a duplicate of: Adding a drawableLeft to an EditText shifts the hint towards right, if edittext is inside TextInputlayout
i have followed the accepted answer, it is working fine in the debug mode whereas in the release mode with proguard enabled hint text is shifted towards right.
-keep class com.google.android.material.** {*;}
i added this and it started working as expected