首页 > 移动平台 > 详细

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

时间:2019-05-20 19:58:27      阅读:213      评论:0      收藏:0      [点我收藏+]

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

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

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

 

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

Xamarin.Android

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

 

 

 

 

 

技术分享图片

 

新建一个项目,然后在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" />
</RelativeLayout>

界面如下:

技术分享图片

 

 

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

技术分享图片

 

技术分享图片

 

 

 

 

 技术分享图片

 

技术分享图片

 

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

原文:https://www.cnblogs.com/dathlin/p/10896011.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!