Skip to content

Commit e9fcce8

Browse files
author
Wei Yuxin
committed
changed main screen to login screen
1 parent 10877bf commit e9fcce8

File tree

4 files changed

+14
-25
lines changed

4 files changed

+14
-25
lines changed
0 Bytes
Binary file not shown.

app/build.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ dependencies {
2626
testImplementation 'junit:junit:4.12'
2727
androidTestImplementation 'com.android.support.test:runner:1.0.2'
2828
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
29+
implementation 'com.google.android.gms:play-services-ads:15.0.1'
2930
}
3031

3132
apply plugin: 'com.google.gms.google-services'

app/src/main/res/layout/activity_login__screen.xml

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -14,22 +14,5 @@
1414
tools:layout_editor_absoluteY="252dp"
1515
tools:ignore="MissingConstraints" />
1616

17-
<EditText
18-
android:id="@+id/editText"
19-
android:layout_width="257dp"
20-
android:layout_height="wrap_content"
21-
android:ems="10"
22-
android:inputType="textEmailAddress"
23-
tools:layout_editor_absoluteX="64dp"
24-
tools:layout_editor_absoluteY="130dp" />
25-
26-
<EditText
27-
android:id="@+id/editText2"
28-
android:layout_width="257dp"
29-
android:layout_height="wrap_content"
30-
android:ems="10"
31-
android:inputType="textPassword"
32-
tools:layout_editor_absoluteX="64dp"
33-
tools:layout_editor_absoluteY="191dp" />
3417

3518
</android.support.constraint.ConstraintLayout>

app/src/main/res/layout/activity_main.xml

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,20 @@
44
xmlns:tools="http://schemas.android.com/tools"
55
android:layout_width="match_parent"
66
android:layout_height="match_parent"
7-
tools:context=".MainActivity">
7+
tools:context=".Login_Screen">
88

9-
<TextView
9+
10+
<LinearLayout
11+
android:layout_width="368dp"
12+
android:layout_height="431dp"
13+
android:orientation="vertical"
14+
tools:layout_editor_absoluteX="8dp"
15+
tools:layout_editor_absoluteY="8dp"></LinearLayout>
16+
17+
<com.google.android.gms.ads.AdView
18+
android:id="@+id/adView"
1019
android:layout_width="wrap_content"
1120
android:layout_height="wrap_content"
12-
android:text="Hello World!"
13-
app:layout_constraintBottom_toBottomOf="parent"
14-
app:layout_constraintLeft_toLeftOf="parent"
15-
app:layout_constraintRight_toRightOf="parent"
16-
app:layout_constraintTop_toTopOf="parent" />
17-
21+
tools:layout_editor_absoluteX="32dp"
22+
tools:layout_editor_absoluteY="445dp" />
1823
</android.support.constraint.ConstraintLayout>

0 commit comments

Comments
 (0)