AccordionView.java 文件源码

java
阅读 22 收藏 0 点赞 0 评论 0

项目:Android_accordion_view 作者:
/***
 * 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();

}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号