Professional Documents
Culture Documents
ON
EASY FIND
(Mobile Application)
THIS IS TO CERTIFY THAT THE STUDENTS PAWAN KUMAR, SHAILESH KUMAR, SHYAM KUMAR, SHASHWAT
KUMAR, MANOJ KUMAR & ANURAG KAUSHIK OF VINOBA BHAVE UNIVERSITY, HAZARIBAGH HAVE
UNDERGO THE PROJECT ON EASY FIND AND HAVE PREPARED THIS PROJECT REPORT BY VIRTUE OF THEIR
THEY HAVE SUCCESSFULLY COMPLETED EVERY ASPECT OF THIS PROJECT WITH A LOT OF SINCERITY BY
The successful completion of this project gives one of the great feelings of evolution and
fulfilment. The satisfaction that accompanies that the successful completion of any task would
be incomplete without the mention of people. Whose ceaseless cooperation made it possible,
whose constant guidance and encouragement crown all efforts with success.
I am grateful to my project guide for the guidance, inspiration and
constructive suggestions that help me in the preparation of this project.
I would also like to thank my University professors, MCA Dept., Vinoba Bhave
University who has always given me a chance to explore my talent. He is always energetic &
more alert to entire new happening in IT world & passes the information to all the students.
I would also like to my friends and family who have helped me in successful completion of the
project.
Sincerely
Pawan Kumar
1. Introduction
❖ Easy Find is an Android Application that will provide the information about
Institute, Library, Food Corner, Clinic, etc. which is available for users.
❖ This application will show the condition of all institute, medical, library etc.
❖ This application all the information is uploaded which is needed for
students.
• Purpose
As we know that customer is the centre of everything in marketing, our team
has also kept that in mind at every developing stage of "Easy Find".
So, let's talk more about our brand audience, you see our application is
mainly targeted to students and scholars but is not limited there, we
consciously have designed this app to be so simple and user friendly that
even High school or Secondary school students can use it. But yes, this app is
targeting a group specifically, you see our country is at a developing stage,
many small towns, villages and even cities don't yet have any proper
educational institutions. So, the students or scholars move to more advanced
cities for pursuing higher education. These peoples who have left their
hometown and are left to face a vast, dense and busy city (and sometimes all
alone) are our major target audience. You see our goal here is to help make
their new life more convenient here in this new place, by offering all the help
they can use at just the tap of their finger.
SERVER SIDE CLIENT SIDE
1. Firebase 1. Android
(Google) Development
2. Java Tool kit
2. XML
• Android Studio
• Java
• XML
• Android Studio
A unified environment where you can develop for all Android Devices.
• Java
❖ Java is an Object Oriented Programming(OOP) structure that can
be used to create complete application that may run on a single
computer or be distributed among servers and Clients in a
network.
Main Features
I. Object Oriented
II. Platform Independent
III. Simple
IV. Secure
V. Portable
VI. Robust
VII. Multithreaded
• XML
• XML stand for Extensible Markup Language.
3. Project Requirements
• Hardware Requirements
1. PROCESSOR
2. RAM 4GB and Above
3. HARD DISK
4. MONITOR
5. STANDARD KEYBOARD
6. OPTICAL MOUSE
• Software Requirements
• Operating System
5. TESTING PHASE
One of the purposes of the testing is to validate and verify the system. Verification
means checking the system to ensure that it is doing what the function is
supposed to do and Validation means checking to ensure that system is doing
what the user wants it to do.
2. The programmer's ability to generate a code that reflects exactly the system
specification.
Theoretically, a new designed system should have all the pieces in working order,
but in reality, each piece works independently. Now is the time to put all the
pieces into one system and test it to determine whether it meets the
requirements of the user. The process of system testing and the steps taken to
validate and prepare a system for final implementation are:
LEVELS OF TESTING
UNIT TESTING
VALIDATION
INTREGRATIONN
SYSTEM
1.Unit Testing:
This is the smallest testable unit of a computer system and is normally tested
using the white box testing. The author of the programs usually carries out unit
tests.
2. Integration Testing:
In integration testing, the different units of the system are integrated together to
form the complete system and this type of testing checks the system as whole to
ensure that it is doing what is supposed to do. The testing of an integrated system
can be carried out top-down, bottom-up, or big-bang. In this type of testing, some
parts will be tested with white box testing and some with black box testing
techniques. This type of testing plays very important role in increasing the
systems productivity. We have checked our system by using the integration
testing techniques.
3. System Testing:
A part from testing the system to validate the functionality of software against
the requirements, it is also necessary to test the non-functional aspect of the
system. Some examples of non-functional tools include tests to check
performance, data security, usability/user friendliness, volume, load/stress that
we have used in our project to test the various modules.
1. Program(s) testing.
2. String testing.
3. System testing.
4. System documentation.
6. Compile/assemble programs.
❖ Prepare Test
Planning for user acceptance testing calls for the analyst and the user to agree on
conditions for the test.
As each program is coded, test data are prepared and documented to ensure that
all aspects of the program are properly tested.
• The system group has time available to spend on training while the programs
are being written.
In this activity the materials to be used by personnel to run the system are specified
and scheduled. This includes a display of materials.
During the test plan stage, all operational documents are finalized including copies
of the operational formats required by the candidate system.
Systems testing
The computer department to ensure that the system functions as specified does
this testing. This testing is important to ensure that a working system is handed
over to the user for acceptance testing.
Acceptance testing.
The user to ensure that the system functions, as the user actually wanted
performs this testing. With prototyping techniques, this stage becomes very much
a formality to check the accuracy and completeness of processing. The screen
layouts and output should already have been tested during the prototyping
phase.
An error in the program code can remain undetected indefinitely. To prevent this
from happening the code was tested at various levels. To successfully test a
system, each condition, and combinations of conditions had to be tested. Each
program was tested and linked to other programs. This unit of program is tested
and linked to other units and so on until the complete system has been tested.
package com.example.easyfind;
import android.content.Intent;
import android.os.Bundle;
import android.os.Handler;
import androidx.appcompat.app.AppCompatActivity;
import com.example.easyfind.common.Common;
import com.example.easyfind.databinding.ActivityWelcomeBinding;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
binding = ActivityWelcomeBinding.inflate(getLayoutInflater());
setContentView(binding.getRoot());
common = Common.getNewInstance(this);
isFirstTime = common.getStringValue("SPLASH");
new Handler().postDelayed(new Runnable() {
@Override
public void run() {
if (isFirstTime.equalsIgnoreCase("")) {
if (common.isNetworkAvailable()) {
} else {
if (common.isNetworkAvailable()) {
Intent homeIntent = new Intent(Welcome.this, PreDashbord.class);
startActivity(homeIntent);
finish();
} else {
common.showLongToast("No Internet");
}
}
}
}, SPLASH_TIME_OUT);
}
}
<ImageView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@drawable/splashscreen">
</ImageView>
<ImageView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@drawable/splashscreen">
</ImageView>
<ImageView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_marginTop="-80dp"
android:layout_marginBottom="-60dp"
android:background="@drawable/ic_baseline_alt_route_24"
android:backgroundTint="#40A361B5">
</ImageView>
</RelativeLayout>
package com.example.easyfind;
import androidx.appcompat.app.AppCompatActivity;
import android.annotation.SuppressLint;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.TextView;
import com.example.easyfind.databinding.ActivityMainBinding;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
binding= ActivityMainBinding.inflate(getLayoutInflater());
setContentView(binding.getRoot());
binding.createacount.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
Intent intent = new Intent(MainActivity.this,LoginSignUp.class);
startActivity(intent);
}
});
binding.loginbtn.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
binding.forgotpass.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
Intent intent=new Intent(MainActivity.this,ForgotPassword.class);
startActivity(intent);
}
});
}
}
<TextView
android:id="@+id/signin"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginStart="50dp"
android:layout_marginTop="50dp"
android:layout_marginEnd="50dp"
android:layout_marginBottom="50dp"
android:gravity="center"
android:text="Sign in"
android:textColor="@color/white"
android:textSize="35dp"
android:textStyle="bold" />
<EditText
android:id="@+id/username"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@id/signin"
android:layout_marginStart="10dp"
android:layout_marginTop="10dp"
android:layout_marginEnd="10dp"
android:layout_marginBottom="10dp"
android:background="#30ffffff"
android:drawableLeft="@drawable/ic_baseline_perm_identity_24"
android:drawablePadding="20dp"
android:hint="Username / Number"
android:inputType="phone"
android:padding="20dp"
android:textColor="#FDFCFC"
android:textColorHint="#80FEFFFF" />
<EditText
android:id="@+id/password"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@id/username"
android:layout_marginStart="10dp"
android:layout_marginTop="10dp"
android:layout_marginEnd="10dp"
android:layout_marginBottom="10dp"
android:background="#30ffffff"
android:drawableLeft="@drawable/ic_baseline_lock_24"
android:drawablePadding="20dp"
android:hint="Password"
android:inputType="textPassword"
android:padding="20dp"
android:textColor="@color/white"
android:textColorHint="#80FEFFFF" />
<TextView
android:id="@+id/forgotpass"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@id/password"
android:layout_alignParentRight="true"
android:layout_marginStart="20dp"
android:layout_marginTop="20dp"
android:layout_marginEnd="15dp"
android:layout_marginBottom="20dp"
android:text="Forgot password?"
android:textColor="@color/white"
android:textSize="18dp" />
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@id/forgotpass"
android:layout_centerHorizontal="true"
android:gravity="center"
android:orientation="vertical">
<com.google.android.material.button.MaterialButton
android:id="@+id/loginbtn"
android:layout_width="142dp"
android:layout_height="68dp"
android:layout_below="@id/forgotpass"
android:layout_centerHorizontal="true"
android:layout_marginStart="10dp"
android:layout_marginTop="41dp"
android:layout_marginEnd="10dp"
android:layout_marginBottom="20dp"
android:backgroundTint="#BAD0DA"
android:text="LOGIN"
android:textColor="@color/purple_500"
android:textSize="25dp"
android:textStyle="bold"
app:shapeAppearanceOverlay="@dimen/cardview_default_elevation" />
<TextView
android:id="@+id/createacount"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@id/loginbtn"
android:layout_centerHorizontal="true"
android:layout_marginStart="20dp"
android:layout_marginTop="10dp"
android:layout_marginEnd="20dp"
android:layout_marginBottom="20dp"
android:text="Create Account"
android:textColor="@color/white" />
</LinearLayout>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@+id/others"
android:layout_above="@id/socialicons"
android:text="or sign in with"
android:layout_centerHorizontal="true"/>
<LinearLayout
android:id="@+id/socialicons"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:gravity="center">
<ImageView
android:layout_width="48dp"
android:layout_height="48dp"
android:layout_margin="20dp"
android:src="@drawable/google" />
<ImageView
android:layout_width="48dp"
android:layout_height="48dp"
android:layout_margin="20dp"
android:src="@drawable/fb" />
<ImageView
android:layout_width="48dp"
android:layout_height="48dp"
android:layout_margin="20dp"
android:src="@drawable/twitter" />
</LinearLayout>
</RelativeLayout>
package com.example.easyfind;
import androidx.appcompat.app.AppCompatActivity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import com.example.easyfind.databinding.ActivityLoginSignUpBinding;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
binding=ActivityLoginSignUpBinding.inflate(getLayoutInflater());
setContentView(binding.getRoot());
binding.signupLoginButton.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
Intent intent= new Intent(LoginSignUp.this,MainActivity.class);
startActivity(intent);
}
});
binding.signupNextButton.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
Intent intent=new Intent(LoginSignUp.this,otp.class);
startActivity(intent);
}
});
}
}
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:gravity="center"
android:orientation="vertical"
android:padding="20dp">
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_margin="40dp">
<TextView
android:id="@+id/signup_title_text"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="create"
android:textAllCaps="true"
android:textColor="@color/black"
android:textSize="40sp"/>
<TextView
android:id="@+id/signup2_title_text"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@id/signup_title_text"
android:text="account"
android:textAllCaps="true"
android:textColor="@color/black"
android:textSize="40sp"
android:transitionName="transition_title_text" />
</RelativeLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="60dp"
android:orientation="vertical">
<com.google.android.material.textfield.TextInputLayout
android:id="@+id/signup_fullname"
style="@style/Widget.MaterialComponents.TextInputLayout.OutlinedBox"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="Enter Full Name"
android:textColorHint="@color/black"
app:boxStrokeColor="@color/black"
app:boxStrokeWidthFocused="2dp"
app:endIconMode="clear_text"
app:endIconTint="@color/black"
app:hintTextColor="@color/black"
app:startIconDrawable="@drawable/ic_baseline_perm_identity_24"
app:startIconTint="@color/black">
<com.google.android.material.textfield.TextInputEditText
android:layout_width="match_parent"
android:layout_height="match_parent"
android:inputType="text"
android:textColor="@color/black"
android:textCursorDrawable="@null" />
</com.google.android.material.textfield.TextInputLayout>
<com.google.android.material.textfield.TextInputLayout
android:id="@+id/signup_username"
style="@style/Widget.MaterialComponents.TextInputLayout.OutlinedBox"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="Mobile Number"
android:textColorHint="@color/black"
app:boxStrokeColor="@color/black"
app:boxStrokeWidthFocused="2dp"
app:endIconMode="clear_text"
app:endIconTint="@color/black"
app:hintTextColor="@color/black"
app:startIconDrawable="@drawable/ic_mobile"
app:startIconTint="@color/black">
<com.google.android.material.textfield.TextInputEditText
android:layout_width="match_parent"
android:layout_height="match_parent"
android:inputType="text"
android:textColor="@color/black"
android:textCursorDrawable="@null" />
</com.google.android.material.textfield.TextInputLayout>
<com.google.android.material.textfield.TextInputLayout
android:id="@+id/signup_email"
style="@style/Widget.MaterialComponents.TextInputLayout.OutlinedBox"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="Enter Mail"
android:textColorHint="@color/black"
app:boxStrokeColor="@color/black"
app:boxStrokeWidthFocused="2dp"
app:endIconMode="clear_text"
app:endIconTint="@color/black"
app:hintTextColor="@color/black"
app:startIconDrawable="@drawable/ic_baseline_email_24"
app:startIconTint="@color/black">
<com.google.android.material.textfield.TextInputEditText
android:layout_width="match_parent"
android:layout_height="match_parent"
android:inputType="textEmailAddress"
android:textColor="@color/black"
android:textCursorDrawable="@null" />
</com.google.android.material.textfield.TextInputLayout>
<com.google.android.material.textfield.TextInputLayout
android:id="@+id/signup_password"
style="@style/Widget.MaterialComponents.TextInputLayout.OutlinedBox"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="Enter Password"
android:textColorHint="@color/black"
app:boxStrokeColor="@color/black"
app:boxStrokeWidthFocused="2dp"
app:endIconTint="@color/black"
app:hintTextColor="@color/black"
app:passwordToggleEnabled="true"
app:passwordToggleTint="@color/black"
app:startIconDrawable="@drawable/ic_baseline_lock_24"
app:startIconTint="@color/black">
<com.google.android.material.textfield.TextInputEditText
android:layout_width="match_parent"
android:layout_height="match_parent"
android:inputType="textPassword"
android:textColor="@color/black"
android:textCursorDrawable="@null" />
</com.google.android.material.textfield.TextInputLayout>
<com.google.android.material.textfield.TextInputLayout
android:id="@+id/signup_repassword"
style="@style/Widget.MaterialComponents.TextInputLayout.OutlinedBox"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="Enter Re-Password"
android:textColorHint="@color/black"
app:boxStrokeColor="@color/black"
app:boxStrokeWidthFocused="2dp"
app:endIconTint="@color/black"
app:hintTextColor="@color/black"
app:passwordToggleEnabled="true"
app:passwordToggleTint="@color/black"
app:startIconDrawable="@drawable/ic_baseline_lock_24"
app:startIconTint="@color/black">
<com.google.android.material.textfield.TextInputEditText
android:layout_width="match_parent"
android:layout_height="match_parent"
android:inputType="textPassword"
android:textColor="@color/black"
android:textCursorDrawable="@null" />
</com.google.android.material.textfield.TextInputLayout>
</LinearLayout>
<Button
android:id="@+id/signup_next_button"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="30dp"
android:background="@color/black"
android:elevation="5dp"
android:text="Next"
android:textColor="@color/white"
android:transitionName="transition_next_btn" />
<Button
android:id="@+id/signup_login_button"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="20dp"
android:background="#00000000"
android:elevation="5dp"
android:text="login"
android:textSize="23dp"
android:textColor="@color/black"
android:transitionName="transition_login_btn" />
<TextView
android:id="@+id/others"
android:layout_marginTop="30dp"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_above="@id/socialicons"
android:layout_centerHorizontal="true"
android:text="or sigup is with" />
<LinearLayout
android:id="@+id/socialicons"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:gravity="center">
<ImageView
android:layout_width="48dp"
android:layout_height="48dp"
android:layout_margin="20dp"
android:src="@drawable/google" />
<ImageView
android:layout_width="48dp"
android:layout_height="48dp"
android:layout_margin="20dp"
android:src="@drawable/fb" />
<ImageView
android:layout_width="48dp"
android:layout_height="48dp"
android:layout_margin="20dp"
android:src="@drawable/twitter" />
</LinearLayout>
</LinearLayout>
</ScrollView>
import androidx.appcompat.app.AppCompatActivity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import com.example.easyfind.databinding.ActivityOtpBinding;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
binding=ActivityOtpBinding.inflate(getLayoutInflater());
setContentView(binding.getRoot());
binding.button.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
Intent intent=new Intent(otp.this,thanksregister.class);
startActivity(intent);
}
});
}
}
<ImageView
android:id="@+id/imageView5"
android:layout_width="wrap_content"
android:layout_height="350dp"
android:layout_gravity="center"
app:srcCompat="@drawable/otp" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Enter OTP "
android:textSize="30dp"
android:textColor="@color/black"
android:textStyle="bold"
android:paddingLeft="20dp" />
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginLeft="20dp"
android:text="Please enter the otp number"
android:padding="1dp"
android:textSize="20dp"
android:textColor="@color/black"
/>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="100dp"
android:layout_marginTop="50dp"
android:orientation="horizontal">
<EditText
android:id="@+id/editTextNumber1"
android:layout_width="50dp"
android:padding="10dp"
android:layout_height="50dp"
android:layout_marginLeft="10dp"
android:hint="0"
android:gravity="center"
android:background="#70DCA7A7"
android:ems="10"
android:inputType="number" />
<EditText
android:id="@+id/editTextNumber2"
android:layout_width="50dp"
android:padding="10dp"
android:hint="0"
android:gravity="center"
android:layout_height="50dp"
android:layout_marginLeft="10dp"
android:background="#70DCA7A7"
android:ems="10"
android:inputType="number" />
<EditText
android:id="@+id/editTextNumber3"
android:layout_width="50dp"
android:padding="10dp"
android:layout_height="50dp"
android:hint="0"
android:gravity="center"
android:layout_marginLeft="10dp"
android:background="#70DCA7A7"
android:ems="10"
android:inputType="number" />
<EditText
android:id="@+id/editTextNumber4"
android:layout_width="50dp"
android:padding="10dp"
android:layout_height="50dp"
android:hint="0"
android:gravity="center"
android:layout_marginLeft="10dp"
android:background="#70DCA7A7"
android:ems="10"
android:inputType="number" />
<EditText
android:id="@+id/editTextNumber5"
android:layout_width="50dp"
android:padding="10dp"
android:layout_height="50dp"
android:hint="0"
android:gravity="center"
android:layout_marginLeft="10dp"
android:background="#70DCA7A7"
android:ems="10"
android:inputType="number" />
<EditText
android:id="@+id/editTextNumber6"
android:layout_width="50dp"
android:padding="10dp"
android:layout_height="50dp"
android:hint="1"
android:gravity="center"
android:layout_marginLeft="10dp"
android:background="#70DCA7A7"
android:inputType="number" />
</LinearLayout>
<TextView
android:id="@+id/forgotpass"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Re-Send OTP"
android:textSize="20dp"
android:layout_marginBottom="20dp"
android:textColor="@color/black" />
<Button
android:id="@+id/button"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="5dp"
android:backgroundTint="#2286D5"
android:text="Submit" />
</LinearLayout>
Forgot Password JAVA CODE -1.5
package com.example.easyfind;
import androidx.appcompat.app.AppCompatActivity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import com.example.easyfind.databinding.ActivityForgotPasswordBinding;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
binding= ActivityForgotPasswordBinding.inflate(getLayoutInflater());
setContentView(binding.getRoot());
binding.button.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
Intent intent= new Intent(ForgotPassword.this,otp.class);
startActivity(intent);
}
});
}
}
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Forgot Password"
android:textSize="30dp"
android:layout_marginTop="30dp"
android:textColor="@color/black"
android:textStyle="bold"
android:gravity="center">
</TextView>
<EditText
android:id="@+id/firstname"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="30dp"
android:layout_marginBottom="10dp"
android:drawableLeft="@drawable/ic_baseline_perm_identity_24"
android:drawablePadding="20dp"
android:hint="Enter First Name"
android:inputType="text"
android:padding="20dp"
android:background="#60C190FD"
android:textColor="@color/black"
android:textColorHint="@color/black" />
<EditText
android:id="@+id/lastname"
android:layout_width="match_parent"
android:background="#60C190FD"
android:layout_height="wrap_content"
android:layout_marginTop="20dp"
android:layout_marginBottom="10dp"
android:drawableLeft="@drawable/ic_baseline_perm_identity_24"
android:drawablePadding="20dp"
android:hint="Enter Last Name"
android:inputType="text"
android:padding="20dp"
android:textColor="@color/black"
android:textColorHint="@color/black" />
<EditText
android:id="@+id/mobile"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="#60C190FD"
android:layout_below="@id/username"
android:layout_marginTop="20dp"
android:layout_marginBottom="10dp"
android:drawableLeft="@drawable/ic_baseline_phone_24"
android:drawablePadding="20dp"
android:hint="Mobile"
android:inputType="phone"
android:padding="20dp"
android:textColor="@color/black"
android:textColorHint="@color/black" />
<Button
android:id="@+id/button"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="20dp"
android:textSize="18dp"
android:backgroundTint="#2286D5"
android:text="Get Otp" />
</LinearLayout>
OTP JAVA CODE -1.6
package com.example.easyfind;
import androidx.appcompat.app.AppCompatActivity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import com.example.easyfind.databinding.ActivityOtpBinding;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
binding=ActivityOtpBinding.inflate(getLayoutInflater());
setContentView(binding.getRoot());
binding.button.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
Intent intent=new Intent(otp.this,thanksregister.class);
startActivity(intent);
}
});
}
}
OTP XML CODE -1.6
<ImageView
android:id="@+id/imageView5"
android:layout_width="wrap_content"
android:layout_height="350dp"
android:layout_gravity="center"
app:srcCompat="@drawable/otp" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Enter OTP "
android:textSize="30dp"
android:textColor="@color/black"
android:textStyle="bold"
android:paddingLeft="20dp" />
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginLeft="20dp"
android:text="Please enter the otp number"
android:padding="1dp"
android:textSize="20dp"
android:textColor="@color/black"
/>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="100dp"
android:layout_marginTop="50dp"
android:orientation="horizontal">
<EditText
android:id="@+id/editTextNumber1"
android:layout_width="50dp"
android:padding="10dp"
android:layout_height="50dp"
android:layout_marginLeft="10dp"
android:hint="0"
android:gravity="center"
android:background="#70DCA7A7"
android:ems="10"
android:inputType="number" />
<EditText
android:id="@+id/editTextNumber2"
android:layout_width="50dp"
android:padding="10dp"
android:hint="0"
android:gravity="center"
android:layout_height="50dp"
android:layout_marginLeft="10dp"
android:background="#70DCA7A7"
android:ems="10"
android:inputType="number" />
<EditText
android:id="@+id/editTextNumber3"
android:layout_width="50dp"
android:padding="10dp"
android:layout_height="50dp"
android:hint="0"
android:gravity="center"
android:layout_marginLeft="10dp"
android:background="#70DCA7A7"
android:ems="10"
android:inputType="number" />
<EditText
android:id="@+id/editTextNumber4"
android:layout_width="50dp"
android:padding="10dp"
android:layout_height="50dp"
android:hint="0"
android:gravity="center"
android:layout_marginLeft="10dp"
android:background="#70DCA7A7"
android:ems="10"
android:inputType="number" />
<EditText
android:id="@+id/editTextNumber5"
android:layout_width="50dp"
android:padding="10dp"
android:layout_height="50dp"
android:hint="0"
android:gravity="center"
android:layout_marginLeft="10dp"
android:background="#70DCA7A7"
android:ems="10"
android:inputType="number" />
<EditText
android:id="@+id/editTextNumber6"
android:layout_width="50dp"
android:padding="10dp"
android:layout_height="50dp"
android:hint="1"
android:gravity="center"
android:layout_marginLeft="10dp"
android:background="#70DCA7A7"
android:inputType="number" />
</LinearLayout>
<TextView
android:id="@+id/forgotpass"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Re-Send OTP"
android:textSize="20dp"
android:layout_marginBottom="20dp"
android:textColor="@color/black" />
<Button
android:id="@+id/button"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="5dp"
android:backgroundTint="#2286D5"
android:text="Submit" />
</LinearLayout>
package com.example.easyfind;
import androidx.appcompat.app.AppCompatActivity;
import android.content.Intent;
import android.os.Bundle;
import android.os.Handler;
import com.example.easyfind.databinding.ActivityThanksregisterBinding;
@Override
public void run() {
Intent homeIntent = new Intent(thanksregister.this, MainActivity.class);
startActivity(homeIntent);
finish();
}
},SPLASH_TIME_OUT ) ;
}
}
<TextView
android:id="@+id/textView"
android:layout_width="wrap_content"
android:layout_height="91dp"
android:layout_marginStart="40dp"
android:layout_marginTop="40dp"
android:layout_marginEnd="40dp"
android:layout_marginBottom="0dp"
android:text="Thanks for Register....!!!!"
android:textColor="#573434"
android:textSize="35dp"
tools:layout_editor_absoluteX="155dp"
tools:layout_editor_absoluteY="284dp" />
<ImageView
android:id="@+id/imageView"
android:layout_width="40dp"
android:layout_height="40dp"
android:layout_below="@id/textView"
android:layout_marginLeft="50dp"
android:layout_marginTop="20dp"
app:srcCompat="@drawable/happiness" />
<ImageView
android:id="@+id/imageView2"
android:layout_width="40dp"
android:layout_height="40dp"
android:layout_below="@id/textView"
android:layout_alignRight="@id/imageView"
android:layout_marginLeft="150dp"
android:layout_marginTop="20dp"
android:layout_marginRight="-59dp"
app:srcCompat="@drawable/happiness" />
<ImageView
android:id="@+id/imageView3"
android:layout_width="40dp"
android:layout_height="40dp"
android:layout_below="@id/textView"
android:layout_alignRight="@id/imageView2"
android:layout_marginLeft="150dp"
android:layout_marginTop="20dp"
android:layout_marginRight="-59dp"
app:srcCompat="@drawable/happiness" />
<TextView
android:id="@+id/textView2"
android:layout_width="wrap_content"
android:layout_marginTop="30dp"
android:layout_height="wrap_content"
android:layout_below="@id/imageView3"
android:layout_marginLeft="60dp"
android:text="Please Wait...."
android:textColor="@color/black"
android:textSize="20dp"
/>
</RelativeLayout>
import androidx.appcompat.app.AppCompatActivity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import com.example.easyfind.databinding.ActivityPreDashbordBinding;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
binding= ActivityPreDashbordBinding.inflate(getLayoutInflater());
setContentView(binding.getRoot());
binding.backbtn.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
onBackPressed();
}
});
binding.dashboardbtn.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
Intent intent=new Intent(PreDashbord.this,Dashboard.class);
startActivity(intent);
}
});
binding.profilebtn.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
Intent intent=new Intent(PreDashbord.this,Profile.class);
startActivity(intent);
}
});
}
}
<ImageView
android:id="@+id/backbtn"
android:layout_width="40dp"
android:layout_height="40dp"
android:background="@drawable/ic_baseline_keyboard_backspace_24">
</ImageView>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="389dp"
android:layout_margin="20dp"
android:orientation="vertical"
android:gravity="center">
<LinearLayout
android:id="@+id/profilebtn"
android:layout_width="match_parent"
android:layout_height="188dp"
android:layout_margin="2dp"
android:layout_weight="1"
android:background="@drawable/border"
android:orientation="vertical">
<ImageView
android:layout_width="125dp"
android:layout_height="125dp"
android:background="@drawable/profile"
android:layout_margin="10dp"
android:layout_gravity="center"
/>
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Profile"
android:textAlignment="center"
android:textColor="@color/black"
android:textSize="25sp"
android:textStyle="bold" />
</LinearLayout>
<LinearLayout
android:id="@+id/dashboardbtn"
android:layout_width="match_parent"
android:layout_height="188dp"
android:layout_margin="2dp"
android:layout_weight="1"
android:background="@drawable/border"
android:orientation="vertical">
<ImageView
android:layout_width="125dp"
android:layout_gravity="center"
android:layout_height="125dp"
android:background="@drawable/dashboard"
android:layout_margin="10dp"
/>
<TextView
android:layout_width="match_parent"
android:layout_height="57dp"
android:text="Dashboard"
android:textAlignment="center"
android:textColor="@color/black"
android:textSize="25dp"
android:textStyle="bold" />
</LinearLayout>
</LinearLayout>
</LinearLayout>
Profile JAVA CODE -2.2
package com.example.easyfind;
import androidx.appcompat.app.AppCompatActivity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import com.example.easyfind.databinding.ActivityProfileBinding;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
binding = ActivityProfileBinding.inflate(getLayoutInflater());
setContentView(binding.getRoot());
binding.backbtn.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
onBackPressed();
}
});
}
}
<RelativeLayout
android:id="@+id/headtitle"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerHorizontal="true"
android:text="Profile"
android:textColor="@color/black"
android:textSize="35dp"
android:textStyle="bold" />
<ImageView
android:id="@+id/backbtn"
android:layout_width="40dp"
android:layout_height="40dp"
android:background="@drawable/ic_baseline_keyboard_backspace_24"/>
</RelativeLayout>
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="250dp"
android:layout_marginBottom="20dp"
android:background="#40A4EDE6"
android:id="@+id/profileview">
<ImageView
android:id="@+id/profile_pic"
android:layout_width="120dp"
android:layout_height="120dp"
android:layout_marginLeft="15dp"
android:layout_centerVertical="true"
android:background="@drawable/profilepic"/>
<TextView
android:id="@+id/full_name"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerVertical="true"
android:layout_marginLeft="10dp"
android:layout_toRightOf="@+id/profile_pic"
android:fontFamily="casual"
android:text="Pawan Kumar"
android:textColor="#111112"
android:textSize="30dp"
android:textStyle="bold|italic"/>
</RelativeLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:padding="20dp"
android:orientation="vertical">
<com.google.android.material.textfield.TextInputLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="10dp"
android:hint="Full Name">
<com.google.android.material.textfield.TextInputEditText
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Pawan Kumar"
android:drawableLeft="@drawable/ic_baseline_perm_identity_24"
android:drawablePadding="10dp">
</com.google.android.material.textfield.TextInputEditText>
</com.google.android.material.textfield.TextInputLayout>
<com.google.android.material.textfield.TextInputLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="10dp"
android:hint="Email">
<com.google.android.material.textfield.TextInputEditText
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="pawan2017cht@gmail.com"
android:drawableLeft="@drawable/ic_baseline_email_black_24"
android:drawablePadding="10dp">
</com.google.android.material.textfield.TextInputEditText>
</com.google.android.material.textfield.TextInputLayout>
<com.google.android.material.textfield.TextInputLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="10dp"
android:hint="Phone Number">
<com.google.android.material.textfield.TextInputEditText
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="6207198386"
android:drawableLeft="@drawable/ic_mobile"
android:drawablePadding="10dp">
</com.google.android.material.textfield.TextInputEditText>
</com.google.android.material.textfield.TextInputLayout>
<com.google.android.material.textfield.TextInputLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="10dp"
android:hint="Password"
android:background="">
<com.google.android.material.textfield.TextInputEditText
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Pawan12345@"
android:drawableLeft="@drawable/ic_baseline_lock_24"
android:drawablePadding="10dp">
</com.google.android.material.textfield.TextInputEditText>
</com.google.android.material.textfield.TextInputLayout>
<com.google.android.material.button.MaterialButton
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Update"
android:textColor="#0E0E0E"
android:backgroundTint="#089A8C"/>
</LinearLayout>
</LinearLayout>
Dashboard JAVA CODE -3.1
package com.example.easyfind;
import androidx.appcompat.app.AppCompatActivity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import com.example.easyfind.databinding.ActivityDashboardBinding;
import com.example.easyfind.education.CollegeListActivity;
import com.example.easyfind.foodcorner.FoodDashboard;
import com.example.easyfind.foodcorner.Food_List;
import com.example.easyfind.health.PatientResult;
import com.example.easyfind.library.library;
ActivityDashboardBinding binding;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
binding= ActivityDashboardBinding.inflate(getLayoutInflater());
setContentView(binding.getRoot());
binding.educationLL.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
Intent intent=new Intent(Dashboard.this, CollegeListActivity.class);
startActivity(intent);
}
});
binding.backbtn1.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
onBackPressed();
}
});
binding.health.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
Intent intent= new Intent(Dashboard.this, PatientResult.class);
startActivity(intent);
}
});
binding.libraryLL.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
Intent intent = new Intent(Dashboard.this, library.class);
startActivity(intent);
}
});
binding.foodbtn.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
Intent intent=new Intent(Dashboard.this, Food_List.class);
startActivity(intent);
}
});
}
}
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:padding="20dp">
<ImageView
android:id="@+id/backbtn1"
android:layout_width="40dp"
android:layout_height="40dp"
android:layout_marginBottom="30dp"
android:background="@drawable/ic_baseline_keyboard_backspace_24"></ImageView>
<LinearLayout
android:layout_below="@+id/backbtn1"
android:id="@+id/first"
android:layout_width="match_parent"
android:layout_height="597dp"
android:layout_marginStart="10dp"
android:layout_marginTop="10dp"
android:layout_marginEnd="10dp"
android:layout_marginBottom="10dp"
android:orientation="vertical">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="1"
android:orientation="horizontal">
<LinearLayout
android:id="@+id/education_LL"
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_margin="2dp"
android:layout_weight="1"
android:background="@drawable/border"
android:orientation="vertical">
<ImageView
android:layout_width="match_parent"
android:layout_height="130dp"
android:layout_margin="10dp"
android:background="@drawable/presentation" />
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Education"
android:textAlignment="center"
android:textColor="@color/black"
android:textSize="18sp"
android:textStyle="bold" />
</LinearLayout>
<LinearLayout
android:id="@+id/library_LL"
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_margin="2dp"
android:layout_weight="1"
android:background="@drawable/border"
android:orientation="vertical">
<ImageView
android:layout_width="match_parent"
android:layout_height="130dp"
android:layout_margin="10dp"
android:background="@drawable/library" />
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Library"
android:textAlignment="center"
android:textColor="@color/black"
android:textSize="18sp"
android:textStyle="bold" />
</LinearLayout>
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="1"
android:orientation="horizontal">
<LinearLayout
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_margin="2dp"
android:layout_weight="1"
android:background="@drawable/border"
android:orientation="vertical">
<ImageView
android:layout_width="match_parent"
android:layout_height="130dp"
android:layout_margin="10dp"
android:background="@drawable/rent" />
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Rent"
android:textAlignment="center"
android:textColor="@color/black"
android:textSize="18sp"
android:textStyle="bold" />
</LinearLayout>
<LinearLayout
android:id="@+id/health"
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_margin="2dp"
android:layout_weight="1"
android:background="@drawable/border"
android:orientation="vertical">
<ImageView
android:layout_width="match_parent"
android:layout_height="130dp"
android:layout_margin="10dp"
android:background="@drawable/heartbeat" />
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Health"
android:textAlignment="center"
android:textColor="@color/black"
android:textSize="18sp"
android:textStyle="bold" />
</LinearLayout>
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="1"
android:orientation="horizontal">
<LinearLayout
android:id="@+id/foodbtn"
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_margin="2dp"
android:layout_weight="1"
android:background="@drawable/border"
android:orientation="vertical">
<ImageView
android:layout_width="match_parent"
android:layout_height="130dp"
android:layout_margin="10dp"
android:background="@drawable/restaurant" />
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Food Corner"
android:textAlignment="center"
android:textColor="@color/black"
android:textSize="18sp"
android:textStyle="bold" />
</LinearLayout>
<LinearLayout
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_margin="2dp"
android:layout_weight="1"
android:background="@drawable/border"
android:orientation="vertical">
<ImageView
android:layout_width="match_parent"
android:layout_height="130dp"
android:layout_margin="10dp"
android:background="@drawable/yoga" />
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Physical"
android:textAlignment="center"
android:textColor="@color/black"
android:textSize="18sp"
android:textStyle="bold" />
</LinearLayout>
</LinearLayout>
</LinearLayout>
</RelativeLayout>
</ScrollView>
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import android.widget.GridView;
import android.widget.ImageView;
import android.widget.RelativeLayout;
import android.widget.TextView;
import androidx.appcompat.app.AppCompatActivity;
import com.example.easyfind.R;
import com.example.easyfind.common.Common;
import com.example.easyfind.common.Constants;
import java.util.ArrayList;
import java.util.LinkedHashSet;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_college_list);
lvList = findViewById(R.id.lvList);
setDataOnAdapter();
}
private void setDataOnAdapter() {
try {
recentSearchList.add("MCA
Dept==>5b67253018ffa3223cd80d13==>amit2amit@gmail.com==>Best in Computer
feculties==>123654987==>0==>0==>Sindur road Patna, Jharkhand===>amit@gmail.com");
recentSearchList.add("Vinoba Bhave
University==>5b67253018ffa3223cd80d13==>satyendrak17@gmail.com==>Best in physics
feculties==>8695761653==>0==>0==>Hazaribaag road Patna,
Jharkhand===>satyendrak17@gmail.com");
recentSearchList.add("MCA
Dept==>5b67253018ffa3223cd80d13==>amit2amit@gmail.com==>Best in Computer
feculties==>123654987==>0==>0==>Sindur road Patna, Jharkhand===>amit@gmail.com");
recentSearchList.add("MBA
Dept==>5b67253018ffa3223cd80d13==>amit2amit@gmail.com==>Best in Computer
feculties==>123654987==>0==>0==>Sindur road Patna, Jharkhand===>amit@gmail.com");
recentSearchList.add("Markham College
Dept==>5b67253018ffa3223cd80d13==>amit2amit@gmail.com==>Best in Computer
feculties==>123654987==>0==>0==>Sindur road Patna, Jharkhand===>amit@gmail.com");
recentSearchList.add("Ananda College
Dept==>5b67253018ffa3223cd80d13==>amit2amit@gmail.com==>Best in Computer
feculties==>123654987==>0==>0==>Ananda chok, Jharkhand===>amit@gmail.com");
for (int i = 0; i < recentSearchList.size(); i++) {
String arr[] = recentSearchList.get(i).split("==>");
}
recentSeachAdapter = new SearchAdapter(this, alist);
lvList.setAdapter(recentSeachAdapter);
} catch (Exception e) {
e.printStackTrace();
}
}
@Override
public int getCount() {
return searchedList.size();
}
@Override
public Object getItem(int position) {
return searchedList.get(position);
}
@Override
public long getItemId(int position) {
return position;
}
@Override
public View getView(final int position, View convertView, ViewGroup parent) {
SearchAdapter.ViewHolder1 viewHolder = null;
if (convertView == null) {
convertView = inflater.inflate(R.layout.row_home_tiles, null);
viewHolder = new SearchAdapter.ViewHolder1();
convertView.setTag(viewHolder);
} else {
viewHolder = (SearchAdapter.ViewHolder1) convertView.getTag();
}
viewHolder.lineView = convertView.findViewById(R.id.lineView);
viewHolder.lineView.setVisibility(View.VISIBLE);
try {
viewHolder.typeImage = convertView.findViewById(R.id.typeImage);
viewHolder.recentSearchItem =
convertView.findViewById(R.id.recentSearchItem);
viewHolder.mainlay = convertView.findViewById(R.id.mainlay);
} catch (Exception e) {
e.printStackTrace();
}
viewHolder.recentSearchItem.setText(searchedList.get(position).getOrg_name());
final String recentdataName = searchedList.get(position).getOrg_name();
viewHolder.recentSearchItem.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
}
}
<RelativeLayout
android:id="@+id/top_layout"
android:layout_width="match_parent"
android:visibility="visible"
android:layout_height="wrap_content"
android:background="@color/colorPrimary">
<RelativeLayout
android:id="@+id/location"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="7dp"
android:orientation="vertical"
android:paddingLeft="5dp"
android:paddingRight="5dp">
<LinearLayout
android:id="@+id/toplayout"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="10dp"
android:orientation="vertical">
<RelativeLayout
android:id="@+id/country_layout"
android:layout_width="130dp"
android:layout_height="wrap_content"
android:layout_gravity="center_vertical">
<TextView
android:id="@+id/cityName"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_toLeftOf="@+id/arrow"
android:ellipsize="marquee"
android:focusable="true"
android:focusableInTouchMode="true"
android:marqueeRepeatLimit="marquee_forever"
android:scrollHorizontally="true"
android:singleLine="true"
android:text="Ranchi"
android:textColor="#fff"
android:textSize="14dp" />
<ImageView
android:id="@+id/arrow"
android:layout_width="14dp"
android:layout_height="18dp"
android:layout_alignParentRight="true"
android:layout_gravity="bottom"
android:layout_marginLeft="3dp"
android:background="@drawable/drop_icon_white" />
</RelativeLayout>
<View
android:layout_width="match_parent"
android:layout_height="1dp"
android:layout_below="@+id/search"
android:layout_gravity="bottom"
android:background="#d3d3d3" />
</LinearLayout>
<ImageView
android:id="@+id/qr_icon"
android:layout_width="30dp"
android:padding="3dp"
android:layout_toLeftOf="@+id/notification_icon"
android:layout_height="30dp"
android:src="@drawable/ic_qr" />
<ImageView
android:id="@+id/notification_icon"
android:layout_width="30dp"
android:layout_height="30dp"
android:layout_alignParentRight="true"
android:padding="3dp"
android:src="@drawable/ic_notificatio" />
</RelativeLayout>
<RelativeLayout
android:id="@+id/search_layout"
android:layout_width="match_parent"
android:layout_height="35dp"
android:layout_below="@+id/location"
android:layout_marginBottom="8dp"
android:layout_marginLeft="15dp"
android:layout_marginRight="15dp"
android:layout_marginTop="8dp"
android:background="@drawable/border1"
android:gravity="center_vertical">
<ImageView
android:id="@+id/search_icon"
android:layout_width="15dp"
android:layout_height="15dp"
android:layout_alignParentLeft="true"
android:layout_centerInParent="true"
android:layout_marginLeft="15dp"
android:background="@drawable/search_icon"
android:padding="10dp" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerVertical="true"
android:layout_marginLeft="15dp"
android:layout_toRightOf="@+id/search_icon"
android:gravity="center"
android:text="search here" />
</RelativeLayout>
<RelativeLayout
android:layout_width="30dp"
android:background="@drawable/rounded_btn"
android:layout_alignParentRight="true"
android:layout_toRightOf="@+id/search_layout"
android:layout_height="30dp">
</RelativeLayout>
</RelativeLayout>
<ImageView
android:id="@+id/viewPager"
android:layout_width="match_parent"
android:layout_height="150dp"
android:layout_below="@+id/top_layout"
android:background="@drawable/college" />
<GridView
android:id="@+id/lvList"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_below="@+id/viewPager"
android:layout_marginLeft="10dp"
android:layout_marginRight="10dp"
android:numColumns="3"
android:padding="8dp"
android:visibility="visible">
</GridView>
</RelativeLayout>
<RelativeLayout
android:id="@+id/mainlay1"
android:layout_width="130dp"
android:elevation="10dp"
android:background="@drawable/list_border"
android:layout_centerInParent="true"
android:layout_height="130dp"
android:layout_margin="3dp">
<ImageView
android:id="@+id/typeImage"
android:layout_width="30dp"
android:layout_height="30dp"
android:background="@drawable/ic_school"
android:layout_centerVertical="true"
android:visibility="gone" />
<TextView
android:id="@+id/recentSearchItem"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:gravity="center"
android:inputType="textMultiLine"
android:padding="5dp"
android:text="Collage Name"
android:textColor="@color/black"
android:textSize="16dp" />
<View
android:id="@+id/lineView"
android:layout_width="match_parent"
android:layout_height="0.8dp"
android:layout_below="@+id/recentSearchItem"
android:background="@color/purple_700" />
</RelativeLayout>
</RelativeLayout>
Education XML CODE -4.1.2
package com.example.easyfind.education;
String
userID_Institute,instituteId,org_name,address1,address2,landmark,city_town,state_region,z
ip_code;
String
image_url,alternate_number,contact_number,description,latitude,longitude,service_catagory
_main,service_catagory_sub;
String org_email_id,speciality;
String itemName;
public SearchModel() {
}
}
Education Java CODE -4.2
package com.example.easyfind.education;
import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.ImageView;
import android.widget.RelativeLayout;
import android.widget.TextView;
import androidx.annotation.Nullable;
import com.example.easyfind.R;
import com.example.easyfind.common.Common;
import com.example.easyfind.common.Constants;
@Override
protected void onCreate(@Nullable Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.business_detail);
common = Common.getNewInstance(this);
banner_mg = findViewById(R.id.banner_mg);
call_Rl = findViewById(R.id.call_Rl);
location_Rl = findViewById(R.id.location_Rl);
rating_Rl = findViewById(R.id.rating_Rl);
enroll_btn = findViewById(R.id.enroll_btn);
batchtv = findViewById(R.id.batchtv);
services = findViewById(R.id.services);
test = findViewById(R.id.test);
image_url = getIntent().getStringExtra(Constants.image_url);
org_email_id = getIntent().getStringExtra(Constants.org_email_id);
org_name = getIntent().getStringExtra(Constants.org_name);
speciality = getIntent().getStringExtra(Constants.speciality);
contact_number = getIntent().getStringExtra(Constants.contact_number);
description = getIntent().getStringExtra(Constants.description);
latitude = getIntent().getStringExtra(Constants.latitude);
longitude = getIntent().getStringExtra(Constants.longitude);
service_catagory_main =
getIntent().getStringExtra(Constants.service_catagory_main);
service_catagory_sub =
getIntent().getStringExtra(Constants.service_catagory_sub);
INSTITUTE_ID = getIntent().getStringExtra(Constants.INSTITUTE_ID);
userID_Institute = getIntent().getStringExtra(Constants.org_email_id);
TextView name = findViewById(R.id.name);
TextView address = findViewById(R.id.address);
TextView specility_tv = findViewById(R.id.specility_tv);
TextView rating_tv = findViewById(R.id.rating_tv);
name.setText(org_name);
address.setText(speciality);
enroll_btn.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
if (common.isNetworkAvailable()) {
subscribeInstitute();
} else {
common.showShortToast(R.string.check_internet);
}
}
});
batchtv.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
}
});
services.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
}
});
call_Rl.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
String dial = "tel:" + contact_number;
startActivity(new Intent(Intent.ACTION_DIAL, Uri.parse(dial)));
}
});
test.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
common.showLongToast("Test");
}
});
location_Rl.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
}
});
}
Education XML CODE -4.2
<ScrollView
android:id="@+id/scrollview"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:scrollbars="none">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
<ImageView
android:id="@+id/banner_mg"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:adjustViewBounds="true"
android:background="@drawable/college"
android:scaleType="centerCrop" />
<View
android:layout_width="match_parent"
android:layout_height="2dp"
android:background="@color/grey_color" />
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="5dp">
<TextView
android:id="@+id/name"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerHorizontal="true"
android:text="Delhi University"
android:textColor="@color/grey_color"
android:textSize="19dp"
android:textStyle="bold" />
<TextView
android:id="@+id/address"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@+id/name"
android:layout_centerHorizontal="true"
android:layout_marginBottom="0dp"
android:text="Bagodar,Giridih,Jharkhand"
android:textColor="@color/grey_color"
android:textSize="14dp" />
<TextView
android:id="@+id/specility_tv"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@+id/address"
android:layout_centerHorizontal="true"
android:layout_marginBottom="0dp"
android:textColor="@color/grey_color"
android:text="Physics, Chemestry"
android:textStyle="bold"
android:textSize="17dp" />
</RelativeLayout>
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="5dp">
<RelativeLayout
android:id="@+id/call_Rl"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:padding="10dp">
<ImageView
android:id="@+id/mobile_icon"
android:layout_width="20dp"
android:layout_height="20dp"
android:layout_marginLeft="10dp"
android:background="@drawable/ic_mobile" />
<TextView
android:id="@+id/mobile_tv"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@+id/mobile_icon"
android:layout_marginLeft="10dp"
android:layout_marginTop="10dp"
android:layout_marginBottom="0dp"
android:text="Call"
android:textColor="@color/white"
android:textSize="14dp" />
</RelativeLayout>
<RelativeLayout
android:id="@+id/location_Rl"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerInParent="true"
android:padding="10dp">
<ImageView
android:id="@+id/location_icon"
android:layout_width="20dp"
android:layout_height="20dp"
android:layout_centerHorizontal="true"
android:layout_marginLeft="10dp"
android:background="@drawable/ic_location" />
<TextView
android:id="@+id/location_tv"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@+id/location_icon"
android:layout_centerHorizontal="true"
android:layout_marginLeft="10dp"
android:layout_marginTop="10dp"
android:layout_marginBottom="0dp"
android:text="Direction"
android:textColor="@color/white"
android:textSize="14dp" />
</RelativeLayout>
<RelativeLayout
android:id="@+id/rating_Rl"
android:layout_width="wrap_content"
android:padding="10dp"
android:layout_alignParentEnd="true"
android:layout_height="wrap_content">
<ImageView
android:id="@+id/rating_icon"
android:layout_width="20dp"
android:layout_height="20dp"
android:layout_centerHorizontal="true"
android:layout_marginLeft="10dp"
android:background="@drawable/ic_rateing" />
<TextView
android:id="@+id/rating_tv"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerHorizontal="true"
android:layout_below="@+id/rating_icon"
android:layout_marginLeft="10dp"
android:layout_marginTop="10dp"
android:layout_marginBottom="0dp"
android:text="4.0"
android:textColor="@color/white"
android:textSize="16dp" />
</RelativeLayout>
</RelativeLayout>
<Button
android:id="@+id/enroll_btn"
android:background="@drawable/rounded_btn"
android:layout_width="wrap_content"
android:layout_marginTop="5dp"
android:text="Subscribe"
android:textSize="18dp"
android:textColor="@color/white"
android:layout_gravity="center"
android:layout_height="wrap_content" />
<View
android:layout_width="match_parent"
android:layout_height="0.5dp"
android:layout_marginTop="10dp"
android:background="@color/cardview_light_background" />
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="wrap_content">
<TextView
android:id="@+id/notice"
android:layout_width="150dp"
android:layout_height="70dp"
android:layout_marginStart="10dp"
android:layout_marginTop="10dp"
android:layout_marginEnd="10dp"
android:layout_marginBottom="10dp"
android:background="@drawable/edit_text_style"
android:gravity="center"
android:singleLine="true"
android:text="Notice"
android:textColor="@color/white"
android:textSize="16sp" />
<TextView
android:id="@+id/batchtv"
android:layout_width="150dp"
android:layout_alignParentEnd="true"
android:singleLine="true"
android:background="@drawable/edit_text_style"
android:text="Batch"
android:layout_margin="10dp"
android:textColor="@color/white"
android:gravity="center"
android:textSize="16sp"
android:layout_height="70dp" />
</RelativeLayout>
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="wrap_content">
<TextView
android:id="@+id/services"
android:layout_width="150dp"
android:singleLine="true"
android:background="@drawable/edit_text_style"
android:text="Service"
android:textColor="@color/white"
android:layout_margin="10dp"
android:gravity="center"
android:textSize="16sp"
android:layout_height="70dp" />
<TextView
android:id="@+id/contactus"
android:layout_width="150dp"
android:layout_alignParentEnd="true"
android:singleLine="true"
android:background="@drawable/edit_text_style"
android:text="Contact Us"
android:textColor="@color/white"
android:layout_margin="10dp"
android:gravity="center"
android:textSize="16sp"
android:layout_height="70dp" />
</RelativeLayout>
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="wrap_content">
<TextView
android:id="@+id/test"
android:layout_width="150dp"
android:layout_height="70dp"
android:layout_marginStart="10dp"
android:layout_marginTop="10dp"
android:layout_marginEnd="10dp"
android:layout_marginBottom="10dp"
android:background="@drawable/edit_text_style"
android:gravity="center"
android:singleLine="true"
android:text="OnLine Test"
android:textColor="@color/white"
android:textSize="16sp" />
<TextView
android:id="@+id/events"
android:layout_width="150dp"
android:layout_alignParentEnd="true"
android:singleLine="true"
android:background="@drawable/edit_text_style"
android:text="Event"
android:textColor="@color/white"
android:layout_margin="10dp"
android:gravity="center"
android:textSize="16sp"
android:layout_height="70dp" />
</RelativeLayout>
</LinearLayout>
</ScrollView>
</LinearLayout>
package com.example.easyfind.education;
import android.app.Dialog;
import android.app.ProgressDialog;
import android.content.Context;
import android.os.Bundle;
import android.view.animation.Animation;
import android.view.animation.AnimationUtils;
import android.widget.ImageView;
import androidx.annotation.Nullable;
import androidx.appcompat.app.AppCompatActivity;
import androidx.fragment.app.FragmentManager;
import androidx.fragment.app.FragmentTransaction;
import com.example.easyfind.R;
@Override
protected void onCreate(@Nullable Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
dialog = new ProgressDialog(this);
dialog.setTitle("");
dialog.setMessage("Please wait...");
dialog.setIndeterminate(true);
}
loadDialog.setContentView(R.layout.spinner_rotate);
loadDialog.setCanceledOnTouchOutside(false);
loadDialog.setCancelable(false);
package com.example.easyfind.library;
import androidx.appcompat.app.AppCompatActivity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import com.example.easyfind.databinding.ActivityLibraryBinding;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
binding = ActivityLibraryBinding.inflate(getLayoutInflater());
setContentView(binding.getRoot());
binding.first.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
Intent intent= new Intent(library.this, LibraryDetailsActivity.class);
startActivity(intent);
}
});
}
}
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_marginBottom="30dp">
<LinearLayout
android:id="@+id/searchViewId"
android:layout_width="match_parent"
android:layout_height="55dp"
android:layout_alignParentTop="true"
android:background="#ADAFCDF3"
android:orientation="horizontal">
<ImageButton
android:id="@+id/imageBtn1"
android:layout_width="30dp"
android:layout_height="40dp"
android:layout_gravity="center_vertical"
android:layout_marginLeft="15dp"
android:backgroundTint="#00548EF3"
app:srcCompat="@drawable/ic_baseline_menu_24" />
<EditText
android:id="@+id/searchView"
android:layout_width="match_parent"
android:layout_height="38dp"
android:layout_gravity="center_vertical"
android:layout_margin="20dp"
android:paddingLeft="10dp"
android:layout_marginEnd="10dp"
android:layout_weight="8"
android:background="#30ffffff"
android:hint="Search Your Library">
</EditText>
<ImageButton
android:id="@+id/bellIcon"
android:layout_width="50dp"
android:layout_height="50dp"
android:layout_gravity="center_vertical"
android:layout_marginRight="15dp"
android:layout_weight="1"
android:background="#00548EF3"
android:src="@drawable/ic_notificatio">
</ImageButton>
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@id/searchViewId"
android:layout_margin="5dp"
android:gravity="center"
android:orientation="vertical">
<androidx.cardview.widget.CardView
android:id="@+id/first"
android:layout_width="match_parent"
android:layout_height="250dp"
android:layout_marginTop="5dp"
android:layout_marginBottom="10dp"
app:cardCornerRadius="15dp"
app:cardElevation="10dp">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
<ImageView
android:layout_width="match_parent"
android:layout_height="150dp"
android:layout_gravity="center_horizontal"
android:background="@drawable/college" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="5dp"
android:layout_marginTop="5dp"
android:text="₹ 200/Month"
android:textColor="@color/black"
android:textStyle="bold"/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="5dp"
android:layout_marginTop="5dp"
android:text="2x2 chamber With Chair And Fan"
android:textSize="13dp" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="5dp"
android:text="Location Annada Chowk Grugobind Singh Road,hzb"
android:textSize="13dp" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="5dp"
android:layout_marginTop="10dp"
android:text="Registation Fee 300 rs at a First Time "
android:textColor="@color/black"
android:textSize="10dp"
android:textStyle="bold"/>
</LinearLayout>
</androidx.cardview.widget.CardView>
<androidx.cardview.widget.CardView
android:layout_width="match_parent"
android:layout_height="250dp"
android:layout_marginBottom="10dp"
app:cardCornerRadius="15dp"
app:cardElevation="10dp">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
<ImageView
android:layout_width="match_parent"
android:layout_height="150dp"
android:layout_gravity="center_horizontal"
android:background="@drawable/ic_school" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="5dp"
android:layout_marginTop="5dp"
android:text="₹ 300/Month"
android:textColor="@color/black"
android:textStyle="bold"/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="5dp"
android:layout_marginTop="5dp"
android:text="2x2 chamber With Chair, Fan and AC"
android:textSize="13dp" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="5dp"
android:text="Location of sindoor near to Royal infield
showroom,Hzb"
android:textSize="13dp" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="5dp"
android:layout_marginTop="10dp"
android:text="Registation Fee 300 rs at a First Time "
android:textColor="@color/black"
android:textSize="10dp"
android:textStyle="bold"/>
</LinearLayout>
</androidx.cardview.widget.CardView>
<androidx.cardview.widget.CardView
android:layout_width="match_parent"
android:layout_height="250dp"
android:layout_marginBottom="10dp"
app:cardCornerRadius="15dp"
app:cardElevation="10dp">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
<ImageView
android:layout_width="match_parent"
android:layout_height="150dp"
android:layout_gravity="center_horizontal"
android:background="@drawable/library" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="5dp"
android:layout_marginTop="5dp"
android:text="₹ 400/Month"
android:textColor="@color/black"
android:textStyle="bold"/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="5dp"
android:layout_marginTop="5dp"
android:text="individual cabin With Chair, Fan and AC"
android:textSize="13dp" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="5dp"
android:text="Location of jhinjhariya pull,hzb"
android:textSize="13dp" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="5dp"
android:layout_marginTop="10dp"
android:text="Registation Fee 300 rs at a First Time "
android:textColor="@color/black"
android:textSize="10dp"
android:textStyle="bold"/>
</LinearLayout>
</androidx.cardview.widget.CardView>
<androidx.cardview.widget.CardView
android:layout_width="match_parent"
android:layout_height="250dp"
android:layout_marginBottom="10dp"
app:cardCornerRadius="15dp"
app:cardElevation="10dp">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
<ImageView
android:layout_width="wrap_content"
android:layout_height="150dp"
android:layout_gravity="center_horizontal"
android:background="@drawable/library_building" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="5dp"
android:layout_marginTop="5dp"
android:text="₹ 350/Month"
android:textColor="@color/black"
android:textStyle="bold"/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="5dp"
android:layout_marginTop="5dp"
android:text="2x3 chamber With Chair, Fan and AC"
android:textSize="13dp" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="5dp"
android:text="Location of gandhi maidan, near to Aisect
university,Hzb"
android:textSize="13dp" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="5dp"
android:layout_marginTop="10dp"
android:text="Registation Fee 300 rs at a First Time "
android:textColor="@color/black"
android:textSize="10dp"
android:textStyle="bold"/>
</LinearLayout>
</androidx.cardview.widget.CardView>
<androidx.cardview.widget.CardView
android:layout_width="match_parent"
android:layout_height="250dp"
android:layout_marginBottom="10dp"
app:cardCornerRadius="15dp"
app:cardElevation="10dp">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
<ImageView
android:layout_width="match_parent"
android:layout_height="150dp"
android:layout_gravity="center_horizontal"
android:background="@drawable/library_house" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="5dp"
android:layout_marginTop="5dp"
android:text="₹ 300/Month"
android:textColor="@color/black"
android:textStyle="bold"/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="5dp"
android:layout_marginTop="5dp"
android:text="2x2 chamber With Chair and Fan"
android:textSize="13dp" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="5dp"
android:text="Location of korrah road,hzb"
android:textSize="13dp" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="5dp"
android:layout_marginTop="10dp"
android:text="Registation Fee 300 rs at a First Time "
android:textColor="@color/black"
android:textSize="10dp"
android:textStyle="bold"/>
</LinearLayout>
</androidx.cardview.widget.CardView>
</LinearLayout>
</RelativeLayout>
</ScrollView>
Library Java CODE -5.2
package com.example.easyfind.library;
import androidx.appcompat.app.AppCompatActivity;
import android.os.Bundle;
import com.example.easyfind.databinding.ActivityLibraryDetailsBinding;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
binding=ActivityLibraryDetailsBinding.inflate(getLayoutInflater());
setContentView(binding.getRoot());
}
}
<ScrollView
android:id="@+id/scrollview"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:scrollbars="none">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_margin="3dp"
android:orientation="vertical">
<ImageView
android:id="@+id/banner_mg"
android:layout_width="match_parent"
android:layout_height="250dp"
android:adjustViewBounds="true"
android:background="@drawable/libraryimage1"
android:scaleType="centerCrop" />
<View
android:layout_width="match_parent"
android:layout_height="3dp"
android:background="@color/grey_color" />
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="5dp">
<TextView
android:id="@+id/name"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerHorizontal="true"
android:text="Library"
android:textColor="@color/grey_color"
android:textSize="19dp"
android:textStyle="bold" />
<TextView
android:id="@+id/address"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@+id/name"
android:layout_centerHorizontal="true"
android:layout_marginBottom="0dp"
android:text="Location Annada Chowk Grugobind Singh Road,hzb"
android:textColor="@color/grey_color"
android:textSize="14dp" />
<TextView
android:id="@+id/specility_tv"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@+id/address"
android:layout_centerHorizontal="true"
android:layout_marginBottom="0dp"
android:text="Competitive Books Available"
android:textColor="@color/grey_color"
android:textSize="17dp"
android:textStyle="bold" />
</RelativeLayout>
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="5dp">
<RelativeLayout
android:id="@+id/call_Rl"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:padding="10dp">
<ImageView
android:id="@+id/mobile_icon"
android:layout_width="20dp"
android:layout_height="20dp"
android:layout_marginLeft="10dp"
android:background="@drawable/ic_mobile" />
<TextView
android:id="@+id/mobile_tv"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@+id/mobile_icon"
android:layout_marginLeft="10dp"
android:layout_marginTop="10dp"
android:layout_marginBottom="0dp"
android:text="Call"
android:textColor="@color/white"
android:textSize="14dp" />
</RelativeLayout>
<RelativeLayout
android:id="@+id/location_Rl"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerInParent="true"
android:padding="10dp">
<ImageView
android:id="@+id/location_icon"
android:layout_width="20dp"
android:layout_height="20dp"
android:layout_centerHorizontal="true"
android:layout_marginLeft="10dp"
android:background="@drawable/ic_location" />
<TextView
android:id="@+id/location_tv"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@+id/location_icon"
android:layout_centerHorizontal="true"
android:layout_marginLeft="10dp"
android:layout_marginTop="10dp"
android:layout_marginBottom="0dp"
android:text="Direction"
android:textColor="@color/white"
android:textSize="14dp" />
</RelativeLayout>
<RelativeLayout
android:id="@+id/rating_Rl"
android:layout_width="wrap_content"
android:padding="10dp"
android:layout_alignParentEnd="true"
android:layout_height="wrap_content">
<ImageView
android:id="@+id/rating_icon"
android:layout_width="20dp"
android:layout_height="20dp"
android:layout_centerHorizontal="true"
android:layout_marginLeft="10dp"
android:background="@drawable/ic_rateing" />
<TextView
android:id="@+id/rating_tv"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerHorizontal="true"
android:layout_below="@+id/rating_icon"
android:layout_marginLeft="10dp"
android:layout_marginTop="10dp"
android:layout_marginBottom="0dp"
android:text="4.0"
android:textColor="@color/white"
android:textSize="16dp" />
</RelativeLayout>
</RelativeLayout>
<Button
android:id="@+id/enroll_btn"
android:background="@drawable/rounded_btn"
android:layout_width="wrap_content"
android:layout_marginTop="5dp"
android:text="Subscribe"
android:textSize="18dp"
android:textColor="@color/white"
android:layout_gravity="center"
android:layout_height="wrap_content" />
<View
android:layout_width="match_parent"
android:layout_height="0.5dp"
android:layout_marginTop="10dp"
android:background="@color/cardview_light_background" />
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:paddingEnd="15dp"
android:paddingStart="15dp">
<TextView
android:id="@+id/notice"
android:layout_width="150dp"
android:layout_height="70dp"
android:layout_marginStart="10dp"
android:layout_marginTop="10dp"
android:layout_marginEnd="10dp"
android:layout_marginBottom="10dp"
android:background="@drawable/edit_text_style"
android:gravity="center"
android:singleLine="true"
android:text="Notice"
android:textColor="@color/white"
android:textSize="16sp" />
<TextView
android:id="@+id/batchtv"
android:layout_width="150dp"
android:layout_alignParentEnd="true"
android:singleLine="true"
android:background="@drawable/edit_text_style"
android:text="Batch"
android:layout_margin="10dp"
android:textColor="@color/white"
android:gravity="center"
android:textSize="16sp"
android:layout_height="70dp" />
</RelativeLayout>
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:paddingEnd="15dp"
android:paddingStart="15dp"
android:id="@+id/below">
<TextView
android:id="@+id/services"
android:layout_width="150dp"
android:singleLine="true"
android:background="@drawable/edit_text_style"
android:text="Service"
android:textColor="@color/white"
android:layout_margin="10dp"
android:gravity="center"
android:textSize="16sp"
android:layout_height="70dp" />
<TextView
android:id="@+id/test"
android:layout_width="150dp"
android:layout_height="70dp"
android:layout_alignParentRight="true"
android:layout_margin="10dp"
android:background="@drawable/edit_text_style"
android:gravity="center"
android:singleLine="true"
android:text="OnLine Test"
android:textColor="@color/white"
android:textSize="16sp" />
</RelativeLayout>
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:id="@+id/notification">
<include
android:id="@+id/include"
layout="@layout/notice"
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:layout_constraintBottom_toBottomOf="parent"
tools:layout_editor_absoluteX="-16dp" />
</RelativeLayout>
</LinearLayout>
</ScrollView>
</LinearLayout>
Food Corner Java CODE -6.1
package com.example.easyfind.foodcorner;
import androidx.appcompat.app.AppCompatActivity;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import com.example.easyfind.R;
import com.example.easyfind.education.BaseActivity;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_food_list);
}
@Override
public int getCount() {
return 0;
}
@Override
public Object getItem(int position) {
return null;
}
@Override
public long getItemId(int position) {
return 0;
}
@Override
public View getView(int position, View convertView, ViewGroup parent) {
return null;
}
}
}
<LinearLayout
android:id="@+id/searchViewId"
android:layout_width="match_parent"
android:layout_height="55dp"
android:layout_alignParentTop="true"
android:background="#ADAFCDF3"
android:orientation="horizontal">
<ImageButton
android:id="@+id/imageBtn1"
android:layout_width="30dp"
android:layout_height="40dp"
android:layout_gravity="center_vertical"
android:layout_marginLeft="15dp"
android:backgroundTint="#00548EF3"
app:srcCompat="@drawable/ic_baseline_menu_24" />
<EditText
android:id="@+id/searchView"
android:layout_width="match_parent"
android:layout_height="38dp"
android:layout_gravity="center_vertical"
android:layout_margin="20dp"
android:paddingLeft="10dp"
android:layout_marginEnd="10dp"
android:layout_weight="8"
android:background="#30ffffff"
android:hint="Search Your Food">
</EditText>
<ImageButton
android:id="@+id/bellIcon"
android:layout_width="50dp"
android:layout_height="50dp"
android:layout_gravity="center_vertical"
android:layout_marginRight="15dp"
android:layout_weight="1"
android:background="#00548EF3"
android:src="@drawable/ic_notificatio">
</ImageButton>
</LinearLayout>
<ListView
android:layout_below="@+id/searchViewId"
android:layout_width="match_parent"
android:layout_height="match_parent"/>
</RelativeLayout>
import androidx.appcompat.app.AppCompatActivity;
import android.os.Bundle;
import com.example.easyfind.R;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_food_details);
}
}
<ScrollView
android:id="@+id/scrollview"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_margin="3dp"
android:scrollbars="none">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
<ImageView
android:id="@+id/banner_mg"
android:layout_width="match_parent"
android:layout_height="250dp"
android:adjustViewBounds="true"
android:background="@drawable/dhosa"
android:scaleType="centerCrop" />
<View
android:layout_width="match_parent"
android:layout_height="3dp"
android:background="@color/grey_color" />
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="5dp">
<TextView
android:id="@+id/restoname"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerHorizontal="true"
android:text="A K International"
android:textColor="@color/grey_color"
android:textSize="19dp"
android:textStyle="bold" />
<TextView
android:id="@+id/restoaddress"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@+id/restoname"
android:layout_centerHorizontal="true"
android:layout_marginBottom="0dp"
android:text="Location Near Gandhi Maidan, HZB"
android:textColor="@color/grey_color"
android:textSize="14dp" />
<TextView
android:id="@+id/foodname"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@+id/restoaddress"
android:layout_centerHorizontal="true"
android:layout_marginBottom="0dp"
android:text="Paneer Masala"
android:textColor="@color/grey_color"
android:textSize="17dp"
android:textStyle="bold" />
</RelativeLayout>
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="5dp">
<RelativeLayout
android:id="@+id/call_Rl"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:padding="10dp">
<ImageView
android:id="@+id/mobile_icon"
android:layout_width="20dp"
android:layout_height="20dp"
android:layout_marginLeft="10dp"
android:background="@drawable/ic_mobile" />
<TextView
android:id="@+id/mobile_tv"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@+id/mobile_icon"
android:layout_marginLeft="10dp"
android:layout_marginTop="10dp"
android:layout_marginBottom="0dp"
android:text="Call"
android:textColor="@color/white"
android:textSize="14dp" />
</RelativeLayout>
<RelativeLayout
android:id="@+id/location_Rl"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerInParent="true"
android:padding="10dp">
<ImageView
android:id="@+id/location_icon"
android:layout_width="20dp"
android:layout_height="20dp"
android:layout_centerHorizontal="true"
android:layout_marginLeft="10dp"
android:background="@drawable/ic_location" />
<TextView
android:id="@+id/location_tv"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@+id/location_icon"
android:layout_centerHorizontal="true"
android:layout_marginLeft="10dp"
android:layout_marginTop="10dp"
android:layout_marginBottom="0dp"
android:text="Direction"
android:textColor="@color/white"
android:textSize="14dp" />
</RelativeLayout>
<RelativeLayout
android:id="@+id/rating_Rl"
android:layout_width="wrap_content"
android:padding="10dp"
android:layout_alignParentEnd="true"
android:layout_height="wrap_content">
<ImageView
android:id="@+id/rating_icon"
android:layout_width="20dp"
android:layout_height="20dp"
android:layout_centerHorizontal="true"
android:layout_marginLeft="10dp"
android:background="@drawable/ic_rateing" />
<TextView
android:id="@+id/rating_tv"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerHorizontal="true"
android:layout_below="@+id/rating_icon"
android:layout_marginLeft="10dp"
android:layout_marginTop="10dp"
android:layout_marginBottom="0dp"
android:text="4.0"
android:textColor="@color/white"
android:textSize="16dp" />
</RelativeLayout>
</RelativeLayout>
<Button
android:id="@+id/enroll_btn"
android:background="@drawable/rounded_btn"
android:layout_width="wrap_content"
android:layout_marginTop="5dp"
android:text="Subscribe"
android:textSize="18dp"
android:textColor="@color/white"
android:layout_gravity="center"
android:layout_height="wrap_content" />
<View
android:layout_width="match_parent"
android:layout_height="0.5dp"
android:layout_marginTop="10dp"
android:background="@color/cardview_light_background" />
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="wrap_content">
<TextView
android:id="@+id/headername"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerHorizontal="true"
android:text="Another Available Items"
android:textColor="@color/grey_color"
android:textSize="19dp"
android:textStyle="bold" />
<ListView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:id="@+id/itemlist"
android:layout_below="@id/headername"/>
</RelativeLayout>
</LinearLayout>
</ScrollView>
</LinearLayout>
import android.app.Activity;
import android.app.Dialog;
import android.content.Context;
import android.content.SharedPreferences;
import android.location.Location;
import android.net.ConnectivityManager;
import android.net.NetworkInfo;
import android.net.Uri;
import android.os.Environment;
import android.view.View;
import android.view.inputmethod.InputMethodManager;
import android.widget.Toast;
import java.io.File;
import java.util.Calendar;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
/**
* Created by Amit on 28/11/17.
*/
return mInstance;
}
inputMethodManager.hideSoftInputFromWindow(activity
.getCurrentFocus().getWindowToken(), 0);
} catch (Exception e) {
// TODO: handle exception
}
• Money doesn't grow: You don't get any return on the property that
one is taking on rent. The real beneficiary is owner of the house who
earns an income.
It will save the physical hard work and invaluable time to find room/flat.
Application will make easy to find rooms/flats for the renter and upload
the location and other information by landlord/room-master.
8. References
• www.developer.android.com
• www. tutorialspoint.com
• www.GeeksforGeeks.com
• www.flaticon.com
• WWW.Google.com