for(int i=0; i<jArray.length(); i++) {
HashMap<String, String> map = new HashMap<String, String>();
json_data = jArray.getJSONObject(i);
name = json_data.getString("name");
map.put("id", String.valueOf(json_data.getString("news_id")));
map.put("title",json_data.getString("news_title"));
map.put("shortdescription",json_data.getString("news_short_description"));
mylist.add(map);
}
これは私のデータであり、Listview lv.setAd ..(mylist) でデータを印刷できます
しかし、すべての news_title を文字列配列に収集して、ニュース タイトルを下に表示し、すべてのデータを morqee で 1 行に表示できるようにする必要があります。
文字列配列にデータを保存する方法を教えてください。私はアンドロイドで新しい