Combining SurfaceView with other views, such as TextView and buttons

I am completely new to Android programming (I just did a few lessons / read developer guides, etc.), and like every beginner I want to make a useless game :-).

I am currently struggling with a variety of layouts. As in the example, I created a class that extends SurfaceViewand puts it in FrameLayout. Around this SurfaceViewI want to have a different look, similar to Buttonsand TextViews. Something like that:

-----------------------------------------------
| TextView | SurfaceView           | TextView |
|          |                       |          |
------------                       ------------
|          |                       | TextView |
|          |                       |          |
|          |                       ------------
|          |                       | TextView |
|          |                       |          |
|          |                       ------------
|          |                       |          |
|          |                       |          |
-----------------------------------------------
| Button                             Button   |
-----------------------------------------------

- FrameLayout RelativeLayouts ( TextViews ), SurfaceView (), . layout_width layout_height dp, 0,0, ( TextView ..).

, , ? ? draw() SurfaceView ?

+5
1

- OpengGL , . ... , , .

, Relative layout (b1, b2) :

+-----------+
|  Zone 1   |
+-----+-----+
| b1  | b2  |
+-----+-----+

1 3

+----+----+----+
| c1 | c2 | c3 |
+----+----+----+

c2 SurfaceView, c1 -

c3 .

+----+
| t1 |
+----+
| t2 |
+----+
| t3 |
+----+
+6

All Articles