could anyone please explain me what this line of code is really doing in TabActivity example of API:
Using java Syntax Highlighting
- public class TabTest extends TabActivity {
- @Override
- protected void onCreate(Bundle savedInstanceState) {
- super.onCreate(savedInstanceState);
- TabHost tabHost= getTabHost();
- LayoutInflater.from(this).inflate(R.layout.example_layout, tabHost.getTabContentView(), true);
- ...
Parsed in 0.031 seconds, using GeSHi 1.0.8.4
All I found about inflating of xml, LayoutInflater documentation,..., didnt help me to understand what is really happening in the last line of the code above.
Can anybody explain to me what LayoutInflater actually does and what it is used for in that specific case?
What I intended to do is to have separate layout.xml files for each TabHost-Content. It would be great if someone could give me a code-example with how-to-look-xml-files for this particular problem.
Thanks in advance,
navajo


