|
46 | 46 | * |
47 | 47 | * <p>The surface is Z ordered so that it is behind the window holding its |
48 | 48 | * SurfaceView; the SurfaceView punches a hole in its window to allow its |
49 | | - * surface to be displayed. The view hierarchy will take care of correctly |
| 49 | + * surface to be displayed. The view hierarchy will take care of correctly |
50 | 50 | * compositing with the Surface any siblings of the SurfaceView that would |
51 | | - * normally appear on top of it. This can be used to place overlays such as |
| 51 | + * normally appear on top of it. This can be used to place overlays such as |
52 | 52 | * buttons on top of the Surface, though note however that it can have an |
53 | 53 | * impact on performance since a full alpha-blended composite will be performed |
54 | 54 | * each time the Surface changes. |
55 | 55 | * |
| 56 | + * <p> The transparent region that makes the surface visible is based on the |
| 57 | + * layout positions in the view hierarchy. If the post-layout transform |
| 58 | + * properties are used to draw a sibling view on top of the SurfaceView, the |
| 59 | + * view may not be properly composited with the surface. |
| 60 | + * |
56 | 61 | * <p>Access to the underlying surface is provided via the SurfaceHolder interface, |
57 | 62 | * which can be retrieved by calling {@link #getHolder}. |
58 | 63 | * |
|
62 | 67 | * Surface is created and destroyed as the window is shown and hidden. |
63 | 68 | * |
64 | 69 | * <p>One of the purposes of this class is to provide a surface in which a |
65 | | - * secondary thread can render into the screen. If you are going to use it |
| 70 | + * secondary thread can render into the screen. If you are going to use it |
66 | 71 | * this way, you need to be aware of some threading semantics: |
67 | 72 | * |
68 | 73 | * <ul> |
69 | 74 | * <li> All SurfaceView and |
70 | 75 | * {@link SurfaceHolder.Callback SurfaceHolder.Callback} methods will be called |
71 | 76 | * from the thread running the SurfaceView's window (typically the main thread |
72 | | - * of the application). They thus need to correctly synchronize with any |
| 77 | + * of the application). They thus need to correctly synchronize with any |
73 | 78 | * state that is also touched by the drawing thread. |
74 | 79 | * <li> You must ensure that the drawing thread only touches the underlying |
75 | 80 | * Surface while it is valid -- between |
|
0 commit comments