Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试使用 RemoteViews.setTextViewTextSize 动态设置小部件的文本大小。我希望它与小部件的尺寸成正比。
您如何确定小部件的尺寸?
实际上,您自己将您的尺寸放入AppWidget文件XML中。所以你不需要确定任何尺寸!在可调整大小的小部件实例的情况下,您无法获得尺寸!
AppWidget
XML