Skip to content

PhotoViewer is a simple wrapper library for Android Compount Controls. Square Image View is an Image View with an square dimension. Rectangle Image View is an image View with a rectangle dimension. SpiralPhotoView is a view group which is used to place multiple image view that is portrait or landscape in a single Spiral view.

Notifications You must be signed in to change notification settings

FazalHussain/PhotoViewer

Repository files navigation

Photo Viewer

Description

PhotoViewer is a simple wrapper library for Android Compount Controls. Square Image View is an Image View with an square dimension. Rectangle Image View is an image View with a rectangle dimension. SpiralPhotoView is a view group which is used to place multiple image view that is portrait or landscape in a single Spiral view.

Square Image View Rectangle Image View Spiral Photo Viewer

How to use Square AppCompat ImageView?

From xml:

<com.example.library.SquareImageView
        android:layout_centerInParent="true"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:background="@drawable/thinkoutsidethebox_newthumb" />

Rectangle Image View

From xml:

<com.example.library.RectangleImageView
        android:layout_centerInParent="true"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:background="@drawable/thinkoutsidethebox_newthumb" />

Spiral Photo Viewer

From xml:

<com.example.library.SpiralPhotoViewer xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:layout_gravity="center"
    tools:context=".MainActivity">


    <ImageView
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:background="@drawable/ulm" />


    <ImageView
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:background="@drawable/himeji" />

    <ImageView
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:background="@drawable/petronas_twin_tower" />


    <ImageView
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:background="@drawable/chiang_mai" />


</com.example.library.SpiralPhotoViewer>

Gradle dependency

Add it in your root build.gradle

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

In your project level's build.gradle:

dependencies {
    ...
    implementation 'com.github.Fazalcs13:SquareImageView:1.0.2'
}

About

PhotoViewer is a simple wrapper library for Android Compount Controls. Square Image View is an Image View with an square dimension. Rectangle Image View is an image View with a rectangle dimension. SpiralPhotoView is a view group which is used to place multiple image view that is portrait or landscape in a single Spiral view.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages