I have many of
android:layout_width="fill_parent"
&
android:layout_height="wrap_content"
properties in my app project. So i would like to add them in styles like the below.
<style name="layout_wf_hw">
<item name="android:layout_width">fill_parent</item>
<item name="android:layout_height">wrap_content</item>
</style>
<style name="layout_ww_hw">
<item name="android:layout_width">wrap_content</item>
<item name="android:layout_height">wrap_content</item>
</style>
styles.xml
<style name="inputbox" parent="layout_wf_hw">
<item name="android:background">@drawable/editviewstyle</item>
</style>
Now my code view is
<EditText style="@style/inputbox"/>
My question is can we apply like this? Is this right way what i followed?
Thanks