How to inject a dialog view using Roboguice?

Currently roboguice does not support injecting views for things like Dialogs or Adapters. The code to handle it is fairly straightforward and patches to the roboguice project are certainly welcome.

Up vote 2 down vote favorite 2 share g+ share fb share tw.

It seems that roboguice can only inject views from the contentView defined in onCreate(...) of the activity. Outside onCreate(), for example, if I have my custom dialog, which has also a content view (e.g. Dialog. SetContentView(R.layout.

Dialog_layout);), how can I inject views from this dialog_layout in my activity? (I got null when I directly inject the dialog views in the activity) android roboguice link|improve this question edited Jan 31 '11 at 23:39sth58.5k668173 asked Nov 3 '10 at 9:53Mellon1,740536 66% accept rate.

Currently roboguice does not support injecting views for things like Dialogs or Adapters. The code to handle it is fairly straightforward and patches to the roboguice project are certainly welcome. Here is a link to adding some support for adapters, doing something with a dialog should be fairly similar.

Https://groups.google.com/d/topic/roboguice/dJqcGJTcTzs/discussion.

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