直播小程序源码,小程序移动端登录界面调整布局
直播小程序源码,小程序移动端登录界面调整布局
XML布局代码如下:
1 | <?xml version= "1.0" encoding= "utf-8" ?><br><LinearLayout xmlns:android= "http://schemas.android.com/apk/res/android" <br> xmlns:tools= "http://schemas.android.com/tools" <br> android:layout_width= "match_parent" <br> android:layout_height= "match_parent" <br> xmlns:app= "http://schemas.android.com/apk/res-auto" <br> android:orientation= "vertical" <br> android:paddingTop= "20dp" ><br> <ImageView<br> android:id= "@+id/Login_goback" <br> android:layout_width= "20dp" <br> android:layout_height= "20dp" <br> android:src= "@drawable/goback" <br> android:scaleType= "fitCenter" <br> android:layout_marginLeft= "5dp" <br> /><br> <TextView<br> android:layout_width= "match_parent" <br> android:layout_height= "wrap_content" <br> android:paddingLeft= "30dp" <br> android:text= "账号密码登陆" <br> android:textColor= "#000000" <br> android:textSize= "30sp" /><br> <LinearLayout<br> android:layout_width= "match_parent" <br> android:layout_height= "wrap_content" <br> android:layout_marginTop= "@dimen/SMedium" <br> android:orientation= "horizontal" ><br> <ImageView<br> android:layout_width= "50dp" <br> android:layout_height= "30dp" <br> android:src= "@drawable/user" <br> android:text= "账 号:" <br> android:layout_marginTop= "@dimen/Small" /><br> <com.google.android.material.textfield.TextInputLayout<br> android:layout_width= "match_parent" <br> android:layout_height= "wrap_content" <br> app:counterEnabled= "true" <br> app:counterMaxLength= "12" <br> app:errorEnabled= "true" <br> app:errorTextAppearance= "@style/Error" <br>><br> <EditText<br> android:id= "@+id/username" <br> android:layout_width= "match_parent" <br> android:layout_height= "wrap_content" <br> android:hint= "用户名" <br> android:paddingLeft= "10dp" <br> android:singleLine= "true" <br> android:textColor= "#ff000000" <br> android:textSize= "15sp" <br> /><br> </com.google.android.material.textfield.TextInputLayout><br> </LinearLayout><br> <LinearLayout<br> android:layout_width= "match_parent" <br> android:layout_height= "wrap_content" <br> android:layout_marginTop= "0dp" ><br> <ImageView<br> android:id= "@+id/TipsPassWord" <br> android:layout_width= "50dp" <br> android:layout_height= "30dp" <br> android:src= "@drawable/password" <br> android:layout_marginTop= "10dp" /><br> <com.google.android.material.textfield.TextInputLayout<br> android:layout_width= "match_parent" <br> android:layout_height= "wrap_content" <br> app:counterEnabled= "true" <br> app:counterMaxLength= "12" <br> app:errorEnabled= "true" <br> app:errorTextAppearance= "@style/Error" <br> app:passwordToggleEnabled= "true" ><br> <EditText<br> android:id= "@+id/password" <br> android:layout_width= "match_parent" <br> android:layout_height= "40dp" <br> android:layout_marginTop= "10dp" <br> android:layout_toRightOf= "@+id/TipsPassWord" <br> android:hint= "密 码" <br> android:paddingLeft= "10dp" <br> android:password= "true" <br> android:textColor= "#ff000000" <br> android:textSize= "15sp" /><br> </com.google.android.material.textfield.TextInputLayout><br> </LinearLayout><br> <LinearLayout<br> android:layout_width= "wrap_content" <br> android:layout_height= "wrap_content" <br> android:layout_marginTop= "10dp" <br> android:orientation= "horizontal" <br> android:paddingLeft= "20dp" ><br> <CheckBox<br> android:id= "@+id/AgreementStatus" <br> android:layout_width= "wrap_content" <br> android:layout_height= "wrap_content" <br> android:layout_marginTop= "12dp" /><br> <TextView<br> android:layout_width= "wrap_content" <br> android:layout_height= "wrap_content" <br> android:text= "已阅读并同意“布道者”智慧停车《服务协议》和《隐私政策》" <br> android:textSize= "10sp" <br> android:layout_marginTop= "10dp" /><br> </LinearLayout><br> <Button<br> android:id= "@+id/login" <br> android:layout_width= "200dp" <br> android:layout_height= "30dp" <br> android:layout_marginLeft= "80dp" <br> android:layout_marginTop= "10dp" <br> android:background= "#1A73E8" <br> android:text= "进入智慧停车" <br> android:textColor= "#ffffff" <br> android:textSize= "15sp" /><br> <LinearLayout<br> android:layout_width= "wrap_content" <br> android:layout_height= "wrap_content" <br> android:layout_marginTop= "100dp" <br> android:orientation= "vertical" <br> android:layout_gravity= "center" ><br> <TextView<br> android:layout_width= "wrap_content" <br> android:layout_height= "wrap_content" <br> android:gravity= "center" <br> android:text= "————————其他登陆方式————————" /><br> </LinearLayout><br> <LinearLayout<br> android:layout_width= "300dp" <br> android:layout_height= "wrap_content" <br> android:layout_gravity= "center" <br> android:layout_marginTop= "30dp" <br> android:orientation= "horizontal" <br> android:layout_marginLeft= "30dp" <br> ><br> <LinearLayout<br> android:layout_width= "0dp" <br> android:layout_height= "wrap_content" <br> android:layout_weight= "1" ><br> <ImageView<br> android:layout_width= "30dp" <br> android:layout_height= "30dp" <br> android:scaleType= "fitCenter" <br> android:src= "@drawable/qq" /><br> </LinearLayout><br> <LinearLayout<br> android:layout_width= "0dp" <br> android:layout_height= "wrap_content" <br> android:layout_weight= "1" ><br> <ImageView<br> android:layout_width= "30dp" <br> android:layout_height= "30dp" <br> android:scaleType= "fitCenter" <br> android:src= "@drawable/wechat" /><br> </LinearLayout><br> <LinearLayout<br> android:layout_width= "0dp" <br> android:layout_height= "wrap_content" <br> android:layout_weight= "1" ><br> <ImageView<br> android:layout_width= "30dp" <br> android:layout_height= "30dp" <br> android:scaleType= "fitCenter" <br> android:src= "@drawable/phone" /><br> </LinearLayout><br> </LinearLayout><br> <RelativeLayout<br> android:layout_width= "wrap_content" <br> android:layout_height= "wrap_content" ><br> <RelativeLayout<br> android:layout_width= "wrap_content" <br> android:layout_height= "wrap_content" <br> android:orientation= "horizontal" <br> android:padding= "20dp" ><br> <Button<br> android:layout_width= "wrap_content" <br> android:layout_height= "wrap_content" <br> android:text= "忘记密码" <br> android:textSize= "20sp" <br> android:layout_alignParentLeft= "true" <br> android:layout_alignParentBottom= "true" <br> android:background= "#00000000" <br> /><br> <Button<br> android:id= "@+id/ButtonRegister" <br> android:layout_width= "wrap_content" <br> android:layout_height= "wrap_content" <br> android:text= "注册" <br> android:textSize= "20sp" <br> android:layout_alignParentBottom= "true" <br> android:layout_alignParentRight= "true" <br> android:background= "#00000000" /><br> </RelativeLayout><br> </RelativeLayout><br></LinearLayout> |
以上就是直播小程序源码,小程序移动端登录界面调整布局, 更多内容欢迎关注之后的文章
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· 分享一个免费、快速、无限量使用的满血 DeepSeek R1 模型,支持深度思考和联网搜索!
· 基于 Docker 搭建 FRP 内网穿透开源项目(很简单哒)
· ollama系列01:轻松3步本地部署deepseek,普通电脑可用
· 25岁的心里话
· 按钮权限的设计及实现