Code example for TextView

Methods: setTextsetTextColorsetTextSize

0
		 
		addView(master);
	} 
	 
	protected View makeDisplayText() {
		textView = new TextView(getContext());
		textView.setText(localizationService.getString(displayTextKey));
		textView.setTextColor(txtColor);
		textView.setTextSize(TypedValue.COMPLEX_UNIT_DIP, 16);
		return textView;
	} 
	 
	protected abstract ImageView makeImage();
	 
	protected void setBackground() { 
		if(background == null) background = makeGradient(bgColor, bgColor);
		if(stroke == null) stroke = makeGradient(strokeColor, strokeColor);
		if(bgLayer == null) bgLayer = new LayerDrawable(new Drawable[]{stroke, background});
		 
		strokeRadii = new float[8];
Contextual code suggestions in your IDE  Get Codota for Java