When we use LinearLayout for android page layout, we often encounter various la S. To draw a fixed view from the bottom
Now we use android: gravity = "bottom | right | left" of LinearLayout ".
The specific implementation is as follows:
<LinearLayout android: layout_marginTop = "20sp" android: orientation = "horizontal"
Android: layout_marginLeft = "10sp" android: layout_marginRight = "10sp"
Android: gravity = "right"
Android: layout_width = "fill_parent" android: layout_height = "wrap_content">
<TextView android: layout_weight = "1"
Android: textSize = "19sp"
Android: layout_width = "wrap_content"
Android: layout_height = "wrap_content" android: gravity = "left"
Android: text = "@ string/my55" android: textColor = "@ color/black"/>
<ImageView android: gravity = "center"
Android: layout_width = "wrap_content"
Android: layout_height = "wrap_content" android: paddingRight = "5sp" android: background = "@ drawable/rightarrow"
/>
</LinearLayout>