I am newbie to android (on mac using eclipse). Please let me know how to create a view dynamically and add it to main view.
Context:
Actually I want to show a view of processing on the main screen when user has performed any action.
Assuming that your main view is a ViewGroup and you already have an instance of it the code would look something like this:
TextView textView = new TextView(getContext());
textView.setText("Processing...");
mainView.addView(textView);