项目作者: FazalHussain

项目描述 :
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.
高级语言: Java
项目地址: git://github.com/FazalHussain/PhotoViewer.git
创建时间: 2018-11-24T17:58:30Z
项目社区:https://github.com/FazalHussain/PhotoViewer

开源协议:

下载


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:

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

Rectangle Image View

From xml:

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

Spiral Photo Viewer

From xml:

  1. <com.example.library.SpiralPhotoViewer xmlns:android="http://schemas.android.com/apk/res/android"
  2. xmlns:app="http://schemas.android.com/apk/res-auto"
  3. xmlns:tools="http://schemas.android.com/tools"
  4. android:layout_width="wrap_content"
  5. android:layout_height="wrap_content"
  6. android:layout_gravity="center"
  7. tools:context=".MainActivity">
  8. <ImageView
  9. android:layout_width="wrap_content"
  10. android:layout_height="wrap_content"
  11. android:background="@drawable/ulm" ></ImageView>
  12. <ImageView
  13. android:layout_width="wrap_content"
  14. android:layout_height="wrap_content"
  15. android:background="@drawable/himeji" ></ImageView>
  16. <ImageView
  17. android:layout_width="wrap_content"
  18. android:layout_height="wrap_content"
  19. android:background="@drawable/petronas_twin_tower" ></ImageView>
  20. <ImageView
  21. android:layout_width="wrap_content"
  22. android:layout_height="wrap_content"
  23. android:background="@drawable/chiang_mai" ></ImageView>
  24. </com.example.library.SpiralPhotoViewer>

Gradle dependency

Add it in your root build.gradle

  1. allprojects {
  2. repositories {
  3. ...
  4. maven { url 'https://jitpack.io' }
  5. }
  6. }

In your project level’s build.gradle:

  1. dependencies {
  2. ...
  3. implementation 'com.github.Fazalcs13:SquareImageView:1.0.2'
  4. }