Vấn đề rất đặc biệt ở đây, Chỉ cần nội dung hình ảnh nền sẽ hiển thị tốt trên TẤT CẢ điện thoại ngoại trừ Galaxy Nexus (hoặc tôi đã tìm thấy cho đến nay)Không có hình nền nào được hiển thị trên Galaxy Nexus (CHỈ)?
Tìm bên dưới thư viện ứng dụng trong nhiều điện thoại khác nhau, nhưng lưu ý trong hình ảnh number SIX nexus không có nền?
Tôi đã đặt hỗ trợ cho tất cả kích thước màn hình lớn và mật độ của XL, tôi sẽ đăng XML của một bố cục, tuy nhiên nó kéo dài trên TẤT CẢ bố cục, cho dù có bất kỳ điều khiển/bố cục tuyến tính hay bất kỳ thứ gì khác.
Images: http://goo.gl/59c8C
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent" android:background="@drawable/app_bg">
<ScrollView
android:id="@+id/scrollView12"
android:layout_width="fill_parent"
android:layout_height="fill_parent" android:layout_alignParentBottom="true" android:fillViewport="true">
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="match_parent" >
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical" android:layout_alignParentBottom="true">
<com.quickcontact.CustomTextView
android:id="@+id/CustomTextView01"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="10dp"
android:gravity="center"
android:text="Tap the buttons below to create your contact profiles. You will be able to assign contact details to each of your profiles and share them with others."
android:textColor="#3f3f3f"
android:textSize="15sp" android:layout_marginLeft="10dp" android:layout_marginRight="10dp" android:layout_gravity="center_horizontal"/>
<com.quickcontact.CustomTextView
android:id="@+id/receiveHeadertxt"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="20dp"
android:gravity="center"
android:text="-- Create Profile --"
android:textColor="#3f3f3f"
android:textSize="15sp" android:layout_gravity="center_horizontal"/>
<com.quickcontact.CustomButton
android:id="@+id/butPersonal"
android:layout_width="match_parent"
android:layout_height="78dp"
android:background="@drawable/standard_button"
android:padding="1dp"
android:text="Personal"
android:textColor="#3f3f3f"
android:textSize="16sp" />
<com.quickcontact.CustomButton
android:id="@+id/butSocial"
android:layout_width="match_parent"
android:layout_height="78dp"
android:layout_marginTop="5dp"
android:background="@drawable/standard_button"
android:padding="1dp"
android:text="Social"
android:textColor="#3f3f3f"
android:textSize="16sp" />
<com.quickcontact.CustomButton
android:id="@+id/butBusiness"
android:layout_width="match_parent"
android:layout_height="78dp"
android:layout_marginTop="5dp"
android:background="@drawable/standard_button"
android:padding="1dp"
android:text="Business"
android:textColor="#3f3f3f"
android:textSize="16sp" android:layout_marginBottom="20dp"/>
<com.quickcontact.CustomButton
android:id="@+id/butNext"
android:layout_width="fill_parent"
android:layout_height="58dp"
android:background="@drawable/blue_button"
android:gravity="center_vertical|center_horizontal"
android:paddingBottom="1dp"
android:text="NEXT"
android:textColor="#3f3f3f"
android:textSize="16sp" />
</LinearLayout>
</RelativeLayout>
</ScrollView>
</RelativeLayout>
Công việc đáng yêu! :) cảm ơn – Broak
Tôi biết đây là một câu hỏi thực sự cũ. Dù sao, vấn đề vẫn còn ở đây ... Đây là một giải pháp tuyệt vời. Giải pháp bạn cung cấp hoạt động hoàn hảo. Trong trường hợp của tôi, tôi có một gradient phức tạp (đa hướng, vv ...) vì vậy nó sẽ dễ dàng hơn nhiều cho tôi để sử dụng một hình ảnh ... Vì vậy, tôi không biết nơi mà vấn đề đến hình thành. Tài nguyên của tôi nằm trong thư mục xhdpi ... Bạn có một số manh mối khác không? – mithrop
Tôi cũng đang gặp phải sự cố tương tự trên Samsung Nexus và đối với một số RelativeLayouts của tôi, tôi không thể xem hình nền, hình nền của tôi nằm trong thư mục có thể kéo. tôi đã thử với hình dạng xml như được đưa ra trong câu trả lời nó hoạt động với hình dạng nhưng không phải với hình ảnh làm nền, xin vui lòng cho tôi biết nếu ai đó đã tìm thấy sửa chữa cho nó. – User7723337