android - What is LinearLayoutCompat in appCompat v7? -



android - What is LinearLayoutCompat in appCompat v7? -

in back upwards library appcompat v7 of android platform, there android.support.v7.widget.linearlayoutcompat class.

does know why class exist? original linearlayout class exist since api level 1 don't understand why there compat version.

the class linearlayout exists since api level 1, apis added after that, example, setshowdividers introduced on api level 11.

so in case setshowdividers (and it's parameters) should invoked using linearlayoutcompat instead linearlayout if targeting platform api level below 11.

android android-compatibility

Comments

Popular posts from this blog

c - Compilation of a code: unkown type name string -

java - Bypassing "final local variable defined in an enclosing type" -

json - Hibernate and Jackson (java.lang.IllegalStateException: Cannot call sendError() after the response has been committed) -