TAILIEUCHUNG - Hướng dẫn lập trình cơ bản và nâng cao với Android 12

B9: Việc cuối cùng cần làm là viết lại Activity. Tới và chỉnh sửa theo nội dung sau: Mã: package ; import ; import import import import import import import import import import import import ; ; . | Hướng dan lạp trinh cơ bàn VƠI Android Part 12 B9 Việc cuối cùng cần làm là viết lại Activity. Tới và chỉnh sửa theo nội dung sau Mã package import import import import import import import import import import import import import public class Example extends Activity Các hằng dùng cho tạo Option Menu private static final int DELETE_WORK private static final int ABOUT 2 ArrayList Work array ListWorkAdapter arrayAdapter @Override public void onCreate Bundle savedInstanceState savedInstanceState setContentView array new ArrayList Work arrayAdapter new ListWorkAdapter this array final EditText workEnter EditText findViewById final EditText hourEdit EditText findViewById final EditText minuteEdit EditText findViewById final Button button Button findViewById Tạo list view cho danh sách công việc final ListView list ListView findViewById arrayAdapter OnClickListener add new OnClickListener @Override public void onClick View v if .toString .equals .toString .equals .toString .equals builder new Info missing Please enter all information of the work Continue new public void onClick DialogInterface dialog int which TODO Auto-generated method stub else String workContent .toString String timeContent .toString .toString Work work new Work .

TỪ KHÓA LIÊN QUAN
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.