0
我正在寻找一种方法来在运行时更改主屏幕小部件/远程视图中 视图的位置。 我以前也看到this topic,但给出的答案并没有帮助我甚至没有工作。运行期间在RemoteView中设置视图位置
例如:
我试图通过5个像素TextView的的x位置偏移:
myRemoteView.setFloat(R.id.myTextView, "setTranslationX", 5); // does not work
myRemoteView.setFloat(R.id.myTextView, "setX", 5); // does not work
myRemoteView.setInt(R.id.myTextView, "setLeft", 5); // does not work
我找不到别的地方一个有用的答案,可以帮助我。
你解决了这个人吗? – Zen