Java Code Examples for com.nineoldandroids.view.ViewHelper.getAlpha()

The following are Jave code examples for showing how to use getAlpha() of the com.nineoldandroids.view.ViewHelper class. You can vote up the examples you like. Your votes will be used in our system to get more good examples.
+ Save this method
Example 1
Project: TestChat   File: MainActivity.java   View Source Code Vote up 5 votes
@Override
    public void onCloseMenu() {
//                当侧滑完全关闭的时候调用
        if (ViewHelper.getAlpha(bg) != 0) {
            ViewHelper.setAlpha(bg, 0);
        }
        if (ViewHelper.getAlpha(icon_1) != 1) {
            ViewHelper.setAlpha(icon_1, 1);
        }
    }
 
Example 2
Project: TestChat   File: MainActivity.java   View Source Code Vote up 5 votes
@Override
public void onOpenMenu() {
    if (ViewHelper.getAlpha(bg) != 1) {
        ViewHelper.setAlpha(bg, 1);
    }
    if (ViewHelper.getAlpha(icon_1) != 0) {
        ViewHelper.setAlpha(icon_1, 0);
    }
    //                当侧滑完全打开的时候调用
}