[ Web Proxy ]
URL:
Viewing: https://developer.android.com/reference/android/widget/SimpleAdapter.ViewBinder [Back]  [Original]

SimpleAdapter.ViewBinder  |  API reference  |  Android Developers Skip to main content
Essentials Design & Plan Develop Google Play Blog
Search:
Android Studio
Android Developers [Android Developers]
Stay organized with collections Save and categorize content based on your preferences.
Added in API level 1

SimpleAdapter.ViewBinder


public static interface SimpleAdapter.ViewBinder

android.widget.SimpleAdapter.ViewBinder


This class can be used by external clients of SimpleAdapter to bind values to views. You should use this class to bind values to views that are not directly supported by SimpleAdapter or to change the way binding occurs for views supported by SimpleAdapter.

See also:

Summary

Public methods

abstract boolean setViewValue(View view, Object data, String textRepresentation)

Binds the specified data to the specified view.

Public methods

setViewValue

Added in API level 1
public abstract boolean setViewValue (View view, 
                Object data, 
                String textRepresentation)

Binds the specified data to the specified view. When binding is handled by this ViewBinder, this method must return true. If this method returns false, SimpleAdapter will attempts to handle the binding on its own.

Parameters
view View: the view to bind the data to

data Object: the data to bind to the view

textRepresentation String: a safe String representation of the supplied data: it is either the result of data.toString() or an empty String but it is never null

Returns
boolean true if the data was bound to the view, false otherwise

Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.

Last updated 2026-08-03 UTC.

[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2026-08-03 UTC."],[],[]]

Web Proxy Viewer  |  New URL  |  Original Page