1 Star 0 Fork 0

Archermind-TI / ohos-CircleMenu

Create your Gitee Account
Explore and code with more than 8 million developers,Free private repositories !:)
Sign up
Clone or Download
contribute
Sync branch
Cancel
Notice: Creating folder will generate an empty file .keep, because not support in Git
Loading...
README.md

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.

About

Cancel

Releases

No release

Contributors

All

Activities

Load More
can not load any more
1
https://gitee.com/archermind-ti/ohos-circlemenu.git
git@gitee.com:archermind-ti/ohos-circlemenu.git
archermind-ti
ohos-circlemenu
ohos-CircleMenu
master

Search