相关疑难解决方法(0)

如何在android中的另一个imageview上放置一个imageview

这是我迄今为止尝试过的布局,没有任何成功

<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:background="@color/white">

 <LinearLayout 
    android:id="@+id/lltest" 
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:orientation="horizontal"
    android:layout_centerHorizontal="true">

        <ImageView 
        android:id="@+id/inside_imageview" 
        android:layout_width="wrap_content"
        android:layout_height="wrap_content" 
        android:layout_marginTop="5dip"
        android:layout_marginBottom="5dip"
        android:src="@drawable/frame"/>

</LinearLayout>

 <ImageView 
        android:id="@+id/outside_imageview" 
        android:layout_width="wrap_content"
        android:layout_height="wrap_content" 
        android:layout_alignTop="@id/inside_imageview"
        android:scaleType="fitXY"/>
</RelativeLayout>
Run Code Online (Sandbox Code Playgroud)

我真正想要的是将我的outside_imageview置于inside_imageview之上,具有确切的高度和宽度......如何通过布局进行操作?

android imageview android-layout

20
推荐指数
3
解决办法
5万
查看次数

标签 统计

android ×1

android-layout ×1

imageview ×1