Open cgokul-com opened 4 years ago
So I have typed the same line inside RelativeLayout and ..MaterialButton
The code below is a param of RelativeLayout which is the parent layout for material button.Where as it is not a param for LinearLayout which is the parent layout for Relativelayout.
android:layout_alignParentEnd="true" android:layout_alignParentRight="true"
I hope this gives you some understanding.
Noob Alert:
android:layout_alignParentEnd="true"
android:layout_alignParentRight="true"
When adding this code to the MaterialButton, i get the following.
Not sure what I'm doing wrong here. Ofcourse, I'm able to see the output properly. But I want to understand what is obsolete here. Is it a mistake from my side?