有的时候想让一个view出现在另一个view的上面,可以这样:

You can't use a LinearLayout for this, but you can use a FrameLayout. In a FrameLayout, the z-index is defined by the order in which the items are added, for example:

<FrameLayout
    xmlns:andro
        />
</FrameLayout>

In this instance, the TextView would be drawn on top of the ImageView, along the bottom center of the image.

 

相关文章:

  • 2022-12-23
  • 2021-07-23
  • 2021-11-22
  • 2021-10-31
  • 2022-01-27
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-12-15
  • 2021-09-03
  • 2022-01-05
  • 2021-07-08
  • 2021-08-25
相关资源
相似解决方案