Change Background Option/Menu
Post a Reply
|Oldest Newest Rating|
· March 18, 2015
LayoutInflater myInflater = (LayoutInflater) getSystemService(Context.LAYOUT_INFLATER_SERVICE);
TableLayout layout = (TableLayout)myInflater.inflate(R.layout.activity_main, null);
Probably something like that is what you are looking for. Essentially, get the layout inflater, inflate the layout, and then change the resource. Textviews can also be changed in a similar way:
Using these two in conjunction with each other, you can go from white background with black text to white text in a black background.
Anyway, this is just the general idea. Additional posters could provide more specific code.
Java / Android Development
Very popular language used to create desktop applications, website applets, and Android apps.
|Bucky Roberts Administrator|