GithubHelp home page GithubHelp logo

yohamza / tnimageview-android Goto Github PK

View Code? Open in Web Editor NEW
17.0 2.0 6.0 247 KB

Android Library for making scale-able and rotatable image views or giving this power to your own image view. This repo has been depreciated.

License: MIT License

Java 100.00%
android imageview rotatable resizable scalable android-library customizable image image-processing draggable

tnimageview-android's Introduction

TNImageView-Android Release Android Arsenal

This Repo is not maintained any more.

Android Library for making scale-able and rotatable image views or giving this power to your own image view

Independent they are :p ------ Independent they are :p

Installing

For a working implementation of this project see the app/ folder.

  1. Add it in your root 'build.gradle' at the end of repositories:
	allprojects {
		repositories {
			...
			maven { url 'https://jitpack.io' }
		}
	}
  1. Include the following dependency.
compile 'com.github.AmeerHamzaaa:TNImageView-Android:0.1.2'

Usage

  1. In your onCreate method (or onCreateView for a fragment), initialize the TNImageView object:
// Initialize the TNImageView object
TNImageView tnImage = new TNImageView():

// pass your ImageView which you want to make rotatable and scaleable
tnImage.makeRotatableScalable(imageview);

//you can also select if the touched view comes to front or not
tnImage.bringToFrontOnTouch(true);

Remember

Put all your imageviews inside a relativeLayout they will not work with any other layout. We are working on it.

That's all you need to do, but if you want to add a list of ImageViews, then use this function

// add your imageviews to a list and than pass the list to the object it will make all of them rotatable and scalable.
tnImage.addListofImageViews(imageViews);

Please open an issue if you find things, that are missing.

If you think this library is useful, please press star button at upside.


Developed By

Contributions

  • Please, read the README file before opening an issue, thanks.
  • Please, all the Pull Request must be sent to the dev branch, thanks..

License

MIT License

Copyright (c) 2017 Ameer Hamza

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

tnimageview-android's People

Contributors

mansya avatar yohamza avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

tnimageview-android's Issues

New icon / logo

Hi, I am a graphic designer, I want to help others in graphic design.

After I reviewed your project, you have no logo on this project. Therefore I want to contribute to this project by creating a new logo / icon. what do you think?

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.