Lập trình android 4

Lập trình android 4

University

29 Qs

quiz-placeholder

Similar activities

Tableau Public #3 - Chart #2

Tableau Public #3 - Chart #2

University

25 Qs

Materi 2 RPL

Materi 2 RPL

University

25 Qs

Microsoft Word Quiz

Microsoft Word Quiz

University

25 Qs

Examen Final

Examen Final

University

25 Qs

BÀI KTTX SỐ 2 TIN 6

BÀI KTTX SỐ 2 TIN 6

6th Grade - University

24 Qs

Chapter 2 Review

Chapter 2 Review

6th Grade - University

27 Qs

OS - ECE

OS - ECE

University

24 Qs

Cys quiz 1

Cys quiz 1

University

25 Qs

Lập trình android 4

Lập trình android 4

Assessment

Quiz

Computers

University

Practice Problem

Medium

Created by

Bùi Lưu

Used 6+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

29 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Câu hỏi 1: RecyclerView trong Android được sử dụng để làm gì?

Hiển thị hình ảnh
Tạo danh sách hoặc lưới cho các phần tử dữ liệu lớn
Thực hiện các phép toán số học
Xử lý sự kiện người dùng

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Câu hỏi 2: Để tạo ra một ViewHolder mới trong RecyclerView, phương thức nào cần được override trong Adapter?

onBindViewHolder()
onCreateViewHolder()
getItemCount()
onViewRecycled()

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Câu hỏi 3: Trong Adapter của RecyclerView, phương thức nào được sử dụng để cập nhật dữ liệu và thông báo cho RecyclerView rằng toàn bộ dữ liệu đã thay đổi?

notifyDataChanged()
notifyItemChanged()
notifyChange()
notifyDataSetChanged()

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Câu hỏi 4: Để hiển thị các phần tử theo chiều dọc trong RecyclerView, LayoutManager nào thường được sử dụng?

GridLayoutManager
LinearLayoutManager
StaggeredGridLayoutManager
RelativeLayoutManager

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Câu hỏi 5: Lớp nào cung cấp phương pháp để gắn dữ liệu vào RecyclerView?

Activity
Fragment
Adapter
LayoutManager

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Câu hỏi 6: Nếu muốn sửa một item ở vị trí position trong RecyclerView, đoạn mã nào sau đây là đúng?

dataList[position] = updatedItem adapter.notifyItemChanged(position)
dataList[position] = updatedItem adapter.notifyItemInserted(position)
adapter.updateItem(updatedItem, position) adapter.notifyDataChanged()
dataList.updateItem(position, updatedItem) adapter.notifyItemChanged(position)

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Câu hỏi 7: Cho một danh sách hiển thị dưới dạng RecyclerView. Khi người dùng nhấn vào một phần tử tại vị trí position, làm thế nào để xóa phần tử đó và cập nhật lại RecyclerView?

val position = indexlist.removeAt(position) adapter.notifyDataChanged()
indexlist.removeAt(position) adapter.notifyItemRemoved(position)
val position = index adapter.notifyItemRemoved(position) list.removeAt(position)
adapter.removeItemAt(position) adapter.notifyItemRemoved(position)

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?