|
![](/images/resource/spacer.gif) |
|
แอนดรอย - หน้าโชว์ข้อมูล อยากให้ข้อมูลที่ดึงมาเอามาหาผมรวมมันมีวิธีไหนเอามารวมกันได้บ้าง |
|
![](/images/resource/viewboard_01.gif?v=1001) |
|
|
![](/images/resource/viewboard_03.gif?v=1001) |
![](/images/resource/viewboard_04.gif?v=1001) |
|
อยากให้ "Du_MorningTime"+"Du_MiddayTime" เอามาบวกกัน
SimpleCursorAdapter adapter;
adapter = new SimpleCursorAdapter(Concludemonth.this, R.layout.column,
myData, new String[] { "Day","Month","Year", "Du_MorningTime", "Du_MiddayTime",
"Du_EveningTime" //, "Du_MorningTime"+"Du_MiddayTime"
}, new int[] { R.id.Colname,R.id.Colname2,R.id.Colname3,
R.id.Colc1,R.id.Colc2, R.id.Colc3 //, R.id.sumTime
});
listView1.setAdapter(adapter);
Tag : Mobile, Android
![](/images/adv.jpg?v=1001)
|
|
![](/images/resource/blockviewtopic_01.gif?v=1001) |
![](/images/resource/blockviewtopic_02.gif?v=1001) |
![](/images/resource/blockviewtopic_03.gif?v=1001) |
![](/images/resource/blockviewtopic_04.gif?v=1001) |
Date :
2014-01-14 21:18:46 |
By :
bbza |
View :
877 |
Reply :
2 |
|
![](/images/resource/blockviewtopic_06.gif?v=1001) |
![](/images/resource/blockviewtopic_07.gif?v=1001) |
![](/images/resource/blockviewtopic_08.gif?v=1001) |
![](/images/resource/blockviewtopic_09.gif?v=1001) |
|
|
|
![](/images/resource/viewboard_06.gif?v=1001) |
![](/images/resource/viewboard_07.gif?v=1001) |
|
![](/images/resource/viewboard_08.jpg?v=1001) |
![](/images/resource/viewboard_09.gif?v=1001) |
![](/images/resource/viewboard_01.gif?v=1001) |
|
|
![](/images/resource/viewboard_03.gif?v=1001) |
![](/images/resource/viewboard_04.gif?v=1001) |
|
แบบนี้ก็ไม่ได้
SimpleCursorAdapter adapter;
adapter = new SimpleCursorAdapter(Concludemonth.this, R.layout.column2,
myData, new String[] { "Day","Month","Year", "Du_MorningTime", "Du_MiddayTime",
"Du_EveningTime"
}, new int[] { R.id.Colname,R.id.Colname2,R.id.Colname3,
R.id.Colc1,R.id.Colc2, R.id.Colc3
});
listView1.setAdapter(adapter);
int count = listView1.getAdapter().getCount();
for (int i = 0; i < count; i++) {
LinearLayout itemLayout = (LinearLayout)listView1.getChildAt(i); // Find by under LinearLayout
TextView txtCode = (TextView)itemLayout.findViewById(R.id.Colc1);
|
![](/images/resource/blockviewtopic_01.gif?v=1001) |
![](/images/resource/blockviewtopic_02.gif?v=1001) |
![](/images/resource/blockviewtopic_03.gif?v=1001) |
![](/images/resource/blockviewtopic_04.gif?v=1001) |
Date :
2014-01-15 03:35:16 |
By :
jamrasza |
|
![](/images/resource/blockviewtopic_06.gif?v=1001) |
![](/images/resource/blockviewtopic_07.gif?v=1001) |
![](/images/resource/blockviewtopic_08.gif?v=1001) |
![](/images/resource/blockviewtopic_09.gif?v=1001) |
|
|
![](/images/resource/viewboard_06.gif?v=1001) |
![](/images/resource/viewboard_07.gif?v=1001) |
|
![](/images/resource/viewboard_08.jpg?v=1001) |
![](/images/resource/viewboard_09.gif?v=1001) |
![](/images/resource/viewboard_01.gif?v=1001) |
|
|
![](/images/resource/viewboard_03.gif?v=1001) |
![](/images/resource/viewboard_04.gif?v=1001) |
|
ทำตั้งแต่ Query ก็ได้ครับ => Concat ![](/images/bbcode/grin.gif?v=1001)
|
![](/images/resource/blockviewtopic_01.gif?v=1001) |
![](/images/resource/blockviewtopic_02.gif?v=1001) |
![](/images/resource/blockviewtopic_03.gif?v=1001) |
![](/images/resource/blockviewtopic_04.gif?v=1001) |
Date :
2014-01-15 06:32:29 |
By :
mr.win |
|
![](/images/resource/blockviewtopic_06.gif?v=1001) |
![](/images/resource/blockviewtopic_07.gif?v=1001) |
![](/images/resource/blockviewtopic_08.gif?v=1001) |
![](/images/resource/blockviewtopic_09.gif?v=1001) |
|
|
![](/images/resource/viewboard_06.gif?v=1001) |
![](/images/resource/viewboard_07.gif?v=1001) |
|
![](/images/resource/viewboard_08.jpg?v=1001) |
![](/images/resource/viewboard_09.gif?v=1001) |
|
|
|
![](/images/digitalocean-banner.jpg)
|
Load balance : Server 03
|