2024/4/18(冲刺第一天)
所学时间:2小时
代码行数:89
博客园数:1篇
所学知识:今天和组队成员开了一个大会,定制了大概的冲刺方向和任务,做好了任务看板和燃尽图,规定好每个人的大概负责的模块,在后面的日子里分工协作。
1.我昨天的成就:完成结对作业
2.遇到什么困难:配置Gradle出现了问题
3.今天的任务:写了一个登录
4.今天所敲的代码:
<?xml version="1.0" encoding="utf-8"?>
<ScrollView 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"
android:clipToPadding="false"
android:overScrollMode="never"
android:padding="@dimen/_24sdp"
android:scrollbars="none"
tools:context=".activities.SignInActivity"
android:background="@drawable/pic_2">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="center_horizontal"
android:orientation="vertical">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="@dimen/_40sdp"
android:text="@string/welcome_back"
android:textColor="@color/primary_text"
android:textSize="@dimen/_18ssp"
android:textStyle="bold"/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="@dimen/_4sdp"
android:text="@string/login_to_continue"
android:textColor="@color/secondary_text"
android:textSize="@dimen/_12ssp"
android:textStyle="bold"/>
<EditText
android:id="@+id/inputEmail"
android:layout_width="match_parent"
android:layout_height="@dimen/_45sdp"
android:layout_marginTop="@dimen/_40sdp"
android:background="@drawable/background_input"
android:hint="@string/email"
android:imeOptions="actionNext"
android:importantForAutofill="no"
android:inputType="textEmailAddress"
android:paddingStart="@dimen/_16sdp"
android:paddingEnd="@dimen/_16sdp"
android:textColor="@color/primary_text"
android:textSize="@dimen/_13ssp"/>
<EditText
android:id="@+id/inputPassword"
android:layout_width="match_parent"
android:layout_height="@dimen/_45sdp"
android:layout_marginTop="@dimen/_16sdp"
android:background="@drawable/background_input"
android:hint="@string/password"
android:imeOptions="actionDone"
android:importantForAutofill="no"
android:inputType="textPassword"
android:paddingStart="@dimen/_16sdp"
android:paddingEnd="@dimen/_16sdp"
android:textColor="@color/primary_text"
android:textSize="@dimen/_13ssp"/>
<com.google.android.material.button.MaterialButton
android:id="@+id/buttonSignIn"
android:layout_width="match_parent"
android:layout_height="@dimen/_50sdp"
android:layout_marginTop="@dimen/_50sdp"
android:text="@string/sign_in"
android:textColor="@color/white"
android:textSize="@dimen/_13ssp"
android:textStyle="bold"
app:cornerRadius="@dimen/_8sdp" />
<TextView
android:id="@+id/textCreateNewAccount"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="@dimen/_30sdp"
android:text="@string/create_new_account"
android:textColor="@color/primary"
android:textSize="@dimen/_13ssp"
android:textStyle="bold"/>
</LinearLayout>
</ScrollView>
<ScrollView 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"
android:clipToPadding="false"
android:overScrollMode="never"
android:padding="@dimen/_24sdp"
android:scrollbars="none"
tools:context=".activities.SignInActivity"
android:background="@drawable/pic_2">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="center_horizontal"
android:orientation="vertical">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="@dimen/_40sdp"
android:text="@string/welcome_back"
android:textColor="@color/primary_text"
android:textSize="@dimen/_18ssp"
android:textStyle="bold"/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="@dimen/_4sdp"
android:text="@string/login_to_continue"
android:textColor="@color/secondary_text"
android:textSize="@dimen/_12ssp"
android:textStyle="bold"/>
<EditText
android:id="@+id/inputEmail"
android:layout_width="match_parent"
android:layout_height="@dimen/_45sdp"
android:layout_marginTop="@dimen/_40sdp"
android:background="@drawable/background_input"
android:hint="@string/email"
android:imeOptions="actionNext"
android:importantForAutofill="no"
android:inputType="textEmailAddress"
android:paddingStart="@dimen/_16sdp"
android:paddingEnd="@dimen/_16sdp"
android:textColor="@color/primary_text"
android:textSize="@dimen/_13ssp"/>
<EditText
android:id="@+id/inputPassword"
android:layout_width="match_parent"
android:layout_height="@dimen/_45sdp"
android:layout_marginTop="@dimen/_16sdp"
android:background="@drawable/background_input"
android:hint="@string/password"
android:imeOptions="actionDone"
android:importantForAutofill="no"
android:inputType="textPassword"
android:paddingStart="@dimen/_16sdp"
android:paddingEnd="@dimen/_16sdp"
android:textColor="@color/primary_text"
android:textSize="@dimen/_13ssp"/>
<com.google.android.material.button.MaterialButton
android:id="@+id/buttonSignIn"
android:layout_width="match_parent"
android:layout_height="@dimen/_50sdp"
android:layout_marginTop="@dimen/_50sdp"
android:text="@string/sign_in"
android:textColor="@color/white"
android:textSize="@dimen/_13ssp"
android:textStyle="bold"
app:cornerRadius="@dimen/_8sdp" />
<TextView
android:id="@+id/textCreateNewAccount"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="@dimen/_30sdp"
android:text="@string/create_new_account"
android:textColor="@color/primary"
android:textSize="@dimen/_13ssp"
android:textStyle="bold"/>
</LinearLayout>
</ScrollView>