Code example for RoundRectShape

0
		_textView.setTextColor(0xFFFFFFFF);
		_textView.setText("Buffering");
		_textView.setId(10000);
		addView(_textView, new LinearLayout.LayoutParams(LinearLayout.LayoutParams.WRAP_CONTENT, LinearLayout.LayoutParams.WRAP_CONTENT));
	 
		ShapeDrawable bgShape = new ShapeDrawable(new RoundRectShape(new float[] {12,12, 12,12, 12,12, 12,12}, null, null));
		bgShape.getPaint().setColor(0x88000000);
		bgShape.getPaint().setStyle(Style.FILL);
		setBackgroundDrawable(bgShape);
		 
		LinearLayout balls = new LinearLayout(getContext());
		balls.setOrientation(LinearLayout.HORIZONTAL);
 
		LinearLayout.LayoutParams singleBall = new LinearLayout.LayoutParams(LinearLayout.LayoutParams.WRAP_CONTENT, LinearLayout.LayoutParams.WRAP_CONTENT);
		singleBall.leftMargin = 3;
		 
		_ball1 = createBall(10001);
		_ball2 = createBall(10002);
		_ball3 = createBall(10003);
		 
Stop searching for code, let great code find you!  Add Codota to your java IDE