this.getWindow().getDecorView().findViewById(android.R.id.content)
or
this.findViewById(android.R.id.content)
or
this.findViewById(android.R.id.content).getRootView()
More Related Contents:
- How can I avoid concurrency problems when using SQLite on Android?
- IllegalStateException: Can not perform this action after onSaveInstanceState with ViewPager
- Using intents to pass data between activities
- MSISDN : Is it a SIM Card Data? Why all The Provided Function (from Blackberry and Android) to fetch MSISDN not reliable?
- How to control the width and height of the default Alert Dialog in Android?
- SimpleCursorTreeAdapter and CursorLoader for ExpandableListView
- Android Fragments. Retaining an AsyncTask during screen rotation or configuration change
- Android Studio says “cannot resolve symbol” but project compiles
- How to save HashMap to Shared Preferences?
- Is it possible to create turn-by-turn GPS navigation app on Android/iOS using Google Maps?
- How to change package name of Android Project in Eclipse?
- Android – How to download a file from a webserver
- How to Print PDF using Android 4.4 Printing framework [closed]
- How to use View.OnTouchListener instead of onClick
- LocationListener of NETWORK_PROVIDER is enabled but , onLocationChanged is never called
- MediaStore – Uri to query all types of files (media and non-media)
- How to handle AsyncTask’s in ActionBarActivity Fragments when ViewPager is used?
- R cannot be resolved to a variable
- How can I use Firebase Functions to send FCM to user?
- Gradle error upgrading to Android Studio 3.0 Beta 1
- How to Record Android Screen Video programmatically in KitKat 4.4
- How to autofocus Android camera automatically?
- Call Audio Stream Modification in Android 4.0 ICS
- Android: startActivityForResult & setResult for a view class and an activity class
- Android “Hello, MapView” Tutorial – Map Tiles Do Not Load
- Android MediaStore insertVideo
- Add an Image from url into custom InfoWindow google maps v2
- Use of Context to start another Activity
- Is there an API to detect which theme the OS is using – dark or light (or other)?
- replace layout on orientation change