List Controls by using only XML
Most of the app provides the facility of browsing items in list.So, it is definitely a important control tool for items.
Today i am learning something about controlling list and customizing the lists.
I create a new project named "List_controls".
You can see the lines of code written in array.xml file
which is shown in below image.
array.xml |
Inserting listview in my layout |
Now i go to the activity_main.xml and write this short line of code:
android:entries="@array/colors"
array indicates the xml file which contains the items list
colors indicates the name of string array.
Thank you bro
ReplyDelete