Which XML attribute do you use in a LinearLayout to show views side by side?
4 phương ánCó giải thích
Các phương án trả lời
Chọn một phương ánLời giảiChọn phương án để mở
Để hiển thị các view bên cạnh nhau trong một LinearLayout, bạn cần sử dụng thuộc tính android:orientation. Bạn có thể chọn hai giá trị cho thuộc tính này: horizontal hoặc vertical. Nếu bạn chọn horizontal, các view sẽ được hiển thị theo chiều ngang, tức là bên cạnh nhau. Ngược lại, nếu bạn chọn vertical, các view sẽ được hiển thị theo chiều dọc, tức là chồng lên nhau. Trong câu hỏi này, câu trả lời đúng là android:orientation="horizontal".
Cùng chương 3
Assume you have a TextView with a textSize attribute of 16sp. This TextView also has a style applied to it which sets textSize to 14sp. In addition, there is also a theme in the app that sets textSize to 12sp. What is the actual textSize of the TextView that will be displayed on screen?Có lời giảiCâu hỏiWhat is the name of the file in which you create options menu items?Có lời giảiCâu hỏiTo display text which control will you use?Có lời giảiCâu hỏiCả 37 câu của chủ đề37 câu
Đi tiếp từ đây