Đang chuẩn bị liên kết để tải về tài liệu:
Giáo trình hình thành quy trình phân tích nguyên lý lập trình cơ bản với Androi p4

Đang chuẩn bị nút TẢI XUỐNG, xin hãy chờ

Tham khảo tài liệu 'giáo trình hình thành quy trình phân tích nguyên lý lập trình cơ bản với androi p4', công nghệ thông tin, kỹ thuật lập trình phục vụ nhu cầu học tập, nghiên cứu và làm việc hiệu quả | Hương dan lạp trinh cơ bàn VƠI Android IPsiữt 14 B3 Tạo giao diện cho Activity2 - Chuột phải vào folder res layout - New - Android XML File - Gõ tên là activity2_layout.xml Mã xml version 1.0 encoding utf-8 LinearLayout xmlns android http schemas.android.com apk res andro id android orientation vertical android layout_width fill_parent android layout_height fill_parent TextView android layout_width fill_parent android layout_height wrap_content android text Activity 2 - Receive value android typeface normal android textSize 14px android textStyle bold android textColor cccccc android background 333333 EditText android id @ id value_receive android layout_width fill_parent android layout_height wrap_content android textSize 20px android gravity center android lines 1 android numeric integer android enabled false RelativeLayout android layout_width fill_parent android layout_height fill_parent Button android id @ id call_button android layout_width fill_parent android layout_height wrap_content android text Call Broadcast Receiver android layout_alignParentBottom true RelativeLayout LinearLayout Layout của Activity2 tương tự như Activityl nhưng Button bây giờ là để gọi Broadcast Receiver. Ngoài ra mình dùng EditText để hiển thị value nhận được do nó có cái đường bao ngoài đẹp hơn Textview A_A nên không cho phép nhập giá trị vào EditText này Mã android enabled false B4 Sửa lại nội dung của Activityl.java như sau Mã package at.exam import android.app.Activity import android.content.Intent import android.os.Bundle import android.view.View import android.view.View.OnClickListener import android.widget.Button import android.widget.EditText public class Activity1 extends Activity Called when the activity is first created. @Override public void onCreate Bundle savedInstanceState super.onCreate savedInstanceState setContentView R.layout.activity1_layout final EditText editValue EditText findViewById R.id.value_edit final Button sendButton Button findViewById R.id.send_button

crossorigin="anonymous">
Đã 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.