ReplaceLayout-交替布局

2016-09-02  本文已影响0人  AlexMofer

ReplaceLayout

ICON

交替布局,配合TabStrip使用,达到伴随ViewPager动作而进行改变的效果,继承自FrameLayout,通过设置ReplaceAdapter来完成管理子项View的变化,并通过move(int, int, float)方法和moveTo(int)方法达到变化的效果。

预览

Screenshots

要求

链接

使用

<am.widget.replacelayout.ReplaceLayout
    android:layout_width="wrap_content"
    android:layout_height="wrap_content" />
replaceLayout = (ReplaceLayout) findViewById(id);
replaceLayout.setAdapter(adapter);
replaceLayout.moveTo(correct);
replaceLayout.move(correct, next, offset);

注意

上一篇 下一篇

猜你喜欢

热点阅读