android在一张图片相应位置显示字的布局

2025-06-22 15:38:45
推荐回答(3个)
回答1:

1、在一张图片的任意位置显示文字,使用RelativeLayout布局,俗称相对布局,是在Android开发中使用得最多的一种布局方式,比如在图片的下边栏显示一行文字,代码如下:

android:id="@+id/imageview_001"
android:layout_width="match_parent"
android:layout_height="120dp"
android:layout_alignParentTop="true"
android:src="@drawable/ic_launcher"
/>
android:layout_width="match_parent"
android:layout_height="20dp"
android:layout_marginTop="100dp"
/>
更多Android例子,百度一下就知道了,平时也做点学习,TeachCourse比较适合初学者,谢谢采纳!

回答2:

截图我看看

回答3:

用RelativeLayout 布局就行了啊