Skip to main content

Posts

Showing posts with the label setter

ListView Using CustomAdapter with setter getter method

For this we need following three classes Main Class where we would be implementing listview using custom Adapter(CustomAdapterExample.java) Second Class for designing our Custom Adapter(CustomAdapter.java) And the last one for getter setter method for data transfer(User.java) Along with these three java classes we need two xml file one would be default xml file (activity_custom_adapter_example.xml) for main class and another one for making Listview layout (simple_list_items.xml)  In activity_custom_adapter_example.xml, take a ListView element from the Widgets and in simple_list_items.xml, take two textviews.