5 Star 6 Fork 3

HarmonyOS-TPC / DraggableView

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README

作者声明:

本库基于原项目(https://github.com/elevenetc/DraggableView)开发openharmony项目。 由于openharmony暂时没有找到让Component转PixelMap的方案,所以这里暂时只支持Image设置image_src图片的方式, 并且设置ohos:scale_mode="stretch" 这样可以暂且做到与原库效果完全一致。 待有Component转PixelMap方案将会再更新。

DraggableView

Draggable image with rotation and skew/scale effects.

SkewView

animation

RotateView

animation

Usage

dependencies{
   implementation 'io.openharmony.tpc.thirdlib:DraggableView:1.0.0'
}
  1. Implement DragController.IDragViewGroup
  2. Create instance of DragController
  3. Override onTouchEvent of your ComponentContainer and call DragController#onTouchEvent:
@Override public boolean onTouchEvent(MotionEvent event, Component component) {
	return dragController.onTouchEvent(event, component);
}

See full sample at SampleGridContainer

Animation adjustments

SkewView and RotateView containe multipliers which change rotation, skew and scale values.

Licence

http://www.apache.org/licenses/LICENSE-2.0

空文件

简介

Draggable image with rotation and skew/scale effects. 展开 收起
Java
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
1
https://gitee.com/HarmonyOS-tpc/DraggableView.git
git@gitee.com:HarmonyOS-tpc/DraggableView.git
HarmonyOS-tpc
DraggableView
DraggableView
master

搜索帮助