Skip to content

Android Library to work on an Onboarding slides, so there is no need to build this from scratch, Thank me later.

License

Notifications You must be signed in to change notification settings

Diego-r-pereira/Onboarding-Arduino-Library

Repository files navigation

Onboarding-Arduino-Library

Android Library to work on an Onboarding slides, so there is no need to build this from scratch, Thank me later.


Onboarding

  • Onboarding es una libreria que te permitira realizar slides entre fragments con el uzo de un adapter.
  • Esto consiste en que veras en la pantalla un fragment al que puedes cambiar con dos imagenes en la arte inferior para navegar entre las pantallas atras o adelante

Installation

Use the the web page jitpack to use the platform.

Lo primero que tienes que hacer es tener listo el proyecto que quieres volver libreria o crear uno desde cero.


Convert an app module to a library module

This tutorial is part of Developer site of Android

If you have an existing app module with all the code you want to reuse, you can turn it into a library module as follows:

  1. Open the module-level build.gradle file.
  2. Delete the line for the applicationId. Only an Android app module can define this.
  3. At the top of the file, you should see the following:

apply plugin: 'com.android.application'

Change it to the following:

apply plugin: 'com.android.library'

Save the file and click File > Sync Project with Gradle Files.


After that we have to set our proyect in JITPACK, to acommplish that our link of the proyect in Github is needed, we paste it on the following space:

linkJitpack

After that let's settle a release

release

This is for track the version of our repository, which is worth for JITPACK

release2

After that we got to push over the button named Look up as follow:

jitpack

And under that section you can find the way to put this on your own module:

links


Now that everything is settle about the configuration is time to use the library

I'll show you the main code and you can see the main events to put on your own

 @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);

        //initializeComponents
        _initializeComponents();

        //initializeAdapter
        _initializeFragmentAdapter();
    }
    public void _initializeComponents(){
        viewPagerContainer = findViewById(R.id.viewPagerContainer);
    }
 public void _initializeFragmentAdapter() {
        OnboardingAdapter adapter = new OnboardingAdapter(getSupportFragmentManager());
        viewPagerContainer.setAdapter(adapter);
    }

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License & copyright

Lincense by MIT open source

Contributors

Rojas Pereira Diego Alejandro

About

Android Library to work on an Onboarding slides, so there is no need to build this from scratch, Thank me later.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages