So say I go into the main.xml (res/layout/main.xml) and go over to the graphical interface, and decide to change my theme from Holo to Holo.Light. It changes in the preview and looks good. I run it, and once it's running, it's Holo. Nothing changes. No errors or anything, it just does nothing. Why? Using IntelliJ 13 and a Nexus 5.
Asked
Active
Viewed 82 times
1 Answers
0
The graphical interface preview what you see for the layout is just to show how it will look in the device. If you just change the Theme there , it won't reflect on the layout xml.
You have to change in the layout or in the manifest for whole application or each activity

Libin
- 16,967
- 7
- 61
- 83
-
Ah alright, because it's misleading. You'd think if it lets me add controls there that reflect in the XML, it'd work the same with themes. I can't seem to find a theme reference in the XML though? (main or AndroidManifest). – karite36 Apr 02 '14 at 00:11
-
You can set style="@style/Theme.AppCompat for any view like this in xml – Libin Apr 02 '14 at 00:17
-
I'm new to Android and XML. – karite36 Apr 02 '14 at 00:26
-
I answered to your question - "I can't seem to find a theme reference in the XML though?" – Libin Apr 02 '14 at 00:27
-
What? That wasn't even a statement. – karite36 Apr 02 '14 at 00:29
-
see my updated comment. I answered to your question you asked – Libin Apr 02 '14 at 00:30