Java Code Examples for android.graphics.Shader#TileMode
The following examples show how to use
android.graphics.Shader#TileMode .
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: RoundedImageView.java From BigApp_Discuz_Android with Apache License 2.0 | 5 votes |
private static Shader.TileMode parseTileMode(int tileMode) { switch (tileMode) { case TILE_MODE_CLAMP: return Shader.TileMode.CLAMP; case TILE_MODE_REPEAT: return Shader.TileMode.REPEAT; case TILE_MODE_MIRROR: return Shader.TileMode.MIRROR; default: return null; } }
Example 2
Source File: RoundedImageView.java From ClipCircleHeadLikeQQ with Apache License 2.0 | 5 votes |
public void setTileModeY(Shader.TileMode tileModeY) { if (this.mTileModeY == tileModeY) { return; } this.mTileModeY = tileModeY; updateDrawableAttrs(); updateBackgroundDrawableAttrs(false); invalidate(); }
Example 3
Source File: RoundedDrawable.java From Android with MIT License | 5 votes |
public RoundedDrawable setTileModeY(Shader.TileMode tileModeY) { if (mTileModeY != tileModeY) { mTileModeY = tileModeY; mRebuildShader = true; invalidateSelf(); } return this; }
Example 4
Source File: RoundedDrawable.java From Common with Apache License 2.0 | 5 votes |
public RoundedDrawable setTileModeY(Shader.TileMode tileModeY) { if (mTileModeY != tileModeY) { mTileModeY = tileModeY; mRebuildShader = true; invalidateSelf(); } return this; }
Example 5
Source File: RoundedDrawable.java From DMusic with Apache License 2.0 | 5 votes |
public RoundedDrawable setTileModeY(Shader.TileMode tileModeY) { if (mTileModeY != tileModeY) { mTileModeY = tileModeY; mRebuildShader = true; invalidateSelf(); } return this; }
Example 6
Source File: RoundedImageView.java From MousePaint with MIT License | 5 votes |
private static Shader.TileMode parseTileMode(int tileMode) { switch (tileMode) { case TILE_MODE_CLAMP: return Shader.TileMode.CLAMP; case TILE_MODE_REPEAT: return Shader.TileMode.REPEAT; case TILE_MODE_MIRROR: return Shader.TileMode.MIRROR; default: return null; } }
Example 7
Source File: RoundedDrawable.java From ClipCircleHeadLikeQQ with Apache License 2.0 | 5 votes |
public RoundedDrawable setTileModeX(Shader.TileMode tileModeX) { if (mTileModeX != tileModeX) { mTileModeX = tileModeX; mRebuildShader = true; invalidateSelf(); } return this; }
Example 8
Source File: RoundedDrawable.java From BigApp_Discuz_Android with Apache License 2.0 | 5 votes |
public RoundedDrawable setTileModeX(Shader.TileMode tileModeX) { if (mTileModeX != tileModeX) { mTileModeX = tileModeX; mRebuildShader = true; invalidateSelf(); } return this; }
Example 9
Source File: RoundedDrawable.java From android-common-utils with Apache License 2.0 | 5 votes |
public RoundedDrawable setTileModeX(Shader.TileMode tileModeX) { if (tileModeX!=null && mTileModeX != tileModeX) { mTileModeX = tileModeX; mRebuildShader = true; invalidateSelf(); } return this; }
Example 10
Source File: AreaData.java From XCL-Charts with Apache License 2.0 | 4 votes |
/** * 返回渲染模式 * @return 渲染模式 */ public Shader.TileMode getGradientMode() { return mTileMode; }
Example 11
Source File: RoundedImageView.java From ClipCircleHeadLikeQQ with Apache License 2.0 | 4 votes |
public Shader.TileMode getTileModeY() { return mTileModeY; }
Example 12
Source File: RoundedDrawable.java From DMusic with Apache License 2.0 | 4 votes |
public Shader.TileMode getTileModeY() { return mTileModeY; }
Example 13
Source File: AreaData.java From XCL-Charts with Apache License 2.0 | 4 votes |
/** * 设置渲染模式 * @param tm 渲染模式 */ public void setGradientMode(Shader.TileMode tm) { mTileMode = tm; }
Example 14
Source File: RoundedDrawable.java From BigApp_Discuz_Android with Apache License 2.0 | 4 votes |
public Shader.TileMode getTileModeY() { return mTileModeY; }
Example 15
Source File: ReactImageView.java From react-native-GPay with MIT License | 4 votes |
public void setTileMode(Shader.TileMode tileMode) { mTileMode = tileMode; mIsDirty = true; }
Example 16
Source File: RoundedDrawable.java From BigApp_Discuz_Android with Apache License 2.0 | 4 votes |
public Shader.TileMode getTileModeX() { return mTileModeX; }
Example 17
Source File: RoundedImageView.java From DMusic with Apache License 2.0 | 4 votes |
public Shader.TileMode getTileModeY() { return mTileModeY; }
Example 18
Source File: RoundedDrawable.java From Common with Apache License 2.0 | 4 votes |
public Shader.TileMode getTileModeY() { return mTileModeY; }
Example 19
Source File: RoundedDrawable.java From ClipCircleHeadLikeQQ with Apache License 2.0 | 4 votes |
public Shader.TileMode getTileModeY() { return mTileModeY; }
Example 20
Source File: GradientTextProgress.java From SweetMusicPlayer with Apache License 2.0 | 4 votes |
public void setLinearGradient(int color[],float position[],Shader.TileMode mode) { hasGradient=true; this.color=color; this.position=position; this.mode=mode; }