Posts

Showing posts with the label Custom List view

Custom ListView (With Seekbar) Example

Image
This example will show you how can you build a custom listview with seek bar application in android. //Using Array Adapter Steps:- 1) Create one layout file for the list_helper and one java file for the list_adapter. 2) Add list view in the main.xml file and set the adapter. 3) Create one array list to store the value of each seek bar. First open the main.xml file and add a list-view. Main.xml <LinearLayout  >     <ListView         android:id="@+id/listView1"         android:layout_width="match_parent"         android:layout_height="match_parent"         android:layout_marginLeft="51dp"         android:layout_marginTop="61dp" >     </ListView> </LinearLayout> Open the Main.java file to set the adapter to the list-view:- Main.java public class MainActivity extends Activity { ListView lname; int progress1;...