8

setTextSize(float) not supported in remote TextView?

view full story
linux-howto

http://stackoverflow.com – I'm trying to set the text size of a remote TextView in a Widget like so: RemoteViews rv = new RemoteViews(mContext.getPackageName(), layoutId); rv.setFloat(R.id.subject, "setTextSize", 10f); While I can set other attributes like the text color or the change the view's visibility, when using the setTextSize the inflation fails with the following error message (no stack trace): Error inflating RemoteViews at position: 1, using loading view instead android.widget.RemoteViews$ActionException: view: android.widget.TextView doesn't have method: setTextSize (float) setTextSize(float) has the @ (HowTos)