Problems with displaying XML-based layout and adding text dynamically?

If that is the case TextView dest = (TextView) findViewById(R.id. Destination) should be TextView dest = (TextView) eventView. FindViewById(R.id.

Destination).

If that is the case, TextView dest = (TextView) findViewById(R.id. Destination); should be TextView dest = (TextView) eventView. FindViewById(R.id.

Destination).

Perfect, thanks! – aspartame Sep 13 '09 at 9:41.

On the whole, I would recommend you use a ListView rather than a LinearLayout as your container for your rows. Problem number one is to add the layout to each event (the number of events is varying). I.e.

, I want to dynamically inflate this layout for each event. ParentView. AddView(getLayoutInflater().

Inflate(R.layout. This_is_my_row)).

Anyway, if you are able to help me with some of the problems it would be greatly appreciated. Thanks commonsware, now the views inflate properly. The problem now is adding text dynamically to the TextViews.

Only to discover that dest is null. Any ideas why and how to fix this?

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