I know that it LinearLayoutCompatwas implemented to give us several new methods that were added at higher levels of android to lower levels of android.
My problem is this method:
linearLayout.setPaddingRelative
What was added in API 17, but we must use it in a lower API using the following code:
linearLayoutCompat.setPaddingRelative
But my Android Studio still shows the following error.
Call requires API level 17 (current min is 15): android.view.View
So what is the difference between LinearLayoutand LinearLayoutCompat?
source
share