tôi biết làm thế nào để thiết lập hình ảnh/biểu tượng từ res của chúng tôi/drawableSet hình ảnh từ android.R.drawable theo quan điểm hình ảnh android
<ImageView android:id="@+id/ImageSearch"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@drawable/android_green_3d"/>
Nếu chúng ta đặt nó trực tiếp từ mã: imageView1.setImageResource (R .drawable.android_green_3d);
Nhưng chúng tôi cũng có thể lấy biểu tượng từ android.R.drawable như thế này: imageView1.setImageResource (android.R.drawable.ic_menu_more);
Cách đặt hình ảnh/biểu tượng trong id xml nguồn là android.R.drawable? Có ai biết không? Cảm ơn trước.
nó hoạt động .. cảm ơn ^^ – user430926