开发者

how to programmatically create/populate the view of a appwidget in android

开发者 https://www.devze.com 2023-02-03 19:35 出处:网络
Say I have a framelayout as the view of a appwidget. The framelayout have several children to form a layered structure. Depending on the application logic, the children in the framelayout can be remov

Say I have a framelayout as the view of a appwidget. The framelayout have several children to form a layered structure. Depending on the application logic, the children in the framelayout can be removed or开发者_如何学Go added. Is it possible to do so programmatically since a view of appwidget is a RemoteView ?


This will help you - http://developer.android.com/reference/android/widget/RemoteViews.html search for the addView method.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号