插入一个TextvView,居于ImageView下方
时间: 2023-06-08 12:08:20 浏览: 110
您可以使用以下代码将TextView插入到ImageView下方:
```
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent">
<ImageView
android:id="@+id/imageView"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@drawable/image" />
<TextView
android:id="@+id/textView"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Your Text Here"
android:layout_below="@+id/imageView"
android:layout_centerHorizontal="true" />
</RelativeLayout>
```
请注意,这只是一个示例代码,您需要根据您的布局要求进行调整。
阅读全文
相关推荐
















