最佳答案
你能在机器人中覆盖所有视图吗?
在 iPhone 中,我将新视图的 frame.origin
设置为(0,0) ,宽度和高度设置为 self.view
的宽度和高度。将其添加到 self.view
将使其作为覆盖物,覆盖后面的内容(或者如果它有一个透明的背景,然后显示后面的视图)。
Is there a similar technique in android? I realise that the views are slightly different (there are three types (or more...) relativelayout, linearlayout and framelayout) but is there any way to just overlay a view on top of everything indiscriminately?