Is there a view in android, that can store one object and display the object’s toString() return value like a TextView?
Or do I have to mimic the behaviour in taking a ListView and ensure that only one item is in its adapter?
I need this, because I use drag & drop to move objects around and I need a view, that can display and store one of the objects.
Thank you!
yes, there is such a view and you already mentioned it. it’s called
TextView, and you’d use it like this,if you don’t like like that, extend TextView like this,