Skip to content

Commit 7ef36b1

Browse files
author
Wei Yuxin
committed
addition of missing lines like "android.widget.___"
1 parent e9fcce8 commit 7ef36b1

File tree

4 files changed

+54
-12
lines changed

4 files changed

+54
-12
lines changed
0 Bytes
Binary file not shown.

app/build.gradle

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,14 @@ android {
2020

2121
dependencies {
2222
implementation fileTree(dir: 'libs', include: ['*.jar'])
23+
//noinspection GradleCompatible
2324
implementation 'com.android.support:appcompat-v7:27.1.1'
2425
implementation 'com.android.support.constraint:constraint-layout:1.1.2'
2526
implementation 'com.google.firebase:firebase-auth:11.6.0' // DO NOT CHANGE
2627
testImplementation 'junit:junit:4.12'
2728
androidTestImplementation 'com.android.support.test:runner:1.0.2'
2829
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
29-
implementation 'com.google.android.gms:play-services-ads:15.0.1'
30+
implementation 'com.google.android.gms:play-services-ads:11.6.0'
3031
}
3132

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

app/src/main/java/com/example/weiyushit/eventureinjava/MainActivity.java

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,26 @@
22

33
import android.support.v7.app.AppCompatActivity;
44
import android.os.Bundle;
5+
import android.util.Log;
6+
import android.widget.EditText;
7+
import android.widget.TextView;
8+
import android.view.View;
59

610
public class MainActivity extends AppCompatActivity {
711

12+
public void clickFunction(View view){
13+
14+
Log.i("Info","Clicked!");
15+
16+
17+
}
18+
19+
20+
public void signInFunction(View button){
21+
EditText EditTextPassword = findViewById('button2');
22+
23+
}
24+
825
@Override
926
protected void onCreate(Bundle savedInstanceState) {
1027
super.onCreate(savedInstanceState);

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

Lines changed: 35 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -7,17 +7,41 @@
77
tools:context=".Login_Screen">
88

99

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>
10+
<TextView
11+
android:id="@+id/textView"
12+
android:layout_width="wrap_content"
13+
android:layout_height="0dp"
14+
android:layout_margin="5dp"
15+
android:layout_marginEnd="32dp"
16+
android:layout_marginLeft="253dp"
17+
android:layout_marginRight="32dp"
18+
android:layout_marginStart="253dp"
19+
android:padding="10dp"
20+
android:text="Eventure"
21+
android:textColor="#040504"
22+
android:textSize="50sp"
23+
app:fontFamily="sans-serif"
24+
app:layout_constraintEnd_toEndOf="parent"
25+
app:layout_constraintStart_toStartOf="parent"
26+
tools:background="#32CD32 "
27+
tools:layout_editor_absoluteY="16dp" />
1628

17-
<com.google.android.gms.ads.AdView
18-
android:id="@+id/adView"
29+
<EditText
30+
android:id="@+id/editText"
1931
android:layout_width="wrap_content"
2032
android:layout_height="wrap_content"
21-
tools:layout_editor_absoluteX="32dp"
22-
tools:layout_editor_absoluteY="445dp" />
23-
</android.support.constraint.ConstraintLayout>
33+
android:ems="10"
34+
android:inputType="textEmailAddress"
35+
tools:layout_editor_absoluteX="84dp"
36+
tools:layout_editor_absoluteY="258dp" />
37+
38+
<Button
39+
android:id="@+id/button2"
40+
android:layout_width="wrap_content"
41+
android:layout_height="wrap_content"
42+
android:onClick="signInFunction"
43+
android:text="Button"
44+
tools:layout_editor_absoluteX="147dp"
45+
tools:layout_editor_absoluteY="356dp" />
46+
</android.support.constraint.ConstraintLayout>
47+

0 commit comments

Comments
 (0)