Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个自定义的表面视图,我使用线程、构造函数和 onDraw 方法绘制了背景位图,这里我需要将自定义视图添加到表面视图中,如果可以的话,这可能吗?
SurfaceView不是它不能持有ViewGroup其他观点。不过你可以自己画。
SurfaceView
ViewGroup