【发布时间】:2022-02-11 02:12:01
【问题描述】:
我想在ImageView 之后显示TextView,但现在我的 Android 屏幕上的图像上出现了文本。
布局:
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context="in.sitemakers.sitemakers.AboutFragment">
<ImageView
android:id="@+id/about_image"
android:src="@drawable/sitemakers_laptops"
android:layout_width="match_parent"
android:scaleType="fitXY"
android:layout_height="420dp" />
<TextView
android:layout_below="@+id/about_image"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Site Makers is the web development company engage in the.."
/>
</FrameLayout>
请查看上面的屏幕截图并帮助我更新我的 XML,以便 TextView 在 ImageView 之后>.
【问题讨论】:
标签: android android-layout textview imageview