How do I used values declared in XML on my custom layout?
<p>Im creating a custom layout and I want to use the text declared in the <code>layout.xml</code> file in my layout.</p>

<p>Like when I create a <code>TextView</code> in XML and set <code>android:text=@string/text1</code> when I run the app text view automatically loads the text from android:text. So how can I access attributes declared in the layout XML file in my custom component.</p>
