本文整理匯總了Java中android.support.v4.graphics.drawable.DrawableCompat.setHotspot方法的典型用法代碼示例。如果您正苦於以下問題:Java DrawableCompat.setHotspot方法的具體用法?Java DrawableCompat.setHotspot怎麽用?Java DrawableCompat.setHotspot使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類android.support.v4.graphics.drawable.DrawableCompat
的用法示例。
在下文中一共展示了DrawableCompat.setHotspot方法的9個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: positionSelectorLikeFocusCompat
import android.support.v4.graphics.drawable.DrawableCompat; //導入方法依賴的package包/類
protected void positionSelectorLikeFocusCompat(int position, View sel) {
boolean manageState;
boolean z = true;
Drawable selector = getSelector();
if (selector == null || position == -1) {
manageState = false;
} else {
manageState = true;
}
if (manageState) {
selector.setVisible(false, false);
}
positionSelectorCompat(position, sel);
if (manageState) {
Rect bounds = this.mSelectorRect;
float x = bounds.exactCenterX();
float y = bounds.exactCenterY();
if (getVisibility() != 0) {
z = false;
}
selector.setVisible(z, false);
DrawableCompat.setHotspot(selector, x, y);
}
}
示例2: drawableHotspotChanged
import android.support.v4.graphics.drawable.DrawableCompat; //導入方法依賴的package包/類
@Override
public void drawableHotspotChanged(float x, float y) {
super.drawableHotspotChanged(x, y);
if (mDrawable != null) {
DrawableCompat.setHotspot(mDrawable, x, y);
}
}
示例3: positionSelectorLikeTouchCompat
import android.support.v4.graphics.drawable.DrawableCompat; //導入方法依賴的package包/類
protected void positionSelectorLikeTouchCompat(int position, View sel, float x, float y) {
positionSelectorLikeFocusCompat(position, sel);
Drawable selector = getSelector();
if (selector != null && position != -1) {
DrawableCompat.setHotspot(selector, x, y);
}
}
示例4: drawableHotspotChanged
import android.support.v4.graphics.drawable.DrawableCompat; //導入方法依賴的package包/類
public void drawableHotspotChanged(float x, float y) {
if (VERSION.SDK_INT >= 21) {
super.drawableHotspotChanged(x, y);
}
if (this.mThumbDrawable != null) {
DrawableCompat.setHotspot(this.mThumbDrawable, x, y);
}
if (this.mTrackDrawable != null) {
DrawableCompat.setHotspot(this.mTrackDrawable, x, y);
}
}
示例5: setHotspot
import android.support.v4.graphics.drawable.DrawableCompat; //導入方法依賴的package包/類
/**
*/
@Override
public void setHotspot(float x, float y) {
DrawableCompat.setHotspot(mDrawable, x, y);
}
示例6: setHotspot
import android.support.v4.graphics.drawable.DrawableCompat; //導入方法依賴的package包/類
private void setHotspot(float x, float y) {
DrawableCompat.setHotspot(mRipple, x, y);
}
示例7: setHotspot
import android.support.v4.graphics.drawable.DrawableCompat; //導入方法依賴的package包/類
@Override
public void setHotspot(float x, float y) {
DrawableCompat.setHotspot(mDrawable, x, y);
}
示例8: setHotspot
import android.support.v4.graphics.drawable.DrawableCompat; //導入方法依賴的package包/類
public void setHotspot(float x, float y) {
DrawableCompat.setHotspot(this.mDrawable, x, y);
}
示例9: setHotspot
import android.support.v4.graphics.drawable.DrawableCompat; //導入方法依賴的package包/類
public void setHotspot(float x, float y) {
if (this.mDelegateDrawable != null) {
DrawableCompat.setHotspot(this.mDelegateDrawable, x, y);
}
}