All Projects → nikhil-sachdeva → SliderViewLibrary

nikhil-sachdeva / SliderViewLibrary

Licence: Apache-2.0 License
An easy to use Android Library to get slides in apps using images or image URLs

Programming Languages

java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to SliderViewLibrary

Deckdeckgo
The web open source editor for presentations
Stars: ✭ 1,117 (+3091.43%)
Mutual labels:  slideshow, slides
Press
Minimalist Markdown Publishing for Nuxt.js
Stars: ✭ 181 (+417.14%)
Mutual labels:  slideshow, slides
Nodeppt
This is probably the best web presentation tool so far!
Stars: ✭ 9,589 (+27297.14%)
Mutual labels:  slideshow, slides
slipshow
An engine for displaying slips, the next-gen version of slides
Stars: ✭ 17 (-51.43%)
Mutual labels:  slideshow, slides
Reveal.js
The HTML Presentation Framework
Stars: ✭ 57,980 (+165557.14%)
Mutual labels:  slideshow, slides
Webslides
Create HTML presentations in seconds —
Stars: ✭ 5,778 (+16408.57%)
Mutual labels:  slideshow, slides
Slideshow
slideshow gems - write your slides / talks / presentations in plain text with markdown formatting conventions
Stars: ✭ 173 (+394.29%)
Mutual labels:  slideshow, slides
Big
presentations for busy messy hackers
Stars: ✭ 3,208 (+9065.71%)
Mutual labels:  slideshow, slides
Libreoffice Impress Templates
Freely-licensed LibreOffice Impress templates
Stars: ✭ 238 (+580%)
Mutual labels:  slideshow, slides
Asciidoctor Reveal.js
🔮 A reveal.js converter for Asciidoctor and Asciidoctor.js. Write your slides in AsciiDoc!
Stars: ✭ 219 (+525.71%)
Mutual labels:  slideshow, slides
Gatsby Starter Deck
🗣 Create presentations using Gatsby, React & Markdown.
Stars: ✭ 522 (+1391.43%)
Mutual labels:  slideshow, slides
markdown-slides
Using markdown, write simple but beautiful presentations with math, animations and media.
Stars: ✭ 64 (+82.86%)
Mutual labels:  slideshow, slides
Godot Power Pitch
International pitch for the Godot Game Engine, made in Godot, available in 15+ languages
Stars: ✭ 348 (+894.29%)
Mutual labels:  slideshow, slides
Backslide
💦 CLI tool for making HTML presentations with Remark.js using Markdown
Stars: ✭ 679 (+1840%)
Mutual labels:  slideshow, slides
Hacker Slides
A small UI for building presentation slides from markdown markup
Stars: ✭ 316 (+802.86%)
Mutual labels:  slideshow, slides
Patat
Terminal-based presentations using Pandoc
Stars: ✭ 1,725 (+4828.57%)
Mutual labels:  slideshow, slides
Vue Infinite Slide Bar
∞ Infinite slide bar component (no dependency and light weight 1.48 KB)
Stars: ✭ 190 (+442.86%)
Mutual labels:  slideshow, slides
elm-slice-show
A simple presentation engine in Elm
Stars: ✭ 59 (+68.57%)
Mutual labels:  slideshow, slides
s6
S6 Blank - Slideshow templates using HTML 5, CSS 3 'n' JavaScript 2017+ w/ Bespoke.js-compatible "microkernel"
Stars: ✭ 91 (+160%)
Mutual labels:  slideshow, slides
markdownslides
A "markdown-first" approach for generating beautiful browser-based slides easily. Based on Reveal.js and Reveal-Jekyll.
Stars: ✭ 37 (+5.71%)
Mutual labels:  slides

SliderViewLibrary

Android Arsenal
An easy to use Android Library to get slides in apps using images or image URLs

Medium Article to implement SliderView from scratch. Link

Also here

Gradle

Step 1. Add this 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.nikhil-sachdeva:SliderViewLibrary:1.0'
	}

Add SliderView to your activity_main.xml.

<com.example.sliderviewlibrary.SliderView
    android:id="@+id/sliderView"
    android:layout_centerHorizontal="true"
    android:layout_width="300dp"
    android:layout_height="200dp"/>

Adjust layout height and width based on the size of images to be used.

Either use list of images as resources.

ArrayList<Integer> images = new ArrayList<>();
images.add(R.drawable.pic1);
images.add(R.drawable.pic2);
images.add(R.drawable.pic3);
sliderView.setImages(images);

Or use list of URLs. (Add < uses-permission android:name="android.permission.INTERNET"/ > in AndroidManifest.xml to access internet.)

ArrayList<String> Urls = new ArrayList<>();
Urls.add("url1");
Urls.add("url2");
Urls.add("url3");
sliderView.setUrls(Urls);

To implement time-based auto swiping, define DELAY_MS and PERIOD_MS as int variables to define delay and time period for swipes respectively. And then execute a TimerTask on main UI thread as follows.

TimerTask task = sliderView.getTimerTask();
Timer timer = new Timer();
timer.schedule(task,DELAY_MS,PERIOD_MS);

And Voila!

Copyright 2019 Nikhil Sachdeva

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].