//获取新的布局参数
generateLayoutParams(AttributeSet attrs)
Returns a new set of layout parameters based on the supplied attributes set.
//设置和获取折叠之后的标题位置
getCollapsedTitleGravity();setCollapsedTitleGravity(int gravity)
//获取和设置折叠之后的背景
getContentScrim()
setContentScrim(Drawable drawable)
setContentScrimColor(int color)
setContentScrimResource(int resId)
//设置和获取展开的标题位置
setExpandedTitleGravity(int gravity)
getExpandedTitleGravity()
//获取和设置状态栏的颜色
getStatusBarScrim()
setStatusBarScrim(Drawable drawable)
setStatusBarScrimColor(int color)
setStatusBarScrimResource(int resId)
//设置和获取标题
setTitle(CharSequence title)
getTitle()
//获取和设置标题文字是否显示
isTitleEnabled()
setTitleEnabled(boolean enabled)
//设置折叠之后的标题文字外观
setCollapsedTitleTextAppearance(int resId)
//设置折叠之后的标题文字颜色
setCollapsedTitleTextColor(int color)
//设置展开的标题文字颜色
setExpandedTitleColor(int color)
//设置展开的标题文字外观
setExpandedTitleTextAppearance(int resId)
网友评论