How to create a custom view in application widgets similar to the widget in Google Play Music?

I just found out from the Google Play Music widget "What is this song?" and I was very surprised to see this user view in it:

enter image description here

How does this happen? As far as I know, you cannot have custom views in RemoteViews .

+4
source share
1 answer

Well, I think I know, and it's just pretty simple. It should be a simple ImageView that is updated every 400 ms with a generated raster image showing a wave. There is no animation between frames, so I think itโ€™s just a matter of drawing material on the canvas or creating a more advanced bitmap in the NDK layer. Interesting!

+1
source

Source: https://habr.com/ru/post/1491391/


All Articles