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.
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
Post a Comment