itzikbraun / tutorialview Goto Github PK
View Code? Open in Web Editor NEWAn Android library project providing Activity with explanation about views in your app.
An Android library project providing Activity with explanation about views in your app.
If no font is set then the library crashes:
E java.lang.NullPointerException
E at android.graphics.FontFamily.nAddFontFromAsset(Native Method)
E at android.graphics.FontFamily.addFontFromAsset(FontFamily.java:70)
E at android.graphics.Typeface.createFromAsset(Typeface.java:185)
E at com.braunster.tutorialview.view.AbstractTutorialView.initTypeFace(AbstractTutorialView.java:466)
E at com.braunster.tutorialview.view.AbstractTutorialView.setTutorial(AbstractTutorialView.java:285)
E at com.braunster.tutorialview.view.TutorialLayout.setTutorial(TutorialLayout.java:81)
E at com.braunster.tutorialview.TutorialActivity.onWindowFocusChanged(TutorialActivity.java:110)
E at com.android.internal.policy.impl.PhoneWindow$DecorView.onWindowFocusChanged(PhoneWindow.java:3174)
E at android.view.View.dispatchWindowFocusChanged(View.java:8680)
E at android.view.ViewGroup.dispatchWindowFocusChanged(ViewGroup.java:1055)
E at android.view.ViewRootImpl$ViewRootHandler.handleMessage(ViewRootImpl.java:3284)
E at android.os.Handler.dispatchMessage(Handler.java:102)
E at android.os.Looper.loop(Looper.java:135)
E at android.app.ActivityThread.main(ActivityThread.java:5254)
E at java.lang.reflect.Method.invoke(Native Method)
E at java.lang.reflect.Method.invoke(Method.java:372)
E at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:903)
E at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:698)
Process I Sending signal. PID: 8443 SIG: 9
Hey, I'm working in Android Studio and I would like to try using your library for a project I'm working on, but my limited knowledge of gradle and maven and stuff is getting in my way for importing it. Every library I've used so far was imported by putting a line:
compile '::'
in my build.gradle file. Is that doable with your library?
Error:(52, 0) Gradle DSL method not found: 'com.github.itzikbraun:TutorialView:0.8.1()'
Possible causes:
I just wanted to know if is there any plan for support lower SDK versions?
Hi,
would it be possible to publish the library on some repo of your choice (doesn't have to necessarly to be Maven Central)?
So far, I've been able to grab it via jitpack
https://jitpack.io/#itzikBraun/TutorialView/72d07059a9
That for sure would simplify a lot the update process to a new version.
P.S.: the library is awesome!
Great lib!
Is ther any way to change the text of those buttons?
I mean actions like opening a menu or use of closeTutorial() get next tutorial or both ??
Hi @itzikBraun i developed sample app to see how your libray works.
I have a textview with text "Hello World" and i tried it with your library to describe its purpose.
The Tutorial got generated but the View was not surrounded/Higlighted by another view.
Below is a link to the image describing the issue.
I used the following code.
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
tv1 = (TextView)findViewById(R.id.tv_msg);
tv2 = (TextView)findViewById(R.id.tv_msg_2);
TutorialIntentBuilder builder = new TutorialIntentBuilder(MainActivity.this);
TutorialBuilder builder1 = new TutorialBuilder();
builder.changeSystemUiColor(false);
builder1.setTitle("The Title")
.setViewToSurround(tv1)
.setInfoText("This is the explanation about the view.")
.setBackgroundColor(Color.parseColor("#aa000000"))
.setTutorialTextColor(Color.WHITE)
.setTutorialTextTypeFaceName("fonts/roboto_light.ttf")
.setTutorialTextSize(25)
.setAnimationDuration(500);
TutorialBuilder builder2 = new TutorialBuilder();
builder2.setTitle("The Title")
.setViewToSurround(tv2)
.setInfoText("This is the explanation about the view.")
.setBackgroundColor(Color.parseColor("#aa000000"))
.setTutorialTextColor(Color.RED)
.setTutorialTextTypeFaceName("fonts/roboto_light.ttf")
.setTutorialTextSize(25)
.setAnimationDuration(500);
tutorials.add(builder1.build());
tutorials.add(builder2.build());
builder.skipTutorialOnBackPressed(true);
builder.setWalkThroughList(tutorials);
startActivity(builder.getIntent());
// builder.setTutorial(tBuilder.build());
// startActivity(builder.getIntent());
}
Now it is not work. Can you provide example tutorial list pls?
Thanks!
How to make it work with FragmentActivity?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.