There is a RelativeLayout with several TextVeiw. It is necessary to make it so that the figure (a rectangle to begin with) was visible under all these views. Access to the shape is needed as the software changes color, shape size, thickness of the frame. As I understand it at the same time can not be used:
setContentView(R.layout.activity_main); setContentView(new DrawView(this)); in this case, the last element completely removes the first one.