Hello ! I'm new in the world of android dev and I have some troubles with some concepts.
My goal : I want to generate a pop-up window in my application that can dynamicly react to user actions. I mean, when I touch an item, some other appears. I generate the basics elements (all statics elements) of this screen with the layout generator. I'll probably generate my pop-up with : MyPopupWindow pp = new MyPopupWindow(); pp.setContentView(R.layout.popup_layout); Now I want, in java, add some elements. when i try to get my layout with the inflator,with something like that : LayoutInflater inflater=this.getLayoutInflater(); RelativeLayout rl = (RelativeLayout) inflater.inflate(R.layout.popup_layout, null); rl is a nullPointer ... I have some troubles to understand the way it works... Another thing is : setContentView(LayoutResId ...) : ok it's cool (use XML generated Layout to set the view) . But if I try to create my own view, wich take Context arg, there is only 1 method .layout( ... ) to associate a layout.... Just want to understand why I can't associate any Layout to a View... (it's probably a really noob question)... :D -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

