|
|
|
แอนดรอย - หน้าโชว์ข้อมูล อยากให้ข้อมูลที่ดึงมาเอามาหาผมรวมมันมีวิธีไหนเอามารวมกันได้บ้าง |
|
|
|
|
|
|
|
อยากให้ "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
|
|
|
|
|
|
Date :
2014-01-14 21:18:46 |
By :
bbza |
View :
901 |
Reply :
2 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
แบบนี้ก็ไม่ได้
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);
|
|
|
|
|
Date :
2014-01-15 03:35:16 |
By :
jamrasza |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ทำตั้งแต่ Query ก็ได้ครับ => Concat
|
|
|
|
|
Date :
2014-01-15 06:32:29 |
By :
mr.win |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Load balance : Server 03
|