How do I create a widget on Android? Answer
Now you will set up layout for the widget you want to create. Thanks to Android Studio, it does this for you automatically. Right click on res -> New -> Widget -> App Widget. Once you click on it, a window will open.