|
Sign In
Ask Question
ConcretePage.com
HOME
ALL TUTORIALS
JAVA 8
SPRING BOOT
ANGULAR
ANDROID
Home
>
Forum
>
Android
Post New Query
Android ListView duplicate rows
Satya
Asked on August 13, 2015
I am getting duplicate rows in my Android ListView. How to remove it?
Anil
Replied on August 13, 2015
Check you code whether you have cleared the list before adding you data to list. Do as follows.
public void setYourBean(List<YourBean> data) {
list.clear();
list.addAll(data);
notifyDataSetChanged();
}
Write Answer
Login | Sign Up
Related Post
Errors running builder 'Android Package Builder' on project sun/misc/BASE64Encoder
Android SDK Manager not showing in Eclipse
Gradle Maven Theme
Android requires compiler compliance level 5.0 or 6.0. Found '1.8' instead.
How to create AdMob Smart Banner programmatically
Android remove action bar using AndroidManifest.xml
Android library projects cannot be launched error in eclipse
Android avoid activity restart on orientation change
Android - How to change ActionBar background color programmatically
Android dp to pixel conversion
Android get screen width and height programmatically
Android - How to make TextView clickable programmatically
Android - How to set and get TextView Background Color Programmatically
Android TextView set html text
How to open a URL in android App in browser
Android create and delete assets file
Android difference between res and assets
How to use Uri.parse in Android
Error: The specified child already has a parent. You must call removeView()
Android set focus on EditText or Button programmatically
Android hide show button programmatically
Android ListView delete item and refresh
How to show and hide soft keyboard in android
java.lang.SecurityException: Binder invocation to an incorrect interface
Android: java.lang.SecurityException: Not allowed to bind to service Intent
AndroidManifest.xml: Exported service does not require permission
android.content.res.Resources$NotFoundException: String resource ID
UnsupportedOperationException: URI: content://com.android.contacts/data/phones
Installation error: INSTALL_PARSE_FAILED_UNEXPECTED_EXCEPTION
SecurityException: Permission denied (missing INTERNET permission?)
Latest Forum Post
RestTemplate postForLocation() vs exchange()
(Spring)
RestTemplate postForEntity() vs exchange()
(Spring)
RestTemplate postForObject() vs exchange()
(Spring)
RestTemplate getForEntity() vs exchange()
(Spring)
RestTemplate getForObject() vs exchange()
(Spring)
Top Trends
Angular Radio Button and Checkbox Example
Angular Pattern Validation Example
Angular minlength and maxlength Validation Example
Angular Select Option Set Selected Dynamically
Angular Material Select Change Event
About Us
We are a group of software developers.
We enjoy learning and sharing technologies.
To improve the site's content,
your valuable suggestions
are most welcome.
Thanks
Email :
concretepage@gmail.com
Mobile Apps
SCJP Quiz
ConcretePage.com