Giter Site home page Giter Site logo

zhanghuanwang / demox-1 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from crystalyf/demox

0.0 1.0 0.0 76.15 MB

Android Kotlin demo:图片选择裁剪,图片手势缩放,图片添加标记,Camera2拍照,文件存储(兼容10.0上下版本),动态切换主题色,加载在线PDF,带类别的recyclerview,recyclerview顶部悬停,粘性头部(Sticky),paging分页加载、批量删除,bottomSheet拖拽效果,CollapsingToolbarLayout,自定义Spinner,DialogFragment,优化缓存和加载的Webview(处理webview乱窜),获取网页标签内容,WebView的自定义组件,FireBase Auth认证,启动谷歌地图,FlexboxLayout(自动换行布局),引导,带删除的edittext, 过滤前后空格的edittext

JavaScript 0.03% Java 17.43% Kotlin 81.26% HTML 1.29%

demox-1's Introduction

DemoX

Demo Android合集

图片的选择(裁剪):

img

图片手势缩放,滑动,平移:

img

给图片指定位置添加标记:

img

Camera2拍照:

img img



文件存储(兼容10.0上下版本),比如:
存储图像文件至公共目录(共享存储目录)
存储文件至公共目录(共享存储目录)
存储文件至APP的私有存储目录(沙盒)
获取指定的私有存储路径的所有文件
https://github.com/crystalyf/storage


动态切换主题色:

img

输入时带删除按钮的EditText,自定义密码样式EditText,过滤前后空格的EditText:

img img img

加载在线PDF:

img img

带类别的recyclerview:

带banner类别的效果是从此开源项目中抽出来的代码:https://github.com/git-xuhao/KotlinMvp

img img

Recyclerview顶部悬停效果,(跟随消失和覆盖效果):

img img

Recyclerview + FlexboxLayout(自动换行):

img

bottomSheet,自定义:

img img

引导页:

img

滑动接听组件:

img

paging分页加载,批量删除:

img img

自定义Spinner:

img

可折叠的toolbar布局 CollapsingToolbarLayout:

效果代码是从此开源项目中抽出来的:https://github.com/git-xuhao/KotlinMvp

img

DialogFragment(底部删除栏效果):

img

获取网页标签内容(比如head,meta):

img

WebView的自定义组件(包含了等待加载,错误显示布局):

img img

优化了缓存和加载的自定义Webview(能解决离线缓存刷新乱窜,离线缓存图片隔一次才能加载):

左图为原生webview乱窜现象,右图为优化后的webview:

img img

Firebase Auth认证(Twitter,Apple):

img img

Scheme启动谷歌地图:

img

demox-1's People

Contributors

crystalyf avatar

Watchers

James Cloos avatar

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.