Menu

#37 Android: Form.delete(int) implementation

open
nobody
None
5
2009-07-10
2009-07-10
Anonymous
No

Index: AndroidFormUI.java

--- AndroidFormUI.java (revision 2109)
+++ AndroidFormUI.java (working copy)
@@ -97,8 +97,12 @@
return appendTransfer;
}

- public void delete(int itemNum) {
- System.out.println("delete(int itemNum)");
+ public void delete(final int itemNum) {
+ activity.post(new Runnable() {
+ public void run() {
+ listView.removeViewAt(itemNum);

+ }
+ });
}

public void deleteAll() {

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.