> I am trying to do aRemoteViews.setBoolean(R.id.a_text_view, > "setSelected", true) on a text view in a homescreen widget to select > the view, but I only get the textview to display a text like "error > expanding view"(!). The log says: > android.widget.RemoteViews$ActionException: view: > android.widget.TextView can't use method with RemoteViews: setSelected > (boolean). > > Ok, so I cannot use setSelected (through reflection) on the remote > text view(?). But I would still like to set it to selected to get the > maquee-scrolling going again (which worked with the initial view, > before the update of the text).
Re-inflate the view and update the whole thing, just as you did with the initial view. Unfortunately, lots of useful methods (e.g., setSelected()) are not annotated to be allowed for use via RemoteViews. -- Mark Murphy (a Commons Guy) http://commonsware.com Android App Developer Books: http://commonsware.com/books.html -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

