Khánh Đoan
New member
How do I create a widget on Android?
Answer
Task 1. Set up the app widget project
Answer
Task 1. Set up the app widget project
- Create a new Android project.
- Open res/layout/activity_main.xml .
- Change the android:text attribute of the TextView to read “All the functionality for this app is in the app widget.”
- Select File > New > Widget > AppWidget.
- Build and run the project in Android Studio.