So I am using my main.xml as a view in my program but I still need to be able to add bimaps/drawables to the screen through programming. Is there any way to do that?
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
}
That is kinda what my onCreate looks like (but with a lot of code for the purpose of the app).
Is there anyway to maybe add a View or Canvas ONTOP of my current view?
I am new to bitmaps and drawables for android so sorry if this is commonly known, but I can’t find a decent answer anywhere 😛
Thanks,
Brandon
Create a Id to a framelayout in the xml (or another layout where you want to put the view)
Maybe you can have your onCreate() something like this: