Unknown attribute android:layout_width, layout_height, id, gravity, layout_gravity, padding
Just go to Tools->Android->Sync Project with Gradle Files
Just go to Tools->Android->Sync Project with Gradle Files
You can access any LayoutParams from code using View.getLayoutParams. You just have to be very aware of what LayoutParams your accessing. This is normally achieved by checking the containing ViewGroup if it has a LayoutParams inner child then that’s the one you should use. In your case it’s RelativeLayout.LayoutParams. You’ll be using RelativeLayout.LayoutParams#addRule(int verb) and … Read more