Java Code Examples for android.support.v4.graphics.drawable.DrawableCompat#setHotspot()

The following examples show how to use android.support.v4.graphics.drawable.DrawableCompat#setHotspot() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: VectorDrawableCommon.java    From VectorChildFinder with Apache License 2.0 5 votes vote down vote up
@Override
public void setHotspot(float x, float y) {
    // API >= 21 only.
    if (mDelegateDrawable != null) {
        DrawableCompat.setHotspot(mDelegateDrawable, x, y);
    }
    return;
}
 
Example 2
Source File: LayerDrawable.java    From RippleDrawable with MIT License 5 votes vote down vote up
@Override
public void setHotspot(float x, float y) {
    final ChildDrawable[] array = mLayerState.mChildren;
    final int N = mLayerState.mNum;
    for (int i = 0; i < N; i++) {
        DrawableCompat.setHotspot(array[i].mDrawable, x, y);
    }
}
 
Example 3
Source File: DiscreteSeekBar.java    From sealrtc-android with MIT License 4 votes vote down vote up
private void setHotspot(float x, float y) {
    DrawableCompat.setHotspot(mRipple, x, y);
}
 
Example 4
Source File: DiscreteSeekBar.java    From PLDroidShortVideo with Apache License 2.0 4 votes vote down vote up
private void setHotspot(float x, float y) {
    DrawableCompat.setHotspot(mRipple, x, y);
}
 
Example 5
Source File: DiscreteSeekBar.java    From Musicoco with Apache License 2.0 4 votes vote down vote up
private void setHotspot(float x, float y) {
    DrawableCompat.setHotspot(mRipple, x, y);
}
 
Example 6
Source File: DiscreteSeekBar.java    From IdealMedia with Apache License 2.0 4 votes vote down vote up
private void setHotspot(float x, float y) {
    DrawableCompat.setHotspot(mRipple, x, y);
}
 
Example 7
Source File: DiscreteSeekBar.java    From FuAgoraDemoDroid with MIT License 4 votes vote down vote up
private void setHotspot(float x, float y) {
    DrawableCompat.setHotspot(mRipple, x, y);
}
 
Example 8
Source File: ShadowUtils.java    From AndroidUtilCode with Apache License 2.0 4 votes vote down vote up
public void setHotspot(float x, float y) {
    DrawableCompat.setHotspot(this.mDrawable, x, y);
}
 
Example 9
Source File: PaddingDrawable.java    From MDPreference with Apache License 2.0 4 votes vote down vote up
@Override
public void setHotspot(float x, float y) {
    if(mDrawable != null)
        DrawableCompat.setHotspot(mDrawable, x, y);
}
 
Example 10
Source File: DrawableWrapper.java    From ticdesign with Apache License 2.0 4 votes vote down vote up
@Override
public void setHotspot(float x, float y) {
    DrawableCompat.setHotspot(mDrawable, x, y);
}
 
Example 11
Source File: DiscreteSeekBar.java    From SwipeBack with GNU General Public License v3.0 4 votes vote down vote up
private void setHotspot(float x, float y) {
    DrawableCompat.setHotspot(mRipple, x, y);
}
 
Example 12
Source File: DiscreteSeekBar.java    From Sky31Radio with Apache License 2.0 4 votes vote down vote up
private void setHotspot(float x, float y) {
    DrawableCompat.setHotspot(mRipple, x, y);
}
 
Example 13
Source File: DiscreteSeekBar.java    From Panoramic-Screenshot with GNU General Public License v3.0 4 votes vote down vote up
private void setHotspot(float x, float y) {
    DrawableCompat.setHotspot(mRipple, x, y);
}
 
Example 14
Source File: DiscreteSeekBar.java    From discreteSeekBar with Apache License 2.0 4 votes vote down vote up
private void setHotspot(float x, float y) {
    DrawableCompat.setHotspot(mRipple, x, y);
}
 
Example 15
Source File: DiscreteSeekBar.java    From UltimateAndroid with Apache License 2.0 4 votes vote down vote up
private void setHotspot(float x, float y) {
    DrawableCompat.setHotspot(mRipple, x, y);
}
 
Example 16
Source File: DiscreteSeekBar.java    From android-open-project-demo with Apache License 2.0 4 votes vote down vote up
private void setHotspot(float x, float y) {
    DrawableCompat.setHotspot(mRipple, x, y);
}