All Projects → guangmomo → ZoomLayout

guangmomo / ZoomLayout

Licence: Apache-2.0 license
想要缩放、平移的 View,放在 ZoomLayout 中就可以实现了

Programming Languages

java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to ZoomLayout

Pinchimageview
体验非常好的Android图片手势控件。
Stars: ✭ 1,871 (+5402.94%)
Mutual labels:  zoom-images, zoom
vue-inner-image-zoom
laurenashpole.github.io/vue-inner-image-zoom
Stars: ✭ 90 (+164.71%)
Mutual labels:  zoom-images, zoom
android-gallery
Shared element transition example with RecyclerView and ViewPager.
Stars: ✭ 38 (+11.76%)
Mutual labels:  android-ui
FaceAware-Android
this helps to auto zoom for face on ImageView
Stars: ✭ 46 (+35.29%)
Mutual labels:  zoom
the-subway-of-china
中国地铁图
Stars: ✭ 104 (+205.88%)
Mutual labels:  zoom
AndroidBigImage
Automatically generate a new Android application to display, zoom and scroll on a big image!
Stars: ✭ 49 (+44.12%)
Mutual labels:  zoom
Whatsapp Android App
This is sample code for layout for chatting app like Whatsapp.
Stars: ✭ 32 (-5.88%)
Mutual labels:  android-ui
svg-pan-zoom-container
A vanilla-js module for adding zoom-on-wheel and pan-on-drag behavior to inline SVG elements.
Stars: ✭ 31 (-8.82%)
Mutual labels:  zoom
SwipeToReply
Swipe to reply UI like WhatsApp
Stars: ✭ 54 (+58.82%)
Mutual labels:  android-ui
OnboardingDemo
Onboarding Example. Uses ViewPager's PageTransformer to animate elements.
Stars: ✭ 44 (+29.41%)
Mutual labels:  android-ui
floating-layout-android
Floating Layout library for Android
Stars: ✭ 55 (+61.76%)
Mutual labels:  android-ui
GitReposCompose
GitReposCompose is an Android application 📱 for showcasing Jetpack Compose for building declarative UI in Android. This demo app uses Github public API for fetching public repositories.
Stars: ✭ 32 (-5.88%)
Mutual labels:  android-ui
ReactButton
Android Library to make it easy to add ReactButton feature in your app with Multi Reactions like Facebook or Linkedin, you can add many reactions as you want, you can also split them into a number of columns, and also customize the colours and text for each reaction
Stars: ✭ 100 (+194.12%)
Mutual labels:  android-ui
MaterialDesign-Toast
Custom android Toast with Material Design
Stars: ✭ 70 (+105.88%)
Mutual labels:  android-ui
QuadTreeAndroid
Library that helps to implement the QuadTree in android, by using splitting images
Stars: ✭ 30 (-11.76%)
Mutual labels:  android-ui
momentz
Momentz is an android library for showing timed view just like WhatsApp, Facebook and Instagram stories.
Stars: ✭ 107 (+214.71%)
Mutual labels:  android-ui
sTooltip
A simple Tooltip Library
Stars: ✭ 44 (+29.41%)
Mutual labels:  android-ui
zoom-drive-connector
Automatically uploads Zoom meeting recordings to Google Drive.
Stars: ✭ 25 (-26.47%)
Mutual labels:  zoom
react-easy-panzoom
Wrapper to enable pan and zoom features for any React component
Stars: ✭ 69 (+102.94%)
Mutual labels:  zoom
LicenseTextView
Custom Lincese TextView for android
Stars: ✭ 31 (-8.82%)
Mutual labels:  android-ui

ZoomLayout

Android 视图缩放组件

实现的功能点

  1. 触摸滑动及惯性滑动
  2. 多指缩放
  3. 双击缩放

同时处理了以下细节

  1. 滑动冲突,比如将 ZoomLayout 放在 ViewPager
  2. 事件冲突,ZoomLayout 和 子 View 都能接收事件
  3. ZoomLayout 宽、高更新时能够自适应布局

效果

zoomlayout.gif

Download Demo Apk

使用

compile 'com.xlw.zoom:zoomlayout:1.0.0'
<?xml version="1.0" encoding="utf-8"?>
<com.xuliwen.zoom.ZoomLayout 
    xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    app:max_zoom="3.0"
    app:min_zoom="1.0"
    app:double_click_zoom="2.0">
    
    <LinearLayout
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:orientation="vertical">
        
        <ImageView
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:scaleType="fitXY"
            android:adjustViewBounds="true"
            android:src="@mipmap/image1"/>

        <ImageView
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:scaleType="fitXY"
            android:adjustViewBounds="true"
            android:src="@mipmap/image2"/>
        
    </LinearLayout>

</com.xuliwen.zoom.ZoomLayout>

支持的属性

属性 意义
max_zoom 最大缩放倍数
min_zoom 最小缩放倍数
double_click_zoom 双击缩放倍数

实现原理

简书链接

github 链接

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].