public BubbleRessources(Context context) {
backgroundColor = Color.argb(255, 0, 0, 0);
textPaint = new Paint(Paint.LINEAR_TEXT_FLAG | Paint.ANTI_ALIAS_FLAG);
textPaint.setColor(Color.WHITE);
final int LABEL_TEXT_SIZE_DP = 13; // DP
textPaint.setTextSize(TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP,
LABEL_TEXT_SIZE_DP, context.getResources().getDisplayMetrics()));
textPaint.setShadowLayer(2, 1, 1, Color.BLACK);
labelBackground = (NinePatchDrawable) context.getResources().getDrawable(R.drawable.bubble_text_background);
labelPadding = new Rect();
labelBackground.getPadding(labelPadding);
bubbleGlow = context.getResources().getDrawable(R.drawable.bubble_glow_256);
bubbleImages = new Drawable[4];
bubbleImages[0] = context.getResources().getDrawable(R.drawable.bubble_32);
bubbleImages[1] = context.getResources().getDrawable(R.drawable.bubble_64);
bubbleImages[2] = context.getResources().getDrawable(R.drawable.bubble_128);
bubbleImages[3] = context.getResources().getDrawable(R.drawable.bubble_256);
discoveryBubble = context.getResources().getDrawable(R.drawable.similar_bubble);
colorFilters = new ColorFilters(Mode.MULTIPLY);
}
BubbleRessources.java 文件源码
java
阅读 18
收藏 0
点赞 0
评论 0
项目:sonarflow-android
作者:
评论列表
文章目录