@Override public boolean onTouch(View v, MotionEvent event){ if(Build.VERSION.SDK_INT>=Build.VERSION_CODES.LOLLIPOP){ v .findViewById(R.id.row_content) .getBackground() .setHotspot(event.getX(),event.getY()); } return(false); }
@Override public void drawableHotspotChanged(float x, float y) { super.drawableHotspotChanged(x, y); if (foreground != null) { foreground.setHotspot(x, y); } } }
@TargetApi(Build.VERSION_CODES.LOLLIPOP) @Override public boolean onTouch(View v, MotionEvent event) { v .findViewById(R.id.row_content) .getBackground() .setHotspot(event.getX(), event.getY()); return(false); } });
@TargetApi(Build.VERSION_CODES.LOLLIPOP) @Override public boolean onTouch(View v, MotionEvent event) { v .findViewById(R.id.row_content) .getBackground() .setHotspot(event.getX(), event.getY()); return(false); } });
@Override public void drawableHotspotChanged(float x, float y) { super.drawableHotspotChanged(x, y); if (foreground != null) { foreground.setHotspot(x, y); } } }
@TargetApi(Build.VERSION_CODES.LOLLIPOP) @Override public boolean onTouch(View v, MotionEvent event) { v .findViewById(R.id.row_content) .getBackground() .setHotspot(event.getX(), event.getY()); return(false); } });
@Override public boolean onTouch(View v, MotionEvent event){ if(Build.VERSION.SDK_INT>=Build.VERSION_CODES.LOLLIPOP){ v .findViewById(R.id.row_content) .getBackground() .setHotspot(event.getX(),event.getY()); } return(false); }
@Override public boolean onTouch(View v, MotionEvent event){ if(Build.VERSION.SDK_INT>=Build.VERSION_CODES.LOLLIPOP){ v .findViewById(R.id.row_content) .getBackground() .setHotspot(event.getX(),event.getY()); } return(false); }
@Override public boolean onTouch(View v, MotionEvent event) { if (Build.VERSION.SDK_INT>=Build.VERSION_CODES.LOLLIPOP) { v .findViewById(R.id.row_content) .getBackground() .setHotspot(event.getX(), event.getY()); } return(false); }
@TargetApi(Build.VERSION_CODES.LOLLIPOP) @Override public boolean onTouch(View v, MotionEvent event) { v .findViewById(R.id.row_content) .getBackground() .setHotspot(event.getX(), event.getY()); return(false); } });
@TargetApi(Build.VERSION_CODES.LOLLIPOP) @Override public boolean onTouch(View v, MotionEvent event) { v .findViewById(R.id.row_content) .getBackground() .setHotspot(event.getX(), event.getY()); return(false); } });
@TargetApi(Build.VERSION_CODES.LOLLIPOP) @Override public boolean onTouch(View v, MotionEvent event) { v .findViewById(R.id.row_content) .getBackground() .setHotspot(event.getX(), event.getY()); return(false); } });
@Override public void drawableHotspotChanged(float x, float y) { super.drawableHotspotChanged(x, y); if (mForeground != null) { mForeground.setHotspot(x, y); } } }
@TargetApi(Build.VERSION_CODES.LOLLIPOP) @Override public boolean onTouch(View v, MotionEvent event) { v .findViewById(R.id.row_content) .getBackground() .setHotspot(event.getX(), event.getY()); return(false); } });
@Override @TargetApi(LOLLIPOP) public boolean onTouchEvent(MotionEvent event, View host) { final Rect bounds = getBounds(); final int x = (int) event.getX() - bounds.left; final int y = (int) event.getY() - bounds.top; mDrawable.setHotspot(x, y); return false; }
@Override public void drawableHotspotChanged(float x, float y) { super.drawableHotspotChanged(x, y); if (foreground != null) { foreground.setHotspot(x, y); } } }
@Override public void setHotspot(float x, float y) { if (mDrawable == null) return; if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) mDrawable.setHotspot(x, y); }
@Override public void setHotspot(float x, float y) { if (mDrawable == null) return; if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) mDrawable.setHotspot(x, y); }
@TargetApi(Build.VERSION_CODES.LOLLIPOP) @Override public void setHotspot(float x, float y) { if (mItems.isEmpty()) { super.setHotspot(x, y); return; } for (ChildDrawable child : mItems) { child.getDrawable().setHotspot(x, y); } }
@Override public void drawableHotspotChanged(float x, float y) { super.drawableHotspotChanged(x, y); if (foreground != null) { foreground.setHotspot(x, y); } } }