SideListHelper.java 文件源码

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

项目:vuze-remote-for-android 作者:
@TargetApi(Build.VERSION_CODES.HONEYCOMB)
private void initHoneyComb() {
    if (!isInDrawer()) {
        parentView.addOnLayoutChangeListener(new View.OnLayoutChangeListener()

        {
            int lastWidth = -1;

            @Override
            public void onLayoutChange(View v, int left, int top, int right,
                    int bottom, int oldLeft, int oldTop, int oldRight, int oldBottom) {
                int width = right - left;
                if (width != lastWidth) {
                    lastWidth = width;
                    expandSideListWidth(sidelistInFocus);
                }
            }
        });
    }

    LayoutTransition layoutTransition = new LayoutTransition();
    layoutTransition.setDuration(400);
    sideListArea.setLayoutTransition(layoutTransition);
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号