<?xml version="1.0" encoding="utf-8"?>
<layout 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">
<data>
<variable
name="viewModel"
type="com.yaona.module_mine.ui.login.LoginViewModel" />
</data>
<androidx.constraintlayout.widget.ConstraintLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".ui.login.LoginActivity">
<com.yaona.lib_common.widgets.TitleLayout
android:id="@+id/titleLayout"
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:layout_constraintTop_toTopOf="parent"
app:titleText="@string/login" />
<View
android:id="@+id/bg_head"
android:layout_width="match_parent"
android:layout_height="154dp"
android:background="@color/purple_500"
app:layout_constraintTop_toBottomOf="@+id/titleLayout" />
<!-- 因为margin为负数不生效,所以加Space-->
<Space
android:id="@+id/space_1"
android:layout_width="0dp"
android:layout_height="0dp"
android:layout_marginBottom="50dp"
app:layout_constraintBottom_toBottomOf="@+id/bg_head"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent" />
<LinearLayout
android:id="@+id/ll_contain"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@drawable/radius_theme_bg_top"
android:orientation="vertical"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/space_1">
<com.google.android.material.textfield.TextInputLayout
android:id="@+id/textInputLayout_name"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="56dp"
app:boxStrokeWidth="0dp"
app:boxStrokeWidthFocused="0dp"
app:endIconDrawable="@drawable/ic_clear"
app:endIconMode="clear_text">
<com.google.android.material.textfield.TextInputEditText
android:id="@+id/et_name"
android:layout_width="match_parent"
android:layout_height="56dp"
android:layout_marginStart="20dp"
android:layout_marginTop="20dp"
android:layout_marginEnd="20dp"
android:background="@drawable/radius_input_bg"
android:cursorVisible="true"
android:hint="@string/user_name"
android:maxLength="50"
android:singleLine="true"
android:text="@={viewModel.userName}"
android:textColor="@color/_333333"
android:textSize="16sp" />
<!-- 去掉底部行线 app:boxStrokeWidth="0dp" app:boxStrokeWidthFocused="0dp"-->
</com.google.android.material.textfield.TextInputLayout>
<com.google.android.material.textfield.TextInputLayout
android:id="@+id/textInputLayout_password"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="6dp"
app:boxBackgroundColor="@color/_f5f5f5"
app:boxStrokeWidth="0dp"
app:boxStrokeWidthFocused="0dp"
app:passwordToggleEnabled="true">
<com.google.android.material.textfield.TextInputEditText
android:id="@+id/et_password"
android:layout_width="match_parent"
android:layout_height="56dp"
android:layout_marginStart="20dp"
android:layout_marginTop="20dp"
android:layout_marginEnd="20dp"
android:background="@drawable/radius_input_bg"
android:cursorVisible="true"
android:hint="@string/password"
android:inputType="textPassword"
android:maxLength="50"
android:singleLine="true"
android:text="@={viewModel.userPwd}"
android:textColor="@color/_333333"
android:textSize="16sp" />
</com.google.android.material.textfield.TextInputLayout>
<Button
android:id="@+id/btn_login"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginStart="20dp"
android:layout_marginTop="30dp"
android:layout_marginEnd="20dp"
android:alpha="@{viewModel.loginBtnEnable?1f:0.2f}"
android:backgroundTint="@color/purple_500"
android:enabled="@{viewModel.loginBtnEnable}"
android:padding="10dp"
android:text="@string/login"
android:textColor="@color/_ffffff"
android:textSize="16sp" />
<TextView
android:id="@+id/tv_register"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="end"
android:background="?attr/selectableItemBackground"
android:paddingStart="20dp"
android:paddingTop="10dp"
android:paddingEnd="20dp"
android:paddingBottom="10dp"
android:text="@string/to_register"
android:textColor="@color/purple_500"
android:textSize="15sp" />
</LinearLayout>
<ImageView
android:id="@+id/iv_logo"
android:layout_width="100dp"
android:layout_height="100dp"
android:src="@mipmap/ic_launcher"
app:layout_constraintBottom_toTopOf="@+id/space_1"
app:layout_constraintEnd_toEndOf="@+id/ll_contain"
app:layout_constraintStart_toStartOf="@+id/ll_contain"
app:layout_constraintTop_toBottomOf="@+id/space_1" />
</androidx.constraintlayout.widget.ConstraintLayout>
</layout>
没有合适的资源?快使用搜索试试~ 我知道了~
kotlin开发基础框架
共240个文件
kt:83个
xml:73个
pro:16个
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
0 下载量 35 浏览量
2023-05-07
22:24:09
上传
评论 1
收藏 1.64MB ZIP 举报
温馨提示
kotlin开发基础框架,包括:底部导航栏、闪屏页、完整的网络请求框架、登录模块、解决打开白屏的问题,很完美的基础框架,拿来即可快速开发app
资源推荐
资源详情
资源评论
收起资源包目录
kotlin开发基础框架 (240个子文件)
gradlew.bat 3KB
executionHistory.bin 4.92MB
outputFiles.bin 337KB
fileHashes.bin 295KB
resourceHashesCache.bin 28KB
sha1-checksums.bin 21KB
last-build.bin 1B
.gitignore 225B
.gitignore 6B
.gitignore 6B
.gitignore 6B
.gitignore 6B
.gitignore 6B
.gitignore 6B
.gitignore 6B
.gitignore 6B
.gitignore 6B
config.gradle 4KB
build.gradle 3KB
build.gradle 2KB
module.build.gradle 2KB
build.gradle 2KB
settings.gradle 637B
build.gradle 387B
build.gradle 353B
build.gradle 350B
build.gradle 350B
build.gradle 345B
build.gradle 344B
build.gradle 342B
gradlew 6KB
gradle-wrapper.jar 58KB
DateUtil.kt 18KB
FlowLayout.kt 15KB
ViewExt.kt 9KB
TitleLayout.kt 8KB
MainActivity.kt 6KB
KeyboardUtil.kt 5KB
BaseVMBActivity.kt 5KB
BaseVMBFragment.kt 5KB
CacheUtil.kt 3KB
StatusBarUtil.kt 3KB
ScreenUtil.kt 3KB
UserManager.kt 3KB
DataRepository.kt 3KB
LogUtil.kt 3KB
SplashActivity.kt 2KB
Api.kt 2KB
LoginActivity.kt 2KB
RegisterActivity.kt 2KB
RetrofitManager.kt 2KB
BaseViewModelExt.kt 2KB
App.kt 2KB
SquareFragment.kt 2KB
ProjectFragment.kt 2KB
WechatFragment.kt 2KB
ModuleWebApi.kt 2KB
MineFragment.kt 2KB
ToastUtil.kt 1KB
LoginViewModel.kt 1KB
IpManager.kt 1KB
HomeFragment.kt 1KB
RegisterViewModel.kt 1KB
CacheInterceptor.kt 1KB
SplashBannerAdapter.kt 1KB
ModuleMineApi.kt 1024B
Article.kt 1020B
ModuleHomeApi.kt 978B
NetworkUtil.kt 956B
BindingViewExt.kt 898B
CommonUtil.kt 830B
HomeViewModel.kt 815B
AppUtil.kt 794B
BaseViewModel.kt 683B
ExampleInstrumentedTest.kt 680B
ExampleInstrumentedTest.kt 678B
ExampleInstrumentedTest.kt 678B
ExampleInstrumentedTest.kt 674B
ExampleInstrumentedTest.kt 674B
ExampleInstrumentedTest.kt 674B
ExampleInstrumentedTest.kt 673B
ExampleInstrumentedTest.kt 672B
ExampleInstrumentedTest.kt 667B
AppViewModel.kt 599B
ModuleProjectApi.kt 597B
CollectArticle.kt 589B
ModuleSquareApi.kt 588B
ModuleWechatApi.kt 588B
StringExt.kt 572B
User.kt 553B
LogInterceptor.kt 548B
CacheManager.kt 540B
WebActivity.kt 462B
BaseRepository.kt 438B
Banner.kt 413B
SplashViewModel.kt 388B
CollectUrl.kt 357B
CoinInfo.kt 352B
ExampleUnitTest.kt 348B
ExampleUnitTest.kt 347B
共 240 条
- 1
- 2
- 3
资源评论
wy313622821
- 粉丝: 4w+
- 资源: 138
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- 基于图像的三维模型重建C++源代码+文档说明(高分课程设计)
- 基于聚焦法的工件立体测量方案,根据数据进行三维重建 使用HALCON处理图像,MATLAB拟合数据+源代码+数据集+效果图
- 锄战三国村 修改:货币使用不减 v1.10(2) 原创 (中文).apk
- 基于python实现的单目双目视觉三维重建+源代码+图像图片(高分课程设计)
- 基于C+++OPENCV的全景图像拼接源码(课程设计)
- 基于Python+OpenCV对多张图片进行全景图像拼接,消除鬼影,消除裂缝+源代码+文档说明+界面截图(高分课程设计)
- 基于C++实现的全景图像拼接源码(课程设计)
- 基于SIFT特征点提取和RASIC算法实现全景图像拼接python源码+文档说明+界面截图+详细注释(95分以上课程大作业)
- 基于matlab实现眼部判别的疲劳检测系统+源代码+全部数据+文档说明+详细注释+使用说明+截图(高分课程设计)
- 基于Matlab的异常姿势识别系统+源代码+全部数据+文档说明+详细注释+使用说明+截图(高分课程设计)
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功