1 Star 0 Fork 0

Archermind-TI / ohos-CircleMenu

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README

Circle Menu

一个圆形菜单的实现.

演示

Sample Image 1

集成

在build.gradle中加入

implementation 'com.gitee.archermind-ti:Ohos-CircleMenu:1.0.1'

使用方式

布局文件

<com.szugyi.circlemenu.view.CircleLayout
	ohos:id="$+id:circle_layout"
	ohos:height="match_parent"
	ohos:width="match_content"
	ohos:above="$id:selected_textView">

	<com.szugyi.circlemenu.view.CircleImageView
		ohos:id="$+id:main_calendar_image"
		ohos:height="match_content"
		ohos:width="match_content"
		ohos:background_element="$graphic:circle"
		ohos:image_src="$media:ic_calendar"
		circle:title="Calendar"/>
	.....
</com.szugyi.circlemenu.view.CircleLayout>		

属性说明

  • firstChildPosition ([0, 90, 180, 270]) - 第一个菜单项在CircleLayout 中的角度, 默认为 90
  • isRotating (boolean) - 菜单是否可以旋转. 默认为: true
  • speed (integer) - 转动速度, 范围为0 - 100. 默认: 25
  • radius (dimension) - 决定圆形大小, 范围为0 - 360.

与原库差异说明

由于Component中已有setNamegetName接口, 目前将 CircleImageView的相关接口修改 getTitle(), setTitle()

License

Copyright 2013, Csaba Szugyiczki

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

空文件

简介

取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
1
https://gitee.com/archermind-ti/ohos-circlemenu.git
git@gitee.com:archermind-ti/ohos-circlemenu.git
archermind-ti
ohos-circlemenu
ohos-CircleMenu
master

搜索帮助