Android Open Source - EnklawaPlayer Tappable Frame Layout

From Project

Back to project page EnklawaPlayer.


The source code is released under:

GNU General Public License

If you think the Android project EnklawaPlayer listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

package macbury.pod.views;
//  ww w . ja  v  a2 s . co  m
import android.content.Context;
import android.util.AttributeSet;
import android.view.MotionEvent;
import android.view.View;
import android.widget.ImageView;

 * Created by macbury on 15.09.14.
public class TappableFrameLayout extends ImageView implements View.OnTouchListener {

  public TappableFrameLayout(Context context, AttributeSet attrs) {
    super(context, attrs);

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

  public boolean onTouch(View v, MotionEvent event) {
    if (event.getAction() == MotionEvent.ACTION_DOWN) {
    } else {
    return true;

Java Source Code List