Android Question Background image

Sofiya

Member
Licensed User


upload_2018-1-2_20-11-29.png


i want to add background jpg image to my login page but i cant able to achieve it properly, so pls anyone guide me for it
 

Meigionel TS

Member
Licensed User
Navigate to File Manager in the Windows tab in the toolbar. File Manager Window should pop up if not already opened. You will find an add files button there. You have to add the image files in the project from there before you can use it in your code.
 
Upvote 0

NJDude

Expert
Licensed User
Longtime User
A few things about your code since you are using the designer:

1- You can set the activity title in the designer (no need to do it with code)
2- The ImageView background can be also setup in the designer (no need to do what you are doing)
3- Same for the rest of your views (Button, Label etc) you can do all that in the designer.
 
Last edited:
Upvote 0

eurojam

Well-Known Member
Licensed User
Longtime User
it seems that your file is "eit_logo.jpg" but in your code you use "eitlogo.jpg" (without underscore)...
 
Upvote 0

Sofiya

Member
Licensed User
Navigate to File Manager in the Windows tab in the toolbar. File Manager Window should pop up if not already opened. You will find an add files button there. You have to add the image files in the project from there before you can use it in your code.

I also try this option but error still not fix.

upload_2018-1-3_11-27-50.png
 
Upvote 0

eurojam

Well-Known Member
Licensed User
Longtime User
did you try to compile it in release mode? is the error still present there? you can alos force to use the assetfolder in debugmode with the following command:
#DebuggerForceStandardAssets: true
 
Upvote 0
Top