Use Bypass Label Library in Android Studio

Like the title, I'm trying to use Bypass, the Markdown library for my Android application. However, since I am migrating from Eclipse to Android Studio, I could not figure out how to use the library. I believe that I am not the first person to encounter this problem. Please help.

github library: https://github.com/Uncodin/bypass

+4
source share
1 answer

You need to add a dependency in your application module /build.gradle(or where you need to use the bypass).

For instance: compile 'com.commit451:bypasses:1.0.1'

After that, you can start using this library in your code.

You have a usage example here

TextView text = (TextView) findViewById(R.id.demoText);
Bypass bypass = new Bypass();
String markdownString = "#Markdown!";
CharSequence string = bypass.markdownToSpannable(markdownString);
text.setText(string);
text.setMovementMethod(LinkMovementMethod.getInstance());
+5
source

Source: https://habr.com/ru/post/1599017/


All Articles