Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can you explain why support v4 and v7 on android

I was checking support library for android, but i cant understand why they divided into v4 and v7 ?

Why just don't use one support library for all versions? Or even all classes on support, be on SDK properly?

like image 555
user1851366 Avatar asked Jan 02 '15 22:01

user1851366


People also ask

What is v4 and v7 in Android?

difference. v4 has largest set of API's than others like App component, User Interface Feature, data handling ,network connectivity and utilities. v7 provided specfic feature sets that can be included in your app independently.

What is Android v7?

v7 cardview library These cards are useful for material design implementations, and are used extensively in layouts for TV apps. The Gradle build script dependency identifier for this library is as follows: com. android. support:cardview-v7:28.0.

What are support libraries in Android?

The Android Support Library package is a set of code libraries that provide backward-compatible versions of Android framework APIs as well as features that are only available through the library APIs. Each Support Library is backward-compatible to a specific Android API level.

What is the difference between AndroidX and Android support?

AndroidX is a major improvement to the original Android Support Library, which is no longer maintained. androidx packages fully replace the Support Library by providing feature parity and new libraries.


1 Answers

v4 support library and v7 support library both support android version 2.3(API level 9) and higher and required for backward compatibility for older devices.

difference

v4 has largest set of API's than others like App component, User Interface Feature, data handling ,network connectivity and utilities.

v7 provided specfic feature sets that can be included in your app independently.

There is also v7 AppCompact and v13 SupportLbrary :

v7 AppCompact - for ActionBar user interface and design . it required v4 also.

v13 SupportLbrary - android version 3.2(API level 13) and higher and supports fragment user interface Pattern

like image 109
Mr. Droid Avatar answered Sep 22 '22 06:09

Mr. Droid