Add login activity

This commit is contained in:
RicomenPL 2017-04-04 12:37:26 +02:00 committed by RicomenPL
parent 7be671d81e
commit 4950d71cad
4 changed files with 76 additions and 2 deletions

View File

@ -18,7 +18,9 @@
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity android:name=".activity.main.MainActivity">
<activity
android:name=".activity.main.MainActivity"
android:label="@string/login_title">
</activity>
</application>

View File

@ -4,6 +4,70 @@
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context="leszcz_team.wulkanowy.activity.main.MainActivity">
tools:context="leszcz_team.wulkanowy.activity.main.MainActivity"
tools:layout_editor_absoluteY="81dp"
tools:layout_editor_absoluteX="0dp">
<TextView
android:id="@+id/textView2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginBottom="426dp"
android:text="@string/app_name"
android:textSize="40dp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintLeft_toLeftOf="parent"
app:layout_constraintRight_toRightOf="parent"
tools:layout_constraintBottom_creator="1"
tools:layout_constraintLeft_creator="1"
tools:layout_constraintRight_creator="1" />
<EditText
android:id="@+id/passwordText"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:ems="10"
android:inputType="textPassword"
android:hint="@string/pass_hint"
app:layout_constraintLeft_toLeftOf="parent"
app:layout_constraintRight_toRightOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintHorizontal_bias="0.502"
tools:layout_constraintTop_creator="1"
tools:layout_constraintRight_creator="1"
tools:layout_constraintBottom_creator="1"
app:layout_constraintVertical_chainStyle="spread_inside"
tools:layout_constraintLeft_creator="1" />
<EditText
android:id="@+id/emailText"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:ems="10"
android:inputType="textEmailAddress"
android:hint="@string/email_hint"
app:layout_constraintVertical_chainStyle="spread_inside"
app:layout_constraintLeft_toLeftOf="parent"
app:layout_constraintRight_toRightOf="parent"
app:layout_constraintHorizontal_bias="0.502"
tools:layout_constraintRight_creator="1"
tools:layout_constraintBottom_creator="1"
app:layout_constraintBottom_toTopOf="@+id/passwordText"
tools:layout_constraintLeft_creator="1"
android:layout_marginBottom="45dp" />
<Button
android:id="@+id/agreeButton"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/login_button"
app:layout_constraintLeft_toLeftOf="parent"
app:layout_constraintRight_toRightOf="parent"
tools:layout_constraintTop_creator="1"
tools:layout_constraintRight_creator="1"
android:layout_marginTop="58dp"
app:layout_constraintTop_toBottomOf="@+id/passwordText"
tools:layout_constraintLeft_creator="1" />
</android.support.constraint.ConstraintLayout>

View File

@ -2,4 +2,8 @@
<resources>
<string name="app_name">Wulkanowy</string>
<string name="under_logo">Surowa wersja</string>
<string name="login_title">Logowanie</string>
<string name="pass_hint">Hasło</string>
<string name="email_hint">E-mail</string>
<string name="login_button">Zaloguj</string>
</resources>

View File

@ -1,4 +1,8 @@
<resources>
<string name="app_name">Wulkanowy</string>
<string name="under_logo">Raw version</string>
<string name="login_title">Login</string>
<string name="pass_hint">Password</string>
<string name="email_hint">E-mail</string>
<string name="login_button">Log in</string>
</resources>