Skip to main content

Android On-boarding made easy

In this video, we show you the easy way to get Onboarding tutorial in your

Project THE EASY WAY


Step 1. Add the JitPack repository to your build file

Add it in your root build.gradle at the end of repositories:
 allprojects {
  repositories {
   ...
   maven { url 'https://jitpack.io' }
  }
 }

Step 2. Add the dependency

 dependencies {
  implementation 'com.github.msayan:tutorial-view:v1.0.10'
 }

Step 3   extend your activity  with Tutorialactivity


this is done in Kotlin by

class youractivityname : Tutorialactivity

step4 copy the code into your oncreate method

addFragment(new Step.Builder().setTitle("This is header")
                                      .setContent("This is content")
                                      .setBackgroundColor(Color.parseColor("#FF0957")) // int background color
                                       .setDrawable(R.drawable.ss_1) // int top drawable
                                      .setSummary("This is summary") 
                                      .build());



Comments

Popular posts from this blog

Shared Transition Animation Android

One of the more simple animations that can be done in Android is the shared transition animation. It is very effective and simple to achieve ,below we show you how to get this done with only a few lines of code where necessary. [1]  Edit your Window Transitions < style name ="AppTheme" parent ="Theme.AppCompat.Light.DarkActionBar" > <!-- Customize your theme here. --> < item name ="colorPrimary" >@color/colorPrimary</ item > < item name ="colorPrimaryDark" >@color/colorPrimaryDark</ item > < item name ="colorAccent" >@color/colorAccent</ item > < item name ="android:windowContentTransitions" >true</ item > </ style > [2]Create 2 separate elements of equal view types within 2 layouts and give the both the property of android :transitionName =" yourtransitionname" android :transitionName =" yourtransitionna...

Loading Local Webpage inside Android Webview

[1] first create an asset folder, and place all your local web page files and assets within that folder [2] create a web view within your layout folder of the activity [3] finally use the web filter load the local page/HTML using an example of the code below Simply do  this: WebView webView = (WebView)findViewById(R.id.webView1); webview.loadUrl("file:///android_asset/file.html")];