Skip to main content

Posts

Sticky Header Smooth Recycler view in Android

> Here is the example of Sticky Header view in recycler view with smooth scroll > Sticky header is a View over recycler view that will Stick on header of recycler view and shows some information > In this example i have filtered out the alphabets that will stick on header of recycler view. > Follow the following Steps to make a Recycler View with Sticky Header. > Here arrays.xml contains some dummy names so we can show up a demo. > Run this application and see the sticky header in your screen. > You can see the output in following video

JAVA V/S Kotlin | Switch to kotlin

So when we think about development in Android, and for the programming language the only thing comes in mind is JAVA right? The majority of android developer uses JAVA as a programming language for android app development But No, this is not an only option you can use any of language that can be compile and run ob JVM. So the main concept is the programming language comes in many way, one of them are Kotlin What is Kotlin? In july 2011 J etBrains unveiled Project Kotlin, new programming language for Java Virtual Machine. Kotlin is also one type of programming language that can be run on JVM ( JAVA Virtual Machine) or can be compile to JavaScript code or use the LLVM compiler infrastructure. There are many different thing in kotlin then JAVA. the major different in Syntax. The Syntax of Kotlin are far different than JAVA Basic Syntax of Kotlin fun main(args : Array<String>) { println("Hello, Android") } In the above code you can see ...

Retrofit Simple Example || Bind Data in Recycler View with full Source code | Android Studio

What is Retrofit? Retrofit is REST client for Android as well as JAVA by Square Retrofit easily retrieve and  upload JSON by using REST based web service. You can also configure a converter which is used for the data serialization. Generally for JSON we can use GSON or you can also add your own or custom converter to process other protocols or XML. In most case Retrofit uses the OKHTTP library for HTTP Request. For using Retrofit basically we need three classes Model Class Interface RetrofitBuilder class Let's start the code : First of all add following permission to your AndroidManifest.xml file. <uses-permission android:name="android.permission.INTERNET"/> <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/> <uses-permission android:name="android.permission.CHANGE_WIFI_STATE"/> Add following dependencies to your build.gradle file. compile ...

Simple View Pager using Fragment in Android Studio | Slide Navigation

View Pager In such case you have seen the slide in application while install it first time which will guide you how to use the particular application. Here is the small example which can be useful to you as a start up application. You just have to replace my Fragment Buttons to your image that's it. activity_main.xml < ? xml version = "1.0" encoding = "utf-8" ? > < RelativeLayout xmlns:android = "http://schemas.android.com/apk/res/android" xmlns:tools = "http://schemas.android.com/tools" xmlns:app = "http://schemas.android.com/apk/res-auto" android: id = "@+id/rl_pager" android:layout_width = "match_parent" android:layout_height = "match_parent" android:paddingBottom = "@dimen/activity_vertical_margin" android:paddingLeft = "@dimen/activity_horizontal_margin" android:paddingRigh...

API Level in Android

Android Version Released API Level Name Build Version Code Android 7.1 December 2016 25 Nougat Android.OS.BuildVersionCodes.NMr1 Android 7.0 August 2016 24 Nougat Android.OS.BuildVersionCodes.N Android 6.0 August 2015 23 Marshmallow Android.OS.BuildVersionCodes.M Android 5.1 March 2015 22 Lollipop Android.OS.BuildVersionCodes.LollipopMr1 Android 5.0 November 2014 21 Lollipop Android.OS.BuildVersionCodes.Lollipop Android 4.4W June 2014 20 Kitkat Watch Android.OS.Bui...