You can use the code below. and do it the way you want the text. Here, if you want something like a Backgroung image, use setBackgroundResource(R.drawable.YOUR_IMAGE);
public class MainActivity extends Activity { @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(new GraphicsView(this));} static public class GraphicsView extends View { private static final String QUOTE = "text in a half-circle"; private Path circle; private Paint cPaint; private Paint tPaint; public GraphicsView(Context context) { super(context); int color = Color.argb(127, 255, 0, 255); circle = new Path(); circle.addCircle(230, 350, 150, Direction.CW); cPaint = new Paint(Paint.ANTI_ALIAS_FLAG); cPaint.setStyle(Paint.Style.STROKE); cPaint.setColor(Color.LTGRAY); cPaint.setStrokeWidth(3);
try it. Hope this helps you.
source share