【发布时间】:2015-06-12 20:37:28
【问题描述】:
我是新手。 帮我解决这个警告。 谢谢。
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_marginLeft="6dp"
android:layout_marginRight="6dp"
android:layout_marginTop="4dp"
android:layout_marginBottom="4dp"
android:padding="0dp"
android:orientation="vertical"
android:background="@drawable/background_card">
<TextView
android:id="@+id/txtProductDescription"
android:layout_marginTop="4dp"
android:layout_width="match_parent"
android:padding="6dp"
android:layout_height="wrap_content"
android:gravity="center"
android:text=""
android:textAppearance="?android:attr/textAppearanceLarge"
android:fontFamily="sans-serif-light"/>
<RelativeLayout
android:id="@+id/RelativeLayout3"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="4dp"
android:background="#40AF40"
android:padding="6dp" >
<TextView
android:id="@+id/txtOfferBig"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
</LinearLayout>
如何解决以下错误?
警告:考虑将 android:layout_toRightOf 替换为 android:layout_toEndOf="@id/txtOfferBig" 更好地支持
从右到左的布局
【问题讨论】:
标签: android android-linearlayout