Coder Social home page Coder Social logo

blaze's Introduction

Blaze

Provide view for Moving Image and Zooming Image. Easy to create continuosly moving background.

Android Arsenal Apache License API Download

View Available

Demo App - IS Library

Get it on Google Play

Zoom View

gif


Motion View

gif

#Download ###Download via JitPack #####Step 1. Add it in your root build.gradle at the end of repositories:

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

#####Step 2. Add the dependency

compile 'com.github.IntruderShanky:Blaze:2.1.0'

####OR ###Download via Gradle

compile 'com.intrusoft.library:blaze:2.1.0'

Implementation

Motion View

XML Implementation:

<?xml version="1.0" encoding="utf-8"?>
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:blaze="http://schemas.android.com/apk/res-auto"
    xmlns:tools="http://schemas.android.com/tools"
    android:id="@+id/activity_main"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    tools:context="com.intrusoft.blaze.app.MainActivity">

    <com.intrusoft.blaze.MotionView
        android:id="@+id/motion_view"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        blaze:src="@drawable/your_image"
        blaze:translation_factor="3" />
</FrameLayout>
blaze:translation_factor 
<!-- defines the animation speed-->

Java Implementation:

MotionView motionView = (MotionView) findViewById(R.id.motion_view);

// to set image from resources        
motionView.setImageResource(R.drawable.your_image);
                
// to set bitmap
motionView.setImageBitmap(yourBitmap);
        
// to set the animation speed
motionView.setTranslationFactor(4);    

Zoom View

XML Implementation:

<?xml version="1.0" encoding="utf-8"?>
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:blaze="http://schemas.android.com/apk/res-auto"
    xmlns:tools="http://schemas.android.com/tools"
    android:id="@+id/activity_main"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    tools:context="com.intrusoft.blaze.app.MainActivity">

    <com.intrusoft.blaze.ZoomView
        android:id="@+id/zoom_view"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        blaze:src="@drawable/place_holder"
        blaze:translation_factor="0.4" />
</FrameLayout>
blaze:translation_factor 
<!-- defines the animation speed-->

Java Implementation:

ZoomView zoomView = (MotionView) findViewById(R.id.motion_view);

// to set image from resources
zoomView.setImageResource(R.drawable.your_image);

// to set bitmap
zoomView.setImageBitmap(yourBitmap);

// to set the animation speed
zoomView.setTranslationFactor(0.4f);

Licence

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.

blaze's People

Contributors

intrudershanky avatar

Stargazers

 avatar Jacob William avatar  avatar

Watchers

James Cloos avatar Habibur Rahman avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.