Java Code Examples for android.widget.LinearLayout.bringToFront()

The following are Jave code examples for showing how to use bringToFront() of the android.widget.LinearLayout class. You can vote up the examples you like. Your votes will be used in our system to get more good examples.
Example 1
Project: open-rmbt   File: RMBTMainActivity.java   Source Code and License Vote up 6 votes
public void setOverlayVisibility(boolean isVisible) {
    final LinearLayout overlay = (LinearLayout) findViewById(R.id.overlay);

    if (isVisible) {
    	overlay.setVisibility(View.VISIBLE);
    	overlay.setClickable(true);
    	overlay.bringToFront();
    }
    else {
    	overlay.setVisibility(View.GONE);
    }
}