Skip to content

Commit

Permalink
file added
Browse files Browse the repository at this point in the history
  • Loading branch information
Rahul255 committed Jul 3, 2019
1 parent 730b3fa commit 1f463f3
Show file tree
Hide file tree
Showing 13 changed files with 139 additions and 345 deletions.
2 changes: 1 addition & 1 deletion Registration/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ android {
compileSdkVersion 29
buildToolsVersion "29.0.0"
defaultConfig {
applicationId "com.example.templeapp"
applicationId "com.example.registration"
minSdkVersion 17
targetSdkVersion 29
versionCode 1
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.example.templeapp;
package com.example.registration;

import android.content.Context;

Expand All @@ -22,6 +22,6 @@ public void useAppContext() {
// Context of the app under test.
Context appContext = InstrumentationRegistry.getTargetContext();

assertEquals("com.example.templeapp", appContext.getPackageName());
assertEquals("com.example.registration", appContext.getPackageName());
}
}
4 changes: 2 additions & 2 deletions Registration/app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example.templeapp">
package="com.example.registration">

<application
android:allowBackup="true"
Expand All @@ -9,7 +9,7 @@
android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="true"
android:theme="@style/AppTheme">
<activity android:name=".newAccount"></activity>
<activity android:name=".Main2Activity_newAccount"></activity>
<activity android:name=".MainActivity">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
package com.example.registration;

import androidx.appcompat.app.AppCompatActivity;

import android.os.Bundle;

public class Main2Activity_newAccount extends AppCompatActivity {

@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main2_new_account);
}
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.example.templeapp;
package com.example.registration;

import androidx.appcompat.app.AppCompatActivity;

Expand All @@ -21,10 +21,13 @@ public void onClick(View view) {
openAccount();
}
});


}
public void openAccount(){
Intent intent= new Intent(this, newAccount.class);
Intent intent= new Intent(this,Main2Activity_newAccount.class);
startActivity(intent);
}
}


}

This file was deleted.

64 changes: 32 additions & 32 deletions Registration/app/src/main/res/layout/activity_main.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,42 +9,42 @@
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content">
<TextView
android:id="@+id/username"
android:layout_marginTop="15dp"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="1"
android:text="Username" />
<TextView
android:id="@+id/username"
android:layout_marginTop="15dp"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="1"
android:text="Username" />

<EditText
android:id="@+id/editText_username"
android:layout_marginTop="15dp"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="1"
android:ems="10"
android:inputType="textPersonName"
android:text="Name" />
<EditText
android:id="@+id/editText_username"
android:layout_marginTop="15dp"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="1"
android:ems="10"
android:inputType="textPersonName"
android:text="Name" />
</LinearLayout>

<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content">
<TextView
android:id="@+id/password"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="1"
android:text="Password" />
<EditText
android:id="@+id/editText"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="1"
android:ems="10"
android:inputType="textPersonName"
android:text="Name" />
<TextView
android:id="@+id/password"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="1"
android:text="Password" />
<EditText
android:id="@+id/editText"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="1"
android:ems="10"
android:inputType="textPersonName"
android:text="Name" />
</LinearLayout>

<Button
Expand All @@ -55,7 +55,8 @@
android:text="Login" />
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content">
android:layout_height="wrap_content"
android:orientation="horizontal">
<Button
android:id="@+id/button2"
android:layout_width="match_parent"
Expand All @@ -72,5 +73,4 @@
</LinearLayout>



</LinearLayout>
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".newAccount">
tools:context=".Main2Activity_newAccount">

</androidx.constraintlayout.widget.ConstraintLayout>
2 changes: 1 addition & 1 deletion Registration/app/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
<resources>
<string name="app_name">TempleApp</string>
<string name="app_name">Registration</string>
</resources>
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.example.templeapp;
package com.example.registration;

import org.junit.Test;

Expand Down
2 changes: 1 addition & 1 deletion Registration/gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#Tue Jul 02 18:45:59 IST 2019
#Wed Jul 03 12:33:04 IST 2019
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
Expand Down
Loading

0 comments on commit 1f463f3

Please sign in to comment.