I read online that use HorizontalScrollView, I have used, but still is a vertical display, just playing android, and even hit, seek expert know
xml layout
android: layout_height = "97dp"
>
android: layout_height = "wrap_content"
android: orientation = "horizontal"
>
android: layout_width = "wrap_content"
android: layout_height = "97dp">
java code
ArrayList
for (int i = 0; i
HashMap
zi.put ("zi", zi_content [i]);
content.add (zi);
}
SimpleAdapter adapter2 = new SimpleAdapter (WritechineseActivity.this, content, R.layout.content_zi, new String [] {"zi"}, new int [] {R.id.zi_button});
((ListView) findViewById (R.id.ziofthiscontent)) setAdapter (adapter2);.
private String [] zi_content = {"one", "two", "three", "four", "five", "six", "seven", "ten", "eleven", "twelve", " thirteen "," fourteen "," fifteen "," sixteen "," seventeen "};
R.layout.content_zi the xml layout
android: layout_height = "wrap_content"
android: orientation = "horizontal"
>
android: id = "@ + id / zi_button"
android: spacing = "5dp"
android: background = "@ drawable / transparent"
android: textSize = "25sp"
android: layout_width = "wrap_content"
android: layout_height = "wrap_content"
android: gravity = "center"
/>
Thank you brother first
<-! Main posts under Banner (D4) -><-! Posts under the main text (D5) ->
Reply:
Scroll inside with HorizontalScrollView this control can be nested one level listview
Reply:
Direct use of custom, usage and ListView same. Baidu search HorizontalListView have downloaded.
Reply:
Reply:
You look at my code is already in HorizontalScrollView in ListView nested too Yeah
Reply:
Find details
Reply:
... Own Baidu, not to know
http://jameszhao84.iteye.com/blog/1395567
Annex pages
Reply:
No points posting, by position question: what display multiple images to achieve relatively good?
Reply:
Horizontal scrolling listview basically did not use too! Follow the habit, listview is a list of shows, why do you want to scroll horizontally data too! Horizontal scrolling does not make sense ah!
Reply:
gallery
Reply:
listview implementation is generally vertical scrolling data, the level of need can certainly set the corresponding parameters of it ...
Reply:
This can be achieved, but get less focus, the keyboard can not control who can keep the keyboard focus to solve
No comments:
Post a Comment