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

assembly - What is the addressing mode for ld, add, and rjmp instructions? -

vowpalwabbit - Interpreting Vowpal Wabbit results: Why are some lines appended by "h"? -

ubuntu - Bash Script to Check That Files Are Being Created -