Please help
I want to create a button that when clicked it
displays another layout
and use images on my layout
How to create a layout for button on click
Heres a old video i made https://youtu.be/4qGW8xzicns
Working with images is a bit complicated they can very easily cause you to run out of memory. They usually need to be downsampled/resized, the official Android documentation has the code to do this but theres also multiple librarys that do it.
@drawable/app_icon
@string/my_app_name
You need to first reference the folder then / then the name of the file or icon or anything else.