Reputation: 2428
so as the question explains I want to know if I can use a standard view in my widget, I'm aware that widgets only allow certain types of views, namely they are : AnalogClock Button Chronometer ImageButton ImageView ProgressBar TextView ViewFlipper ListView GridView StackView AdapterViewFlipper, the documentation also says "Descendants of these classes are not supported." but what about the parent? can I use a normal view in my widget layout nothing fancy or custom just a plain view? say like this
<View
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@drawable/circle_green"
android:id="@+id/unread_count_badge"/>
Upvotes: 1
Views: 148
Reputation: 1746
No, you can't. You can only use widgets that describes in official documentation
Upvotes: 2