After
I am trying to place a textView on a
imageView in Below the
Relative layout , I am able to place the
TextView in the center but I can not keep it in the bottom. Can someone guide me here? My XML is here
& lt ;? Xml version = "1.0" encoding = "UTF-8"? & Gt; & Lt; RelativeLayout xmlns: Android = "http://schemas.android.com/apk/res/android" Android: id = "@ + id / back" Android: layout_width = "fill_parent" Android: layout_height = "fill_parent" Android: Orientation = "Vertical" & gt; & Lt; Android: layout_height = "fill_parent" android: scaleType = "fitXY" Android: background = "# 000000" & gt; & Lt; / ImageView & gt; & Lt; Android: layout_width = "fill_parent" android: layout_height = "wrap_content" android: gravity = "center" android: layout_centerVertical = "true" android: singleLine = "true" Android: TextColor = "@color / white" Android: text = "last" Android: text style = "bold" Android: text size = "18 SP" /> & Lt; / RelativeLayout & gt; TextView using the following attributes:
Android: layout_centerHorizontal = "true"
Android: layout_centerVertical = "true" to add more
android: alignParentBottom = true " Also work with it to understand the relative layout options. .
No comments:
Post a Comment