mirror of
https://github.com/HackPlan/AndroidArcMenu.git
synced 2026-06-15 23:12:40 +08:00
9705636886838ae650c46f641d652fa4fce554fb
AndroidArcMenu
An easy-to-use arc Menu library for Android.
Sample
or
#Including in Your Project
repositories {
jcenter()
}
compile 'com.hackplan.androidarcmenu:library:1.0.1'
Usage
Basic
arcMenu = new ArcMenu.Builder(activity)
.setId(ARC_MENU_ID_1)
.addBtn(R.drawable.a, id1)
.addBtn(R.drawable.b, id2)
.setListener(listener)
.showOnTouch(btn2)
.hideOnTouchUp(false)
.build();
More things
arcMenu = new ArcMenu.Builder(activity)
.addBtns(new ArcButton.Builder(menuBtn, 2),
new ArcButton.Builder(new SimpleCirView(this)
.setText("2")
.setCirColor(Color.parseColor("#03A9F4"))
.setTextColor(Color.WHITE)
.setTextSizeInSp(22)
.setBackgroundRadiusInPx(22),
3))
.setListener(MainActivity.this)
.showOnLongClick(btn1)
.setDegree(160)
.setRadius(222)
.build();
arcMenu.showOn(view); //Show Manually
LICENSE
Copyright (C) 2016 Ding Wenhao
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
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.
Description
Languages
Java
100%


