material-components/material-components-android-codelabs

MDC-101>Step 4> Issue id: ObsoleteLayoutParam

cgokul-com opened this issue · 1 comments

Noob Alert:
android:layout_alignParentEnd="true"
android:layout_alignParentRight="true"

When adding this code to the MaterialButton, i get the following.
Screenshot 2020-01-28 at 12 56 39 AM

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?

image
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.