Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 
  • Use of Drawable folder in Android Application

    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 150
    Comment on it

    Whenever we create an android app we have many folders in out solution which are used for building application in android.


    Drawable folder in android app is mainly used to change or set the background image of an android application .In that folder we have different sub folders


    1. drawable-ldpi
    2. drawable-mdpi
    3. drawable-hdpi
    4. drawable-xhdpi

    5. These four folders are mainly used to store the images want to set in our application.

      Low density            ldpi    
      Medium density         mdpi   
      High density           hdpi 
      Extra High density    xhdpi
      

      We can simply set the image

      <LinearLayout
          xmlns:android="http://schemas.android.com/apk/res/android"
          android:orientation="vertical"
          android:layoutwidth="fillparent"
          android:layoutheight="fillparent"
          android:background="@drawable/myimage">
      

 0 Comment(s)

Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: