android 柱状图_安卓控件 仪表盘控件 柱状图控件 曲线控件 xamarin.android 分类器 瓶子控件 报警控件 水箱控件 进度条控件等...

本篇博客主要介绍一个控件库,HslControls.dll 的界面,这个控件库支持winform,winform的参考另一篇文章:https://www.cnblogs.com/dathlin/p/10291327.html

此处的控件是在手机中运行的,是基于C#的平台的 

源代码地址:https://github.com/dathlin/HslControlsDemo

详细的教程会在论坛慢慢的开放,联系QQ群:672364730

的,具体的教程地址如下:https://docs.microsoft.com/zh-cn/xamarin/android/index

640?wx_fmt=png

新建一个项目,然后在nuget安装控件

Install-Package HslControls

然后在布局控件里输入下面的信息即可

<RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
app:layout_behavior="@string/appbar_scrolling_view_behavior"
tools:showIn="@layout/app_bar_main">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerInParent="true"
android:text="这是安卓版的HslControls的Demo项目,详细请打开菜单" />
<HslControls.HslBottle
android:layout_marginTop="20px"
android:layout_marginLeft="20px"
android:layout_width="100px"
android:layout_height="400px"
/>
<HslControls.HslBottle
android:layout_marginTop="20px"
android:layout_marginLeft="200px"
android:layout_width="100px"
android:layout_height="400px"
app:value="80"
/>
<HslControls.HslPumpOne
android:layout_width="400px"
android:layout_marginLeft="500px"
android:layout_marginTop="50px"
app:export="5"
android:layout_height="400px" />
<HslControls.HslPumpOne
android:layout_width="100px"
android:layout_marginLeft="900px"
android:layout_marginTop="50px"
android:layout_height="100px"
android:id="@+id/hslPumpOne2" />
<HslControls.HslArrow
android:layout_marginTop="520px"
android:layout_marginLeft="20px"
android:layout_width="300px"
android:layout_height="90px" />
<HslControls.HslArrow
android:layout_marginTop="600px"
android:layout_marginLeft="20px"
android:layout_width="90px"
app:arrowDirection="Down"
app:arrowBackColor="@android:color/holo_red_light"
android:layout_height="300px" />
<HslControls.HslFactory
android:layout_marginTop="1100px"
android:layout_width="500px"
android:layout_height="300px" />

界面如下:

640?wx_fmt=png

其他的控件都是类似的,以下展示一些常用的控件信息

640?wx_fmt=png

640?wx_fmt=png

 640?wx_fmt=png

640?wx_fmt=png

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值