android - Xml: trying to put timeline on left with subject on right -
I am trying to put some topics in a timeline on the left and at the right. When I get from the adapter and it should not be a problem in presenting it in XML. It's a format in XML which is a bit complicated for me. In Picture 2, you will see what I've done completely, it's a grid layout.
(Picture 1) Like this picture, but I'll give time with the adapter.
(pic 2) This is what I have.
I'll call the code for myself.
& lt;? Xml version = "1.0" encoding = "UTF-8"? & Gt; & Lt; RelativeLayout xmlns: android = "http://schemas.android.com/apk/res/android" Android: layout_width = "match_parent" Android: layout_height = "match_parent" & gt; & Lt; LinearLayout Android: Android: Android: layout_width = "fill_parent" Android: layout_height = "2dp" Android: Layout_AlignerPerleLeft = "True" Android: Layout_bale = "@ + ID / Notification" Title: Background = "# 33ccff" Android: Orientation = " Vertical "& gt; & Lt; / LinearLayout & gt; & Lt; TextView android: id = "@ + id / notificationTitle" Android: layout_width = "wrap_content" Android: layout_height = "wrap_content" Android: layout_alignLeft = "@ + id / Description" Android: layout_alignParentTop = "true" Android: Layout_marginTop = "L4dp "Android: textstyle =" bold "Android: text =" title "Android: text apparatus ="? Android: ATR / text enforcement large "/> Android: Android: Android: Android: Android: Layout_Height = "wrap_ content" Android: Layout_LinePant Left + "True" Android: Layout_blo = "@ + ID / Linear Layout 1" Android: layout_margin = "18dp" Android: layout_margintop = " 14dp "Android: Text =" Description "Android: Text Appointment ="? Android: ATR / Text Experience Media "/> & Lt; LinearLayout android: id = "@ + id / LinearLayout02" Android: Layout_width = "Fill_parent" Android: layout_height = "2dp" Android: layout_alignParentLeft = "true" Android: layout_alignTop = "@ + id / notificationTitle" android: background = "# 33ccff "Android: Orientation =" Vertical "& gt; & Lt; / LinearLayout & gt; & Lt; / RelativeLayout & gt;
Try it out.
& lt; linearLayout xmlns: android = "Http://schemaskandroidkcom/apk/res/android" Android: Layout_width = "Match_parent" Android: Layout_height = "Wrap_content" android: orientation = "horizontal" & gt; & Lt; TextView android: id = "@ + id / notificationTitle" Android: layout_width = "0dp" Android: Layout_height = "Wrap_content" Android: layout_margin = "7dp" Android: layout_weight = "1" android: text = "Title" Android: TextAppearance = "Android: ATR / Text Appointment Large" Android: Textstyle = "bold" /> & Lt; TextView android: id = "@ + id / timeOfMeal" Android: Layout_width = "Wrap_content" Android: Layout_height = "Wrap_content" Android: layout_margin = "7dp" android: text = "" The meals Android: textAppearance = "? Android: ATR / Text Access Medium "/> & lt; / LinearLayout & gt; Hope its help.
Comments
Post a Comment