
Code vs Color | Android
1,118 FOLLOWERS
A personal blog by Nandan Kaushik, who loves to code, paint and click photos. He has been working on Android for almost 3.5 years. He wanted to be a painter till he learnt how to code. That's the reason he named his blog "codevscolor".
Code vs Color | Android
4y ago
This Kotlin Android tutorial will show you how to pass data from one activity to another. We will use Android studio in this example ..read more
Code vs Color | Android
4y ago
Learn how to change theme in android studio. We can switch to dark and light them from the preference and also we can download third party themes easily ..read more
Code vs Color | Android
4y ago
Android program to hide software keyboard programmatically in Kotlin. Keyboard opens automatically when we clicks on an EditText. We can also programmatically hide it using system service ..read more
Code vs Color | Android
4y ago
Learn to create a recyclerview in Kotlin with image and other info. We will load the data from an API and load the data in it ..read more
Code vs Color | Android
4y ago
Learn how to delete an item from recyclerview in kotlin. We will create one delete button to delete one item from the recyclerview. You will learn how to delete and refresh a recyclerview ..read more
Code vs Color | Android
4y ago
Learn how to change the application name and package name in Android Studio. In this post, I will show you how to use Android studio to change the name and package of an Android project ..read more
Code vs Color | Android
5y ago
Configure Glide :
Go (here)[https://github.com/bumptech/glide] to check for the latest version of Glide. Open your build.gradle in your project file and add the below to the repositories tab :
repositories {
mavenCentral()
google()
}
Next, open the build.gradle module level file and add the below dependencies to add Glide :
implementation 'com.github.bumptech.glide:glide:4.11.0'
annotationProcessor 'com.github.bumptech.glide:compiler:4.11.0'
Make sure to pick the latest versions.
Sync the Android studio project. Next, we will add one ImageView and load image to it using Glide :
  ..read more
Code vs Color | Android
5y ago
Java 8 Development using Android Studio :
Using Android Studio 3.0 preview 1 and later, some subset of Java 8 language features can be used on Android projects. Some features are compatible with all API levels and some are only for API level 24 and higher. Previously for using Java8 on Android projects, jack toolchain, Retrolambda or DexGuard was used. Jack toolchain is now deprecated ( check this post ) and the Java 8 support is moved to the default keychain. You can still use Jack or other libraries but it is advisable to migrate to the default toolchain.
Migration :
If you have a project ..read more
Code vs Color | Android
5y ago
Bottom Navigation View in Android :
Gif: Bottom Navigation View Demo App
Previously to implement Bottom Navigation View in an android application, we need to use third party libraries. But with the release of the V25 of Design Support library, we can easily implement it with full backward support.
Known as “BottomNavigationView“, this widget is same as TabLayout .BottomNavigationView takes the input entries from a menu resource file. Lets check how BottomNavigationView works :
1. Create a simple Application with activity “MainActivity” and its resource file “activity_main.xml“.
2. Add Design ..read more