我必须创建一个 android 布局,它有一个textview
在顶部,一个imageview
在那个textview
和一个imagebutton
下面imageview
。
当imagebutton
被触摸时,textview
andimageview
必须变得不可见,并且自定义视图必须在 where textview
and imageview
was 的地方变得可见。
如果我使用linearlayout
,我必须使用margintop whit 负值,但我认为这不是很有用,因为在不同的屏幕尺寸上它会显示非常糟糕。我想我必须使用framelayout
,但我不知道该怎么做,谁能解释一下它是如何工作的?
非常感谢你!