EasyClick原生UI连载五

EasyClick原生UI教程

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

EasyClick 原生UI之综合使用

显示效果图

UI效果

布局例子

	<!--  这是一个完整UI界面 有点粗糙 看看就行 -->
    <ScrollView
		        android:layout_width="match_parent"
		        android:layout_height="match_parent">

        <LinearLayout
			            android:layout_width="match_parent"
			            android:layout_height="match_parent"
			            android:layout_margin="30dp"
			            android:orientation="vertical">

            <LinearLayout
			                android:layout_width="match_parent"
			                android:layout_height="wrap_content"
			                android:orientation="horizontal">

                <Switch
		                    android:layout_width="wrap_content"
		                    android:layout_height="wrap_content"
		                    android:layout_weight="1"
		                    android:checked="false"
		                    android:text="无障碍服务"
		                    android:textSize="15sp" />

                <Switch
		                    android:layout_width="wrap_content"
		                    android:layout_height="wrap_content"
		                    android:layout_weight="1"
		                    android:checked="false"
		                    android:padding="10dp"
		                    android:text="悬浮窗权限"
		                    android:textSize="15sp" />

            </LinearLayout>


            <LinearLayout
			                android:layout_width="match_parent"
			                android:layout_height="wrap_content"
			                android:orientation="horizontal">

                <TextView
		                    android:layout_width="wrap_content"
		                    android:layout_height="wrap_content"
		                    android:text="账号:"
		                    android:textColor="@android:color/holo_red_dark"
		                    android:textSize="17sp" />

                <EditText
		                    android:id="@+id/userName"
		                    android:layout_width="wrap_content"
		                    android:layout_height="wrap_content"
		                    android:layout_weight="1"
		                    android:hint="账号"
		                    android:textSize="17sp" />
            </LinearLayout>

            <LinearLayout
			                android:layout_width="match_parent"
			                android:layout_height="wrap_content"
			                android:orientation="horizontal">

                <TextView
		                    android:layout_width="wrap_content"
		                    android:layout_height="wrap_content"
		                    android:text="密码:"
		                    android:textColor="@android:color/holo_red_dark"
		                    android:textSize="17sp" />

                <EditText
		                    android:id="@+id/userPwd"
		                    android:layout_width="wrap_content"
		                    android:layout_height="wrap_content"
		                    android:layout_weight="1"
		                    android:hint="平台密码"
		                    android:textSize="17sp" />
            </LinearLayout>

            <LinearLayout
			                android:layout_width="match_parent"
			                android:layout_height="wrap_content"
			                android:orientation="horizontal">

                <TextView
		                    android:layout_width="wrap_content"
		                    android:layout_height="wrap_content"
		                    android:text="选择APP版本" />

                <Spinner
		                    android:id="@+id/kspt"
		                    android:layout_width="wrap_content"
		                    android:layout_height="50dp"
		                    android:text="正式版|极速版" />

                <Button
		                    android:id="@+id/btn_signin"
		                    android:layout_width="wrap_content"
		                    android:layout_height="wrap_content"
		                    android:text="登录平台"
		                    android:textSize="14sp"
		                    android:textStyle="bold" />

            </LinearLayout>

            <LinearLayout
			                android:layout_width="match_parent"
			                android:layout_height="wrap_content"
			                android:orientation="horizontal">

                <CheckBox
		                    android:id="@+id/ks_dzh"
		                    android:layout_width="wrap_content"
		                    android:layout_height="30dp"
		                    android:text="观看视频" />

                <EditText
		                    android:id="@+id/ks_dzhSleep"
		                    android:layout_width="wrap_content"
		                    android:layout_height="wrap_content"
		                    android:hint="999" />

                <TextView
		                    android:layout_width="wrap_content"
		                    android:layout_height="wrap_content"
		                    android:text="秒点关注、点赞" />


            </LinearLayout>

            <LinearLayout
			                android:layout_width="match_parent"
			                android:layout_height="wrap_content"
			                android:orientation="horizontal">

                <CheckBox
		                    android:id="@+id/ks_yh"
		                    android:layout_width="wrap_content"
		                    android:layout_height="wrap_content"
		                    android:text="完成" />

                <EditText
		                    android:id="@+id/yhNum"
		                    android:layout_width="wrap_content"
		                    android:layout_height="wrap_content"
		                    android:hint="50" />

                <TextView
		                    android:layout_width="wrap_content"
		                    android:layout_height="wrap_content"
		                    android:text="个任务去养号" />

                <EditText
		                    android:id="@+id/yhSleep"
		                    android:layout_width="wrap_content"
		                    android:layout_height="wrap_content"
		                    android:hint="300" />

                <TextView
		                    android:layout_width="wrap_content"
		                    android:layout_height="wrap_content"
		                    android:text="" />

            </LinearLayout>

            <LinearLayout
			                android:layout_width="match_parent"
			                android:layout_height="wrap_content"
			                android:orientation="horizontal">

                <CheckBox
		                    android:id="@+id/ksrw1"
		                    android:layout_width="wrap_content"
		                    android:layout_height="wrap_content"
		                    android:checked="true"
		                    android:text="双击" />

                <CheckBox
		                    android:id="@+id/ksrw2"
		                    android:layout_width="wrap_content"
		                    android:layout_height="wrap_content"
		                    android:checked="true"
		                    android:text="收藏" />

                <CheckBox
		                    android:id="@+id/ksrw3"
		                    android:layout_width="wrap_content"
		                    android:layout_height="wrap_content"
		                    android:checked="false"
		                    android:text="点评" />

            </LinearLayout>

            <LinearLayout
			                android:layout_width="match_parent"
			                android:layout_height="wrap_content"
			                android:orientation="vertical">

                <TextView
		                    android:layout_width="wrap_content"
		                    android:layout_height="wrap_content"
		                    android:text="切换账号设置" />

                <LinearLayout
			                    android:layout_width="match_parent"
			                    android:layout_height="wrap_content"
			                    android:orientation="horizontal">

                    <CheckBox
		                        android:id="@+id/next_user_timer"
		                        android:layout_width="wrap_content"
		                        android:layout_height="wrap_content"
		                        android:checked="false"
		                        android:text="切换时间" />

                    <EditText
		                        android:layout_width="wrap_content"
		                        android:layout_height="wrap_content"
		                        android:hint="2" />

                    <TextView
		                        android:layout_width="wrap_content"
		                        android:layout_height="wrap_content"
		                        android:text="小时" />

                    <CheckBox
		                        android:id="@+id/next_user_rwl"
		                        android:layout_width="wrap_content"
		                        android:layout_height="wrap_content"
		                        android:checked="false"
		                        android:text="任务完成量" />

                    <EditText
		                        android:layout_width="wrap_content"
		                        android:layout_height="wrap_content"
		                        android:hint="50" />

                    <TextView
		                        android:layout_width="wrap_content"
		                        android:layout_height="wrap_content"
		                        android:text="" />

                </LinearLayout>

                <CheckBox
		                    android:id="@+id/next_user_rw_getnum"
		                    android:layout_width="match_parent"
		                    android:layout_height="40dp"
		                    android:layout_gravity="center"
		                    android:checked="false"
		                    android:gravity="left"
		                    android:text="10次没有获取到任务切换账号" />

            </LinearLayout>

            <Button
		                android:layout_width="match_parent"
		                android:layout_height="wrap_content"
		                android:background="#FF4FB3FF"
		                android:text="运  行"
		                android:textColor="#ffffff" />

        </LinearLayout>
    </ScrollView>

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

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

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

打赏作者

Mr -老鬼

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

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

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

打赏作者

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

抵扣说明:

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

余额充值