[Solved] Android : How do i use a local image as my background [closed]


For example
in main.xml

<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/main"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@drawable/nameOfYourLocalFile"
android:orientation="vertical" >
</LinearLayout> 

Just put your nameOfYourLocalFile.png to drawable directory.
Hope its help.

solved Android : How do i use a local image as my background [closed]