-
Notifications
You must be signed in to change notification settings - Fork 24.9k
Closed
Labels
Resolution: LockedThis issue was locked by the bot.This issue was locked by the bot.
Description
I try to implement a custom view in a Android app. In the following code, my Toast is called but then I would like to apply a layout to my view.
public class YouTubeView extends View {
public YouTubeView(Context context, Context activity) {
super(context);
Toast.makeText(context, "Well done.", Toast.LENGTH_LONG).show();
}
}
Can I extend my class from something else to be able to add LinearLayout or whatever, set height and width and put some elements inside ? Can I use a xml layout that I could inflate ? The doc is not so accurate ...
I hope to be clear in my question.
Thank you very much for your answers.
Metadata
Metadata
Assignees
Labels
Resolution: LockedThis issue was locked by the bot.This issue was locked by the bot.