Skip to content

Repository files navigation

SnappyStory

Build StatusLicensePRs Welcome

A module that helps in modularizing Snapchat's story-like UI. Demo

Alt Text

Getting Started 👣

SnappyStory is distributed through Bintray

repositories {
maven { url "https://jitpack.io" }
}
dependencies {
implementation 'com.betacode:snappystory:0.2'
}

To start using SnappyStory

val comments =arrayListOf(
Comment("Naruto", "Dattebayo!"),
Comment("Goku", "Hmm"),
Comment("Gohan", "Hey"),
)
snap_view.load(
arrayListOf(
StoryModel(
R.drawable.badge_crown, 3, comments
),
StoryModel(R.drawable.badge_reward, 3, comments),
StoryModel(R.drawable.bg_no_item_cactus, 4, comments),
StoryModel(R.drawable.bg_no_item_city, 3, comments),
StoryModel(R.drawable.badge_crown, 3, comments)
),
object:SnappyStoryListener {
overridefunonAllFinished() {
}
overridefunonFinished(index:Int) {
}
overridefunsetImageFor(index:Int, story:StoryModel?, imageView:ImageView) {
// Extra Functionality
}
overridefunonStart() {
// pre-load images
}
}
)

In your Layout XML

<com.betacode.free.snappystory.view.SnappyStoryView xmlns:android="http://schemas.android.com/apk/res/android"android:id="@+id/snap_view"android:layout_width="match_parent"android:layout_height="match_parent" />

That's it! 🎉 Start Showing Stories in your App

Features 🧰

[To Be Added]

Configure 🎨

[To Be Added]

FAQ ❓

  • Why is it not working for me? - dependency issue maybe, create an issue if it doesn't work
  • Will it support other types of media? - Yes, all kinds but that will take time
  • There is a BUG!! - HERE
  • I have a FEATURE IDEA/REQUEST!!HERE

Contributing 🤝

Looking for contributors! Don't be shy. 😁 Feel free to open issues/pull requests to help me improve this project.

Releases

Packages

Contributors

Languages