Monday, May 5, 2014

Ask: If the micro-channel public platform news and information such as how to deal with the style box




Consult composite frame such as micro-channel platform to send public figure, how to deal with the style sheet, please advice.

 

android: id = "@ + id / messageArrayAdapterLinerlayout"
android: layout_width = "fill_parent"
android: layout_height = "fill_parent"
android: layout_gravity = "center_vertical"
android: orientation = "vertical">

android: id = "@ + id/complexMessage_layout0"
android: layout_width = "fill_parent"
android: layout_gravity = "center_horizontal"
android: layout_height = "wrap_content">

android: id = "@ + id/complexMessage_image0"
android: layout_width = "match_parent"
android: layout_height = "wrap_content"
android: scaleType = "centerInside" />

android: id = "@ + id/complexMessage_text0"
android: layout_width = "fill_parent"
android: layout_gravity = "bottom"
android: gravity = "center_horizontal"
android: textSize = "18dp"
android: layout_height = "wrap_content" />


android: id = "@ + id/complexMessage_layout1"
android: layout_width = "match_parent"
android: layout_height = "wrap_content"
android: orientation = "horizontal"
>
android: id = "@ + id/complexMessage_text1"
android: layout_gravity = "right"
android: textSize = "9dp"
android: layout_width = "wrap_content"
android: layout_height = "wrap_content" />

android: id = "@ + id/complexMessage_image1"
android: layout_width = "40dp"
android: layout_height = "40dp"
android: layout_gravity = "left"
android: scaleType = "fitXY" />


android: id = "@ + id/complexMessage_layout2"
android: layout_width = "match_parent"
android: layout_height = "wrap_content"
android: orientation = "horizontal"
>
android: id = "@ + id/complexMessage_text2"
android: layout_gravity = "right"
android: textSize = "9dp"
android: layout_width = "wrap_content"
android: layout_height = "wrap_content" />

android: id = "@ + id/complexMessage_image2"
android: layout_width = "40dp"
android: layout_height = "40dp"
android: layout_gravity = "left"
android: scaleType = "fitXY" />






Wrote one, found completely impossible,
1, textView the width of the first piece of news I do not know how to be consistent with the picture, how to deal with its wrap, its background, and how to deal with a transparent background.
2, textView width does not know how to define. The second and third news how fixed textView, IMAGEVIEW width, so that they happened to be the father of width + up
<-! Main posts under Banner (D4) -><-! Posts under the main text (D5) ->
Reply:
This is a ListView
Reply:
cited a floor hjywyj reply:
this is a ListView


Well, this is indeed a LISTVIEW, the main question is this message box layout how to write
Reply:
Rub, it is obvious it is jmobile + html5, html5 micro-channel platform for direct display of it,,,
Reply:
1 can learn android listView can refer http://www.cnblogs.com/xiaowenji/archive/2010/12/08/1900579.html
2.ImageView can be removed, you can use only one TextView, insert images directly in the listview in control through pictures and text drawablePadding control code from the adapter to the TextView by textView.setCompoundDrawables way to dynamically set pictures
Reply:
references, 4th Floor blovecat reply:.
1 can learn android listView can refer http://www.cnblogs.com/xiaowenji/archive/2010/ 12/08/1900579.html
2.ImageView can be removed, you can use only one TextView, insert images directly in the listview in control through pictures and text drawablePadding control code from the adapter to the TextView by textView.setCompoundDrawables way to dynamically set the picture < / blockquote>


Thank you reply, I'll go have read about.
Reply:
references, 5th Floor zzytn reply:
Quote: references to the 4th floor blovecat reply:

1 can learn android listView can refer http://www.cnblogs.com/xiaowenji/archive/2010/12/08/1900579.html
2.ImageView can be removed, you can use only one TextView, insert images directly in the listview in control through pictures and text drawablePadding control code from the adapter to the TextView by textView.setCompoundDrawables way to dynamically set the picture < / blockquote>


Thank you reply, I'll go have read about.


Just looked, LAYOUT or simply some, it is mainly about this LAYOUT how to draw, ArrayAdapter write this class has inherited.
Reply:
Is a listview just put a different type, the kind of effect only into two types Bale
Reply:
Thank you for your reply, Citie has knot, is posted above me LAYOUT, slightly adjust it.

No comments:

Post a Comment