Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 5840545
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T11:45:44+00:00 2026-05-22T11:45:44+00:00

I have searched for some similar questions before posting – however I have a

  • 0

I have searched for some similar questions before posting – however I have a general question when it comes to Android and data binding (and the other answers I check did not really get me much further…). Assume you have a class Vehicle:

public class Vehicle {

private Owner owner;
private String brand;

//getter and setter for above attributes...

}

and here is the Owner class ….

public class Owner {

private String name;

}

Now – I was just recently looking into MVVM (ModelView-ViewModel) pattern as employed by Microsofts WPF. Which got me wondering: Assuming I would want to bind the name property of my owner object which is a child of the Vehicle object – would there be some standard way in Android to achieve this? Also presuming, that I might have to validate input before I can have the Model updated?

I was imagining the following components (assuming MVVM):

  • The View (an Activity) contains no application logic – so its more or less empty
  • A ViewModel would handle the instance of the Vehicle object and perform actions on it
  • The Model itself would look as the code I posted before – totally oblivious to the View
    and the ViewModel

Now when I add my EditTexts, TextViews and so on to the view, I want them to bind to certain the properties of my context object (Vehicle in this case) … Mhhh if my question is not clear or you need further informatio do let me know 🙂 thanks in advance.

P.s. I think people familiar with WPF might now what I mean? I myself just read about WPF and found it’s a nice way to handle stuff.

P.P.s I am aware of the android binding project but I was wondering if there is a sort of build-in approach in Android or maybe some convention someone is following 🙂 this really is more of a binding-theory question I guess …

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-22T11:45:45+00:00Added an answer on May 22, 2026 at 11:45 am

    There is nothing “baked” into the Android SDK which provides equivalent databinding functionality found in MS WPF. Google is providing a lower level interface for the various devices running Android. To date, higher level application frameworks have not emerged from the Android development community. (IMHO, it would take a monster company like Google to create such a thing, given all the different constraints on a framework for all the various Android devices.)

    You could create a set of databinding classes in your own application to handle your needs for the MVVM pattern. The “Databinders” would set the relevant event handlers on Android View objects and run some appropriate method on your ViewModel objects in response. They would also translate change events (that you define) on the ViewModel into the appropriate property assignments on the View objects.

    Whether that turns out to be worthwhile for your application is a judgment call. My guess is that it would require more effort to write the Databinder classes than just to hook the lower level View event handlers directly. Frameworks are useful primarily when you didn’t have to write them yourself.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have seen some similar questions on stackoverflow and on searched on google too
I have checked the questions with similar titles, and searched, but found nothing. But
I have searched the forum for this , but found no similar question, okay
I have searched this topic on google a bit and seen some best practices.
I face some layout differences in IE and in Chrome. I have searched Stack
I am having some trouble creating a seamless photo grid. I have searched the
I've searched the Internet and have found some good solutions for teeing STDOUT to
I have searched for a general solution to this but only find answers to
I know there are already several similar questions here, but I need some recommendations
I searched the question similar to my problem Similar problem . But my problem

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.