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.
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.
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" ></com.example.library.SquareImageView>
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" ></com.example.library.RectangleImageView>
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>
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="@drawable/himeji" ></ImageView>
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="@drawable/petronas_twin_tower" ></ImageView>
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="@drawable/chiang_mai" ></ImageView>
</com.example.library.SpiralPhotoViewer>
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'
}