Im creating a custom layout and I want to use the text declared in the layout.xml
file in my layout.
Like when I create a TextView
in XML and set android:text=@string/text1
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.