项目作者: freecats

项目描述 :
Number with with arc
高级语言: Java
项目地址: git://github.com/freecats/NumberArcView.git
创建时间: 2017-10-28T07:32:05Z
项目社区:https://github.com/freecats/NumberArcView

开源协议:Apache License 2.0

下载


NumberArcView

Number view with arc

Preview

preview

How to get it work?

  • in xml layout file
  1. <com.example.freecats.numberarcview.view.NumberArcView
  2. android:id="@+id/nav"
  3. android:layout_width="wrap_content"
  4. android:layout_height="wrap_content"
  5. android:layout_centerInParent="true"
  6. app:nav_endColor="#0adeff"
  7. app:nav_height="116dp"
  8. app:nav_number="100"
  9. app:nav_shadowColor="#f0f0f0"
  10. app:nav_startColor="#0086f9"
  11. app:nav_text="Money"
  12. app:nav_unit="$"
  13. app:nav_width="116dp" ></com.example.freecats.numberarcview.view.NumberArcView>


Attributes Support as below

Attributes format
nav_startColor color
nav_endColor color
nav_shadowColor color
nav_numberColor color
nav_textColor color
nav_unitColor color
nav_arcWidth dimension
nav_shadowWidth dimension
nav_textSize dimension
nav_numberTextSize dimension
nav_unitTextSize dimension
nav_numberColor dimension
nav_width dimension
nav_height dimension
nav_textMarginNumber dimension
nav_unitMarginNumber dimension
nav_isFloat boolean
nav_text string
nav_unit string
nav_number float
nav_radian integer

License

  1. Licensed under the Apache License, Version 2.0 (the "License");
  2. you may not use this file except in compliance with the License.
  3. You may obtain a copy of the License at
  4. http://www.apache.org/licenses/LICENSE-2.0
  5. Unless required by applicable law or agreed to in writing, software
  6. distributed under the License is distributed on an "AS IS" BASIS,
  7. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  8. See the License for the specific language governing permissions and
  9. limitations under the License.