Create event on childclick of an Expandable Listview
ExpandableListView shows items in a vertically scrolling two-level list.the levels can individually be expanded to show its children. When a child in this expandable list has been clicked ExpandableListView.OnChildClickListener Interface is invoked. Let see an example: Code : Code for Activity:
- Published in Android
How to set two different color for odd row and even row of a ListView programmatically?
In a Listview two different color can be set for odd row and even row.By creating a custom adapter and by extending the ArrayAdapter and overriding the getView method it can be handled. And inside the getView method based on the condition the color of the text can be changed using setBackgroundcolor attribute. let see
- Published in Android
Expandable ListView
ExpandableListView shows items in a vertically scrolling two-level list. This differs from the ListView by allowing two levels: groups which can individually be expanded to show its children. The items come from the ExpandableListAdapter associated with this view. Expandable lists are able to show an indicator beside each item to display the item’s current state
- Published in Android
How to set gradient color background to a ListView?
ListView is a view group that displays a list of scrollable items.The background of the ListView can be set with a color gradient both dynamically or defining in drawable xml file. Code for layout: Code for background_inner in res drawable folder: Code for set gradient color background dynamically: Code in Adapter class:
- Published in Android
Custom ListView
ListView is a view group that displays a list of scrollable items. The list items are automatically inserted to the list using an Adapter that pulls content from a source such as an array or database query and converts each item result into a view that’s placed into the list.A subclass of the AdapterView class
- Published in Android
How to create a ListView?
ListView is a view group that displays a list of scrollable items. The list items are automatically inserted to the list using an Adapter that pulls content from a source such as an array or database query and converts each item result into a view that’s placed into the list. The Adapter behaves as a
- Published in Android
create a spinner
Spinners provide a quick way to select one value from a set. In the default state, a spinner shows its currently selected value. Touching the spinner displays a dropdown menu with all other available values, from which the user can select a new one. let see an example: Code for layout: code for strings.xml: code
- Published in Android
Related Articles
Top 20 iPhone and Android App Development Companies in the USA
World’s Best iPhone and Android App Devel...Mettle tech – IT Service and APPS provider
TITLE OF THE PROJECT for IIMC Study Group : Me...Checking the usage of face filters in live video in Instagram an amazing experience
Checking the usage of face filters in live vide...HTC’s first phone with 189 aspect ratio, bezel-less display coming in November
HTC’s first phone with 189 aspect ratio, bezel-...The new launch of the “zero touch enrollment” program with pre-configured Android Set’s by Google.
The new launch of the “zero touch enrollment” p...How to speed up your Moto G5
How to speed up your Moto G5 Thе 5th gеnеrаtiо...Touching new sales the Moto G5S Plus available for pre-order, sales go official September 29th
Looking at the vаluе thе Mоtо G5 Pluѕ brоught t...AG-Grid with Ruby Rails Demo – Part – I
Hi Guys, Welcome to AG-Grid with Ru...Android Classroom Training vs Self Studying
Android Classroom Training vs Self Studying Tod...Top 5 Android Apps you must use, The best Android apps of 2017
Top 5 Android Apps you must use, The best Andro...best practices of android apps development
Best practices of android apps development A pl...Top reasons to choose the java developer in New York USA
Top reasons to choose the java developer in New...Top digital camera accessory with android and iphone based camera
Top digital camera accessory with android and i...gps integration in android phones and iphones in usa
GPS integration in android phones and iPhones i...game development for android and ios in canada
The game development for android and ios in can...