Here all the ProfileBar and Toolbar public fields and methods are described
photo: Drawable?
- photo image drawablewallpaper: Drawable?
- wallpaper image drawabletitle: String?
- larger text in the viewsubtitle: String?
- smaller text in the view
value: Type = DEFAULT
here means that value
of type Type
has a default value equal to DEFAULT
-
titleSize: Int = 20sp
- title text size in sp -
subtitleSize: Int = 12sp
- subtitle text size in sp -
fontColor: Int = 0xFFFFFF
- title and subtitle text color -
tabsEnabled: Boolean = true
- displays whetherprofileBar
needs to hook uptabPager
-
tabsIndicatorColor: Int = 0xFFFFFF
- color of the tab selection indicator below the title -
tabsSelectedColor: Int = 0xFFFFFF
- color of the selected tab's title -
tabsUnselectedColor: Int = 0x99FFFFFF
color of the unselected tab's title -
photoFrameDrawable: Drawable = DEFAULT_FRAME_DRAWABLE
- drawable the layer below the profile photo -
photoFrameColor: Int = 0xCCFFFFFF
- photo frame color -
dimDrawable: Drawable = DEFAULT_DIM_DRAWABLE
- semi-transparent rectangular view that occupies half ofprofileBar
-
bottomGlowDrawable: Drawable = DEFAULT_BOTTOM_GLOW
- glowing strip on the border betweentabPager
andprofileBar
setupWithViewPager(ViewPager)
- link upprofileBar
and the ViewPager in the arguments`
- To set a listener to an option button, navigate to
profileBar.optionWindow.NEEDED_BUTTON.setOnClick...
fragments: List<TabFragments>
- the list of TabFragments to be displayed
access TabAdapter this way: tabPager.adapter
setPageTitle(Int, String)
- sets the String value to the title of the fragment with index IntgetPageTitle(Int)
- gets the String value to the title of the fragment with index IntaddTab(TabFragment)
- adds a TabFragmentremoveTab(TabFragment)
- removes a TabFragment