Issue
The item_description is still at the bottom of the arrangement rather than located at the right of item_title.
Any suggestions?
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical”>
<ImageView
… />
<TextView
android:id="@+id/item_title”
android:layout_width="150dp"
…. />
<TextView
android:id="@+id/item_description”
app:layout_constraintTop_toTopOf="@id/item_title”
app:layout_constraintStart_toEndOf="@id/item_title" />
</LinearLayout>
Solution
You cannot use Constraints on a Linear Layout only on a ConstraintLayout.
Linear Layout items will always appear in the order you have specified them.
Change the Top level item to ConstraintLayout
Answered By - Andrew
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.