skip to Main Content

I want to design an image background for my android app’s action bar, but have no idea what dimension I have make so that it fits in different screen resolution.
Do I need to design the same image background separately for each screen densities?
I want to design it in photoshope is that a good option?

any idea Please !

2

Answers


  1. I would suggest you use a gradient which you can store in the drawable folder

    <shape xmlns:android="http://schemas.android.com/apk/res/android" >
    
        <gradient 
            android:startColor="#00445a"
            android:endColor="#00699a"
            android:angle="90"
            android:type="linear"
    
            />
    
    </shape>
    

    This will prevent all the trouble of trying to adapt to screen sizes.

    Login or Signup to reply.
  2. Create 3 .png versions of the image, for hdpi/xhdpi/xxhdpi densities.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search