我不能把標籤放在我想要的地方。我會展示一張照片。TextView below ImageView
我有以下代碼:
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_gravity="center"
android:layout_weight="1"
android:orientation="vertical" >
<TextView
android:id="@+id/textViewNombreVideo"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignLeft="@+id/imageViewLogo"
android:layout_alignParentBottom="true"
android:layout_alignRight="@+id/imageViewLogo"
android:lines="2"
android:scrollHorizontally="false"
android:singleLine="false"
android:text="Medium Text"
android:textAppearance="?android:attr/textAppearance"
android:textColor="@android:color/white"
android:textColorLink="@android:color/white"
android:textStyle="bold" />
<ImageView
android:id="@+id/imageViewLogo"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:layout_above="@+id/textViewNombreVideo"
android:layout_centerHorizontal="true"
android:layout_margin="4dp"
android:adjustViewBounds="true" />
</RelativeLayout>
畫面適合的ImageView的喚起注意,這是確定的,我要放置的TextView與圖片相同的左側。
有沒有可能這樣做?