Please click the image below to enlarge.
allProjects{
repositories {
...
maven { url "https://jitpack.io" }
}
}
Add this to your module's build.gradle
file (make sure the version matches the JitPack badge above):
dependencies {
...
implementation 'com.github.SibaniKrishnaChoudhury-255:SignInSignUpPage_Library:1.0.1'
}
-
<com.example.signin_and_signuppage.signUp android:id="@+id/signup" android:layout_width="match_parent" android:layout_height="wrap_content"/>
-
<com.example.signin_and_signuppage.signIn android:id="@+id/signin" android:layout_width="match_parent" android:layout_height="wrap_content"/>
-
signUp signUpPage=findViewById(R.id.signup); signUpPage.setButtonText("Sign Up") .setSignUpButtonClickListner(new ClickedListner() { @Override public void onClick() { String name = signUpPage.getfromEditTextThree(); String email = signUpPage.getfromEditTextOne(); String password = signUpPage.getfromEditTextTwo(); Toast.makeText(MainActivity.this, " "+name+" "+email+" "+password, Toast.LENGTH_SHORT).show(); } }) .moveToSignInScreen(new ClickedListner() { @Override public void onClick() { Toast.makeText(MainActivity.this, "Attach your Screen", Toast.LENGTH_SHORT).show(); } });
-
signIn signInPage = findViewById(R.id.signin); signInPage.setButtonText("Login") .setEditTextOnehint("phone Number") .setEditTextTwohint("Password"); signInPage.setSignInClickListener(new ClickedListner() { @Override public void onClick() { final String name = signInPage.getfromEditTextOne(); final String password = signInPage.getfromEditTextTwo(); Toast.makeText(signInActivity.this, "" + name + " " + password, Toast.LENGTH_SHORT).show(); } }).moveToSignUpScreen(new ClickedListner() { @Override public void onClick() { Toast.makeText(signInActivity.this, "moveToSignUpScreen", Toast.LENGTH_SHORT).show(); } });
- getfromEditTextOne() : Get first EditText Value
- getfromEditTextTwo() : Get second EditText Value
- moveToSignUpScreen(ClickedListner) : FooterText clickListner
- setEditTextOnehint(String) : first EditText hint
- setEditTextTwohint(String) : second EditText hint
- setButtonBackgroundColor(String) : SignInButton BackgroundColor
- setButtonText(String) : SignInButton Text
- setButtonTextColor(String) : SignInButton TextColor
- setheaderTitle(String) : Header Text
- setheaderColor(String) : Header TextColor
- setFootertextColor(String) : FooterText Color
- setFootertext(String) : Footer Text
- setSignInClickListener(ClickedListner) : SignInButton clickListner
- getfromEditTextOne() : Get first EditText Value
- getfromEditTextTwo() : Get second EditText Value
- getfromEditTextThree() : Get third EditText Value
- moveToSignInScreen(ClickedListner) : FooterText clickListner
- setEditTextOnehint(String) : first EditText hint
- setEditTextTwohint(String) : second EditText hint
- setEditTextThreehint(String) : third EditText hint
- setButtonBackgroundColor(String) : SignUpButton BackgroundColor
- setButtonText(String) : SignUpButton Text
- setButtonTextColor(String) : SignUpButton TextColor
- setheaderTitle(String) : Header Text
- setheaderColor(String) : Header TextColor
- setFootertextColor(String) : FooterText Color
- setFootertext(String) : Footer Text
- setSignUpClickListener(ClickedListner) : SignUpButton clickListner
Please fork this repository and contribute back using pull requests.
Any contributions (large or small/ major or minor/ new features/ bug fixes) are welcomed and appreciated but will be thoroughly reviewed.
-
Copyright 2020 Sibanikrishna Choudhury Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.