DecorView
@Target([AnnotationTarget.CLASS, AnnotationTarget.FILE]) @Inherited class DecorView
androidx.viewpager.widget.ViewPager.DecorView |
Annotation which allows marking of views to be decoration views when added to a view pager.
Views marked with this annotation can be added to the view pager with a layout resource. An example being PagerTitleStrip
.
You can also control whether a view is a decor view but setting LayoutParams#isDecor
on the child's layout params.
Summary
Public constructors | |
---|---|
<init>() Annotation which allows marking of views to be decoration views when added to a view pager. |
Public constructors
<init>
DecorView()
Annotation which allows marking of views to be decoration views when added to a view pager.
Views marked with this annotation can be added to the view pager with a layout resource. An example being PagerTitleStrip
.
You can also control whether a view is a decor view but setting LayoutParams#isDecor
on the child's layout params.