Android Stories library - Instagram-like android stories library that supports images from disk or from internet (url)

Overview

Android Stories Library

Instagram like stories library for Android.

Alt text Alt text Alt text

Add it in your root build.gradle at the end of repositories:

allprojects {
	repositories {
		...
		maven { url 'https://jitpack.io' }
	}
}

Step 2. Add the dependency

dependencies {
	        implementation 'com.github.MrMak21:Android-Stories:1.1.4'
	}

Usage

  • Add view to Activity/Fragment layout
<gr.makris.androidstories.Stories
        android:id="@+id/stories"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        app:progressBarBackgroundColor="@color/gray" // --> progressBar bacground color
        app:progressBarColor="@color/white" // --> progressBar color
        app:storyDuration="3" // --> in seconds
        app:loadingViewProgressColor="@color/purple_700" />
  • You can also change the progress bar color & the background with these attributes
 app:progressBarBackgroundColor="@color/gray"
        app:progressBarColor="@color/white"
  • Then create a StoryItem() lists and pass it to Stories view.
    Kotlin example:
val storiesList = listOf<StoryItem>(
           StoryItem(url = "https://picsum.photos/300/500"),
           StoryItem(src = "R.drawable.cool_image"),
           StoryItem(url = "https://picsum.photos/300/500"),
           StoryItem(src = "R.drawable.cool_image_2")
       )

       val storiesView = findViewById<Stories>(R.id.stories)
       storiesView.setStoriesList(storiesList)
  • The StoryItem object can take 2 types of parameters:
  1. String (Useful for url's containing images)
  2. Int (You can load a Drawable file)

  • Also Android Stories library view containing all the instagram-like functionality. Press to the right to go next story, press to the left to go to the previous story or hold to pause time.

  • Android Stories library view also contains a callback so you know when the stories come to an end.
    All you have to do is implement StoriesCallback in your Activity/Fragment and override onStoriesEnd() method.
    Kotlin example:
class MainActivity : AppCompatActivity(), StoriesCallback
	...
   ...
   override fun onStoriesEnd() {
       	//do something
   }

Upcoming things

  • Set marginStart & marginEnd of story-progress view from xml
  • Set margin between every story-progress line on top of the view
  • Support videos
You might also like...
Twidere for Android

Twidere for Android Material Design ready and feature rich Twitter/Mastodon/Fanfou app for Android 4.1+. Enjoy Fediverse now! Twidere-Android is maint

A Reddit client for Android

This is a Reddit client on Android written in Java. It does not have any ads and it features clean UI and smooth browsing experience.

An unofficial open source Reddit client for Android.

RedReader An unofficial, open source Android client for Reddit. Features Free and open-source Software - no ads/tracking Lightweight and fast Swipe po

Slide is an open sourced, ad free Reddit browser for Android
Slide is an open sourced, ad free Reddit browser for Android

Slide Slide is an open source, ad free Reddit browser for Android. It is based around the Java Reddit API Wrapper. Slide is available on the Google Pl

Kickstarter for Android. Bring new ideas to life, anywhere.

Welcome to Kickstarter's open source Android app! Come on in, take your shoes off, stay a while—explore how Kickstarter's native squad has built and c

A light Sina Weibo client for Android
A light Sina Weibo client for Android

BlackLight 新浪微博客户端 请注意,当前BlackLight的开发已经被冻结,直到2016年高考后重启。 The development progress has been FROZEN till June 2016. 详细介绍以及Changelog请见Play商店。 https://pl

Cnblogs Client for Android - Material Design
Cnblogs Client for Android - Material Design

Cotable - Yet Another Cnblogs Client for Android Description Cotable = Code + Stable (The Paradise of Coder) The Android client of Cnblogs that named

GitHub client for Android based on the abandoned official app

ForkHub ForkHub started off as a fork of the official Android app from GitHub, and has since seen lots of improvements. You can see a comprehensive li

GitHub Android application

Gitskarios Beta Testing Community Forum / Discussion Join the beta here Download it from Google Play! What is Gitskarios? Gitskarios is an Android App

Releases(1.1.4)
Owner
Panagiotis Makris
Android Developer
Panagiotis Makris
Easy social network authorization for Android. Supports Facebook, Twitter, Instagram, Google+, Vkontakte. Made by Stfalcon

SocialAuthHelper A library that helps to implement social network authorization (Facebook, Twitter, Instagram, GooglePlus, Vkontakte). Who we are Need

Stfalcon LLC 97 Nov 24, 2022
Share twitter url to this app, and you will be redirected.

twitter2nitter - redirect twitter to nitter Share twitter url to this app, and you will be redirected. Redirect works for: Open twitter url with twitt

null 14 Dec 20, 2022
Open-source alternative Instagram client on Android.

Instagram client; previously known as InstaGrabber.

Austin Huang 1.1k Jul 23, 2021
Implementation of Instagram with Material Design (originally based on Emmanuel Pacamalan's concept)

InstaMaterial Updated Current source code contains UI elements from Design Support Library. If you still want to see how custom implementations of e.g

Mirosław Stanek 5k Dec 27, 2022
A basic instagram clone

Instafire A Approach of making instagram clone. Used kotlin for making and firebase firestore for storing and uploading data. One can login and logout

Divyansh Patel 3 Aug 6, 2021
Login effortlessly with different social networks like Facebook, Twitter or Google Plus

EasyLogin Easy Login in your app with different social networks. Currently supported: Facebook Google Plus Twitter Global Configuration To be able to

Maksim 91 Nov 25, 2022
Simple Twitter Client just for tweeting, written in Kotlin with reactive MVVM-like approach

Monotweety Simple Twitter Client just for tweeting. Monotweety is also available at F-Droid compatible repository called IzzyOnDroid F-Droid Repositor

Yasuhiro SHIMIZU 110 Nov 11, 2022
Library for easy work with Facebook, Twitter, LinkedIn and Google on Android

THIS PROJECT IS NO LONGER MAINTAINED, FEEL FREE TO FORK AND FIX IT FOR YOUR NEEDS There is also an Android Library that is being maintained, CloudRail

Anton Krasov 1k Dec 18, 2022
KTweet is a Kotlin Library that allows you to consume the Twitter API v2.

KTweet - A Kotlin Twitter Library KTweet is a library that allows you to use the Twitter API v2. Interested in Kotlin or KTweet? Join the Discord Setu

Thomas Carney 26 Dec 22, 2022
Youtube-dl for android

youtube-dl-android Android library wrapper for youtube-dl executable. Based on yausername's youtubedl-android but with ability to download binary file

Vikas 97 Dec 30, 2022