How to get the name of layout associated with an activity?

Viewed 7065

In onCreate() method, we can can use setContentView(R.layout.something) to associate a layout to an activity. Is there anyway I could retrieve something later for an activity?

I know I can use this.findViewById(android.R.id.content).getRootView() to get activity's content view but not sure if there anyway from there I can get something?

5 Answers
Related