Wednesday 15 June 2011

android - RelativeLayout Not displaying an image -


OK, so that's where I am: I can not understand for my life why not the image on the left side Display will be This should be the same image as the right of information. I have gone in some different way and can not get the image displayed on the left side of the information.

   & Lt; Android: text = "@demen / status_bar_expanded_notification_category_text_size" Android: text-style = "bold" Android: layout_gravity = "center_horizontal" Android: textcolor = "@color / notification_category_color" android: gravity = "center" android: id = "@ Android: layout_height = "fill_parent" android: text = "@ string / status_bar_latest_events_title" /> & Lt; ImageView Android: layout_gravity = "right" center "Android: layout_trightoff =" @ id / latest notification "Android: layout_width =" wrap-content "Android: layout_heheat =" @ daemon / bead_close_handle_hete "Android: src =" @drawable / twi_quant_panel_plan_setting_dv "Android: scaleType =" fitXY "/> & lt; / RelativeLayout & gt; & lt; / LinearLayout & gt;   

 Enter image details here

you The O leave the images and the correct reason for the TextView is that you need to keep RelativeLayout? LinearLayout Android: Orientation = "Vertical" Android: layout_width = "Match_parent" Android: layout_height = "wrap_content"> LinearLayout Android: Orientation = "Horizontal" Android: layout_gravity = "center" Android: layout_width = "wrap_content" Android: layout_height = "wrap_content" .... & Gt; & lt; ImageView Android: Layout_Gravity = "center_for" Android: layout_width = "wrap_content" Android: layout_height = "wrap_content" /> & Lt; TextView android: layout_gravity = "center_vertical" android: layout_width = "wrap_content" android: layout_height = "wrap_content" /> & Lt; ImageView android: layout_gravity = "center_vertical" android: layout_width = "wrap_content" android: layout_height = "wrap_content" /> & Lt; LinearLayout / & gt; & Lt; LinearLayout / & gt;

Note that the Parental FrameLayout has match_parent this width set.

No comments:

Post a Comment