All Downloads are FREE. Search and download functionalities are using the official Maven repository.

net.simonvt.threepanelayout.NoClickThroughFrameLayout Maven / Gradle / Ivy

There is a newer version: 1.0.1
Show newest version
package net.simonvt.threepanelayout;

import android.content.Context;
import android.util.AttributeSet;
import android.view.MotionEvent;

/**
 * FrameLayout which doesn't let touch events propagate to views positioned behind it in the view hierarchy.
 */
public class NoClickThroughFrameLayout extends BuildLayerFrameLayout {

    public NoClickThroughFrameLayout(Context context) {
        super(context);
    }

    public NoClickThroughFrameLayout(Context context, AttributeSet attrs) {
        super(context, attrs);
    }

    public NoClickThroughFrameLayout(Context context, AttributeSet attrs, int defStyle) {
        super(context, attrs, defStyle);
    }

    @Override
    public boolean onTouchEvent(MotionEvent event) {
        return true;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy