Android. how can I include a custom view in an existing XML layout?

Try this line to add the view: ((LinearLayout) findViewById(R.id. TopLinearLayout)). AddView(new SplashScreenAnimation(this)).

You should be able to include it just like any other view in your layout. Have you tried and then set your content view to the entire xml layout?

Yes, I have tried this. I get force closes :( – jducreux Sep 19 at 14:56.

It's pretty easy, you just need to include the full package name of the class extending the View class.

Yes I have tried this, I get force closes :( – jducreux Sep 19 at 14:56.

The sections below explain how to create custom Views and use them in your application. For detailed reference information, see the View class. With your own class.

Override some of the methods from the superclass.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions