I understand that I can use support libraries to add elements that aren't natively available. However, does the newest SDK version (Lollipop, for example) use these support libraries as well, or does it use native elements? E.g. if I run the app on a Lollipop device, will it use native or support elements? I'm asking because, when editing source code (in Android Studio), I'm only editing one version of the file, I can't, for example, chose to create one file for ICS, and other for Lollipop, so how does the system know which elements to use?
How does Android support library work with target SDK level?
500 Views Asked by Aleksandar Stefanović At
1
There are 1 best solutions below
Related Questions in ANDROID
- Delay in loading Html Page(WebView) from assets folder in real android device
- MPAndroidChart method setWordWrapEnabled() not found
- Designing a 'new post' android activity
- Android :EditText inside ListView always update first item in the listview
- Android: Transferring Data via ContentIntent
- Wrong xml being inflated android
- AsyncTask Class
- Unable to receive extras in Android Intent
- Website zoomed out on Android default browser
- Square FloatingActionButton with Android Design Library
- Google Maps API Re-size
- Push toolbar content below statusbar
- Android FragmentPagerAdapter Circular listview
- Layout not shifting up when keyboard is open
- auDIO_OUTPUT_FLAG_FAST denied by client can't connect to localhost
Related Questions in ANDROID-STUDIO
- how do i submit a pastebin or pastee from an android app and get the url back
- Getresource id Error
- Call special fragment in Navigation Drawer Activity from separate Activity
- Debug native code in Android Studio
- How to introduce in this AlertDialog a onBackButtonPressed method?
- Android Studio : All of a sudden cannot resolve symbol 'ActionBarActivity'
- Error connecting to Google Play Games
- Android Studio - Illegal character 8204 error
- Android Studio unable to run the project
- How do I know what is available in minSdkVersion in Android Studio?
- Android Studio update (version 1.2.1.1) - Cannot resolve symbol 'TintCheckBox'
- How to accept cookies when using a webservice - Android?
- How can I always show Android Studios Preview?
- Android Studio cannot recognize "setAdapter()" method
- Error inflating class Android support design
Related Questions in ANDROID-SUPPORT-LIBRARY
- VectorDrawable Backwards Compatibility And Installing Unofficial Support Libraries
- RuntimeException while inflating InputTextLayout
- Android Studio update (version 1.2.1.1) - Cannot resolve symbol 'TintCheckBox'
- Drop shadow for Floating Action Button
- Error inflating class Android support design
- TextInputLayout with subscript label hint?
- Failed resolving Landroid/support/v7/app/AppCompatDelegateImplV7
- java.lang.NoClassDefFoundError: android.support.v4.view.LayoutInflaterCompat
- external library usage --> java.lang.IllegalStateException: You need to use a Theme.AppCompat theme (or descendant) with this activity
- Why Dialogfragment showing the alert dialog twice?
- How to set shared checkable behavior across all groups in NavigationView?
- Change background color of tabBar in v4 viewPager
- How does Android support library work with target SDK level?
- UNEXPECTED TOP_LEVEL EXCEPTION Multiple dex files define Landroid/support/annotation/AnimRes
- Android: Upon Rotation, Current Fragment Disappears (How to Save State)
Related Questions in ANDROID-APPCOMPAT
- android appcompat v22 2 Global theme overrides toolbar theme for burger icon
- How to remove Title Bar from Activity extending ActionBarActivity or AppcompatActivity with Dialog Theme
- PrefererenceFragment Material Theme with Support Library
- How to use android:Theme.Material (Material theme) in styles.xml android?
- ProgressBar not running smoothly loolipop
- Android Annotations - setContentView called last
- Navigation drawer icon not showing using appcompat v7
- Wrong background for CAB in landscape mode with appcompat-v7 22.2
- difference between Theme.AppCompat, @style/Theme.AppCompat, and @android:style/Theme.AppCompat
- How does Android support library work with target SDK level?
- How to implement the Material-design Elevation for Pre-lollipop
- Android AppCompat ProgressDialog?
- Actionbar in Dialog isn't working since Android Support Library v7, revision 22.1.0
- Android Toolbar Action button height
- Cannot resolve symbol AppCompatActivity - Support v7 libraries aren't recognized?
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
The Android framework does not use the support libraries.
If I am interpreting what you mean by "native", it uses native element. The Android framework does not use the support libraries.
You are certainly welcome to detect the running API level and elect to instantiate some level-specific class. You will see this used occasionally in the framework, though it is much more common in the Android support package, particularly for
...Compatclasses.There is only one version of Android per Android device. Hence, there is only one set of framework "elements" for the framework to use.
Some aspects of the look of the widgets are driven by themes, and each Android version ships with support for whatever stock themes existed, going back to
Themefrom API Level 1. If the developer has chosen to use a different theme based upon running API level (e.g., useTheme.Materialas a base on Android 5.0+ but useTheme.Holoas a base on Android 4.0-4.4), that is driven by resource set qualifiers (e.g.,res/values-v21/styles.xml).