Add gif & tables plugin
This commit is contained in:
@@ -50,6 +50,8 @@ dependencies {
|
|||||||
implementation 'com.hypertrack:hyperlog:0.0.10'
|
implementation 'com.hypertrack:hyperlog:0.0.10'
|
||||||
implementation 'com.squareup.picasso:picasso:2.71828'
|
implementation 'com.squareup.picasso:picasso:2.71828'
|
||||||
implementation 'ru.noties.markwon:core:3.0.0'
|
implementation 'ru.noties.markwon:core:3.0.0'
|
||||||
|
implementation 'ru.noties.markwon:image-gif:3.0.0'
|
||||||
|
implementation 'ru.noties.markwon:ext-tables:3.0.0'
|
||||||
}
|
}
|
||||||
|
|
||||||
configurations {
|
configurations {
|
||||||
|
|||||||
@@ -21,7 +21,9 @@ import com.squareup.picasso.Picasso;
|
|||||||
import java.util.List;
|
import java.util.List;
|
||||||
import ru.noties.markwon.Markwon;
|
import ru.noties.markwon.Markwon;
|
||||||
import ru.noties.markwon.core.CorePlugin;
|
import ru.noties.markwon.core.CorePlugin;
|
||||||
|
import ru.noties.markwon.ext.tables.TablePlugin;
|
||||||
import ru.noties.markwon.image.ImagesPlugin;
|
import ru.noties.markwon.image.ImagesPlugin;
|
||||||
|
import ru.noties.markwon.image.gif.GifPlugin;
|
||||||
import ru.noties.markwon.movement.MovementMethodPlugin;
|
import ru.noties.markwon.movement.MovementMethodPlugin;
|
||||||
|
|
||||||
public class ListMessageAdapter extends BaseAdapter {
|
public class ListMessageAdapter extends BaseAdapter {
|
||||||
@@ -45,11 +47,14 @@ public class ListMessageAdapter extends BaseAdapter {
|
|||||||
this.picasso = picasso;
|
this.picasso = picasso;
|
||||||
this.items = items;
|
this.items = items;
|
||||||
this.delete = delete;
|
this.delete = delete;
|
||||||
|
|
||||||
this.markwon =
|
this.markwon =
|
||||||
Markwon.builder(context)
|
Markwon.builder(context)
|
||||||
.usePlugin(CorePlugin.create())
|
.usePlugin(CorePlugin.create())
|
||||||
.usePlugin(MovementMethodPlugin.create())
|
.usePlugin(MovementMethodPlugin.create())
|
||||||
.usePlugin(ImagesPlugin.create(context))
|
.usePlugin(ImagesPlugin.create(context))
|
||||||
|
.usePlugin(TablePlugin.create(context))
|
||||||
|
.usePlugin(GifPlugin.create())
|
||||||
.build();
|
.build();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user