How do I create a widget on Android?

Khánh Đoan

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

Tìm kiếm

Back
Top