|
| 1 | +[](https://jitpack.io/#msayan/tutorial-view) |
| 2 | + |
| 3 | +# Tutorial View |
| 4 | + |
| 5 | +Ready to use tutorial screen. |
| 6 | + |
| 7 | + |
| 8 | + |
| 9 | +## Usage |
| 10 | + |
| 11 | +Extend your activity from TutorialActivity and Add fragments in onCreate after super call |
| 12 | + |
| 13 | +```java |
| 14 | + |
| 15 | +public class MainActivity extends TutorialActivity { |
| 16 | + |
| 17 | + @Override |
| 18 | + protected void onCreate(Bundle savedInstanceState) { |
| 19 | + super.onCreate(savedInstanceState); |
| 20 | + |
| 21 | + addFragment(new Step.Builder().setTitle("This is header") |
| 22 | + .setContent("This is content") |
| 23 | + .setBackgroundColor(Color.parseColor("#FF0957")) // int background color |
| 24 | + .setDrawable(R.drawable.ss_1) // int top drawable |
| 25 | + .setSummary("This is summary") |
| 26 | + .build()); |
| 27 | + } |
| 28 | +} |
| 29 | + |
| 30 | +``` |
| 31 | + |
| 32 | +## Download |
| 33 | + |
| 34 | +### Step 1. Add the JitPack repository to your build file |
| 35 | + |
| 36 | +Add it in your root build.gradle at the end of repositories: |
| 37 | + |
| 38 | +```groovy |
| 39 | +
|
| 40 | + allprojects { |
| 41 | + repositories { |
| 42 | + ... |
| 43 | + maven { url 'https://jitpack.io' } |
| 44 | + } |
| 45 | + } |
| 46 | +``` |
| 47 | + |
| 48 | +### Step 2. Add the dependency |
| 49 | + |
| 50 | +```groovy |
| 51 | +
|
| 52 | + dependencies { |
| 53 | + compile 'com.github.msayan:tutorial-view:v1.0.0' |
| 54 | + } |
| 55 | + |
| 56 | +``` |
| 57 | + |
| 58 | +## License |
| 59 | + |
| 60 | + MIT License |
| 61 | + |
| 62 | + Copyright (c) 2017 Mehmet Ayan |
| 63 | + |
| 64 | + Permission is hereby granted, free of charge, to any person obtaining a copy |
| 65 | + of this software and associated documentation files (the "Software"), to deal |
| 66 | + in the Software without restriction, including without limitation the rights |
| 67 | + to use, copy, modify, merge, publish, distribute, sublicense, and/or sell |
| 68 | + copies of the Software, and to permit persons to whom the Software is |
| 69 | + furnished to do so, subject to the following conditions: |
| 70 | + |
| 71 | + The above copyright notice and this permission notice shall be included in all |
| 72 | + copies or substantial portions of the Software. |
| 73 | + |
| 74 | + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR |
| 75 | + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
| 76 | + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE |
| 77 | + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER |
| 78 | + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, |
| 79 | + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE |
| 80 | + SOFTWARE. |
0 commit comments