/***
* This function is used to prepare the layout after the initialize funciton but is called when the developer PROGRAMATICALLY adds
* the accordion from the class. Hence, the accordion does not have the UI elements (children) yet
* @param context
*/
private void prepareLayoutWithoutChildren(Context context) {
initializeViewWithoutChildren(context);
partition.setVisibility(isPartitioned ? VISIBLE : INVISIBLE);
heading.setText(headingString);
paragraph.setVisibility(VISIBLE);
//paragraph.getViewTreeObserver().addOnGlobalLayoutListener(globalLayoutListener);
if (isAnimated) {
headingLayout.setLayoutTransition(new LayoutTransition());
} else {
headingLayout.setLayoutTransition(null);
}
if (isExpanded)
expand();
else
collapse();
setOnClickListenerOnHeading();
}
AccordionView.java 文件源码
java
阅读 22
收藏 0
点赞 0
评论 0
项目:Android_accordion_view
作者:
评论列表
文章目录