有 Java 编程相关的问题?

你可以在下面搜索框中键入要查询的问题!


共 (2) 个答案

  1. # 1 楼答案

    使用框架布局

    <FrameLayout
        android:layout_height="wrap_content"
        android:layout_width="wrap_content">
    
        <ImageView
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:src="@drawable/semi_transparent_background"/>
    
        <TextView
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            android:text="This is my text."/>
    
    </FrameLayout>
    

    或者,你可以做一些类似的相对布局

  2. # 2 楼答案

    在XML中,简单地将RelativeLayout中的项目从上到下排序,将使每个项目依次移动到前面,而不是上面的其他项目