EasyClick原生UI连载二

EasyClick原生UI连载总纲

讲师:Mr-老鬼,QQ:1156346325
EasyClick 原生UI教程电梯直达
EasyClick 原生UI教程总纲

EasyClick 原生UI 之常用控件

CheckBox 复选框

说明

复选框控件
属性描述

例子

	<!-- 例子-->
 	<CheckBox android:tag="cb0"
              android:layout_width="match_parent"
              android:layout_height="wrap_content"
              android:text="619账号1" />

RadioButton 单选框

说明

单选框控件
属性说明

例子

		<!--例子-->
		<RadioButton android:layout_width="match_parent"
                     android:layout_height="wrap_content"
                     android:text="单选框"
                     android:textSize="15sp"
                     android:gravity="center"
                     android:checked="true" />

Spinner 下拉选择框

说明

下拉选框
属性说明

例子

			<!--例子-->
			<Spinner android:layout_width="match_parent"
                     android:layout_height="wrap_content"
                     android:text="选择1|选择2"
                     android:textSize="15sp"
                     android:gravity="center"
                     android:defaultText="选择1"/>

Swtich 开关按钮

说明

开关按钮
属性说明

例子

		<!--例子-->
        <Switch android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:text="开关"
                android:textSize="15sp"
                android:gravity="center"
                android:checked="true" />

ImageView 图像

说明

图像控件
属性说明

例子

		<!--引用iec资源-->
        <ImageView android:layout_width="match_parent"
                   android:layout_height="wrap_content"
                   android:src="@drawable/a" />
         <!--引用网络资源图片地址-->
        <ImageView android:layout_width="match_parent"
                   android:layout_height="wrap_content"
                   android:src="http://baidu.com" />

WebView 内嵌浏览器

说明

WebView 内嵌浏览器,支持 H5 和 JS 操作
属性描述

例子

        <!--第一种 加载 layout 文件夹中的 html-->
        <WebView android:layout_height="wrap_parent"
                 android:layout_width="match_parent"
                 android:url="main.html"/>

        <!--第二种网络上的 html-->
        <WebView android:layout_height="wrap_parent"
                 android:layout_width="match_parent"
                 android:url="https://www.baidu.com"/>

注意

文中没有提到的属性请参考
公有属性: EasyClick 原生UI连载 三

我是Mr-老鬼、QQ1156346325 。交流QQ群:620028786,647082990
---------------------------------------版权声明------------------------------------------------------
版权所有~Mr-老鬼 ~转载请注明原文地址。
免责声明:本文所有的教程仅限交流学习使用不得用于违法用途,造成的法律后果本人不承担责任。

  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

Mr -老鬼

对你有用的话请我喝个咖啡呗

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值