css - Android version 4.3 and higher backround picture is not displaying -


i use android studio 2.0. put background picture background 4.3 , higher versions not displaying picture. white background. less versions display background picture. background picture placed @ drawable folder. picture 1280х1768 png. how make display background picture @ versions of android? mistake? please give me advices. thank much.

enter image description here

enter image description here

here xml of layout activity

<linearlayout xmlns:android="http://schemas.android.com/apk/res/android"     android:id="@+id/linearlayout1"     android:layout_width="match_parent"     android:layout_height="match_parent"     android:gravity="center"     android:orientation="vertical"     android:background="@drawable/background">      <button         android:id="@+id/button1"         android:text="Мундарижа"         android:textcolor="#ffffff"         android:textsize="15sp"         android:layout_width="170dp"         android:layout_height="35dp"         android:background="@drawable/buttons_pressed_selector"         android:shadowcolor="#a8a8a8"         android:shadowdx="0"         android:shadowdy="0"         android:shadowradius="5"         android:layout_marginbottom="5dp"         android:layout_margintop="100dp"         android:layout_gravity = "center"         android:layout_marginleft="55px" />      <button         android:id="@+id/button2"         android:text="Китоб ҳақида"         android:textcolor="#ffffff"         android:textsize="15sp"         android:layout_width="170dp"         android:layout_height="35dp"         android:background="@drawable/buttons_pressed_selector"         android:shadowcolor="#a8a8a8"         android:shadowdx="0"         android:shadowdy="0"         android:shadowradius="5"         android:layout_marginbottom="5dp"         android:layout_gravity = "center"         android:layout_marginleft="55px" />      <button         android:id="@+id/button3"         android:text="Муаллиф ҳақида"         android:textcolor="#ffffff"         android:textsize="15sp"         android:layout_width="170dp"         android:layout_height="35dp"         android:background="@drawable/buttons_pressed_selector"         android:shadowcolor="#a8a8a8"         android:shadowdx="0"         android:shadowdy="0"         android:shadowradius="5"         android:layout_marginbottom="5dp"         android:layout_gravity = "center"         android:layout_marginleft="55px" />      <button         android:id="@+id/button4"         android:text="Чиқиш маълумоти"         android:textcolor="#ffffff"         android:textsize="15sp"         android:layout_width="170dp"         android:layout_height="35dp"         android:background="@drawable/buttons_pressed_selector"         android:shadowcolor="#a8a8a8"         android:shadowdx="0"          android:shadowdy="0"         android:shadowradius="5"         android:layout_gravity = "center"         android:layout_marginleft="55px" />      <imagebutton         android:id="@+id/imgbutton5"         android:layout_width="wrap_content"         android:layout_height="wrap_content"         android:background="@mipmap/olti"         android:layout_margintop="70dp"         android:layout_marginleft="35px"/> </linearlayout> 

you have put image in drawable folders - hdpi,mdpi,xhdpi,xxhdpi , add android:background , keep scaletype fitxy. should work !


Comments

Popular posts from this blog

ios - RestKit 0.20 — CoreData: error: Failed to call designated initializer on NSManagedObject class (again) -

java - Digest auth with Spring Security using javaconfig -

laravel - PDOException in Connector.php line 55: SQLSTATE[HY000] [1045] Access denied for user 'root'@'localhost' (using password: YES) -