Git Product home page Git Product logo

phonetutorial's Introduction

Phone tutorial logo

Phone tutorial

Android app on Google Play

Phone tutorial giff

How to use

If you want use this library, you only have to download PhoneTutorial project, import it into your workspace and add the project as a library in your android project settings.

If you prefer it, you can use the gradle dependency, you have to add these lines in your build.gradle file:

repositories {
    jcenter()
}

dependencies {
    compile 'com.github.navasmdc:PhoneTutorial:1.+@aar'
}

This library support Android 2.2

You have to add this lines in the AndroidManifest.xml file too:

<activity
        android:name="com.gc.phonetutorial.activities.TutorialActivity"
        android:screenOrientation="portrait">
</activity>

Configuration

You can configure some elements of this Activity:

  • TITLES (Mandatory) Top titles for each image
  • IMAGES (Mandatory) Image for each screen
  • COLORINDICATOR Text color for titles and ball page indicator
  • COLORBACKGROUND Background color of activity
  • COLORBUTTON Change color of nect button
  • COLORICON Change color of icon in the NextButton
  • ICON Change default icon in the NextButton for other

For more information see MainActivity of DemoTutorialProyect.

Launch activity

For launch this activity you must add this line in your code:

	startActivityForResult(tutorialIntent, TUTORIALACTIVITY);

Configure next button

For configure next button you have to override onActivityResult function, for example:

	final int TUTORIALACTIVITY = 0;
	
	@Override
	protected void onActivityResult(int requestCode, int resultCode, Intent data) {
		
		if(requestCode == TUTORIALACTIVITY){
			if(resultCode == Activity.RESULT_OK){
				// CLick in next button
				Toast.makeText(this, "Next", Toast.LENGTH_SHORT).show();
			}
		}
		
	}

phonetutorial's People

Contributors

navasmdc avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.