Posts

Showing posts from January, 2019
Image
Android 3.3 and its amazing Navigation feature



     I hope this article will be read by persons who want to work as android developers, but they considered it is too complicated or the interface is not very friendly. 

     Android 3.3 comes with new features in order to make app development easier. The best thing in my opinion is the Navigation component, which make easier the view of the entire app.

Now it’s easier to handle the User Interface flow, to handle Up and Back actions properly by default, to be more creative but in the same time to respect the logic standards.

How to use it?


1.Add the dependencies in the project Gradle file:
 implementation "android.arch.navigation:navigation-fragment:$nav_version" // use -ktx for Kotlin
implementation "android.arch.navigation:navigation-ui:$nav_version" // use -ktx for Kotlin

2.Create a new folder in “Res” and then add a new xml file(for resource-type select navigation).

3.      Go to "Design" option- like at …
Image
AndroidX or "No more stress with the compatibility of the Android Support Libraries"

         Android already have 10 years since it has been release and of course, numerous versions with new features added and constant improvements.  Developers had to make sure they have always the same version of the Android Support Library or otherwise some problems might appear in Gradle.
 Ta-na-na! the solution is migrating to AndroidX.


-Android Studio has to be 3.2.1(Toolbar-Help-About to check the android version);
-You need to have compile at least have compileSdk 28(Android 9.0);
-In build.gradle(Project) has to be classpath com.android.tools:gradle:3.2.1

How to migrate: Toolbar->
Refractor->
Migrate to AndroidX.

        I It t will appear a message of possible errors and then the option “Do Refractor”. Also, the option to zip the project folder and to save it somewhere in your computer. In a few moment the Gradle will sync, I personally didn’t have any problems with my project…