當前位置: 首頁>>代碼示例>>Java>>正文


Java DrawableCompat.setHotspot方法代碼示例

本文整理匯總了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);
    }
}
 
開發者ID:JackChan1999,項目名稱:boohee_v5.6,代碼行數:25,代碼來源:ListViewCompat.java

示例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);
    }
}
 
開發者ID:jeasinlee,項目名稱:AndroidBasicLibs,代碼行數:8,代碼來源:UpdateImageView.java

示例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);
    }
}
 
開發者ID:JackChan1999,項目名稱:boohee_v5.6,代碼行數:8,代碼來源:ListViewCompat.java

示例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);
    }
}
 
開發者ID:JackChan1999,項目名稱:boohee_v5.6,代碼行數:12,代碼來源:SwitchCompat.java

示例5: setHotspot

import android.support.v4.graphics.drawable.DrawableCompat; //導入方法依賴的package包/類
/**
 */
@Override
public void setHotspot(float x, float y) {
	DrawableCompat.setHotspot(mDrawable, x, y);
}
 
開發者ID:universum-studios,項目名稱:android_ui,代碼行數:7,代碼來源:DrawableWrapper.java

示例6: setHotspot

import android.support.v4.graphics.drawable.DrawableCompat; //導入方法依賴的package包/類
private void setHotspot(float x, float y) {
    DrawableCompat.setHotspot(mRipple, x, y);
}
 
開發者ID:DuanJiaNing,項目名稱:Musicoco,代碼行數:4,代碼來源:DiscreteSeekBar.java

示例7: setHotspot

import android.support.v4.graphics.drawable.DrawableCompat; //導入方法依賴的package包/類
@Override
public void setHotspot(float x, float y) {
  DrawableCompat.setHotspot(mDrawable, x, y);
}
 
開發者ID:commonsguy,項目名稱:cwac-crossport,代碼行數:5,代碼來源:DrawableWrapper.java

示例8: setHotspot

import android.support.v4.graphics.drawable.DrawableCompat; //導入方法依賴的package包/類
public void setHotspot(float x, float y) {
    DrawableCompat.setHotspot(this.mDrawable, x, y);
}
 
開發者ID:JackChan1999,項目名稱:boohee_v5.6,代碼行數:4,代碼來源:DrawableWrapper.java

示例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);
    }
}
 
開發者ID:JackChan1999,項目名稱:boohee_v5.6,代碼行數:6,代碼來源:VectorDrawableCommon.java


注:本文中的android.support.v4.graphics.drawable.DrawableCompat.setHotspot方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。