Documente Academic
Documente Profesional
Documente Cultură
Submitted by
D.SAI GANESH(161131029)
BACHELOR OF TECHNOLOGY
IN
Submitted by
BACHELOR OF TECHNOLOGY
IN
ii
BONAFIDE CERTIFICATE
SIGNATURE
SUPERVISOR
iii
ACKNOWLEDGEMENT
and constructive suggestions that helpful me in the preparation of this project. I would
also like to thank my class mates for their wonderful and skillful guidance in assisting me
with the necessary support to ensure that my project is a success. I also thank my parents and
family for their moral and financial support in funding the project to ensure successful completion
of the project.
iv
ABSTRACT
Our mission is to promote sports and physical activity i.e. Indoor and Outdoor games and sports
through our Android Application “SPORTS ME ” . An overview on how the module works is
given including descriptions, use-cases, database models, activity diagrams, and in more detail
an elaboration on the inner workings of the algorithm behind the Sportsme. Our ultimate goal is
not just to promote the indoor and outdoor sports activity but also aware people about the
“SPORTS ME “ is an android application which provide platform for any individuals or sports
club to take part in various events like district level or state level competition . Here sports
Organizing committee can register their event like (Basketball, football etc ) and the interested
candidate can take part on this tournaments . This app will also provide the profile maintains on
an individual and it will helpful for him/her to participate in future events ,this will be done by
updating his/her performance in that particular event ,and it will be very helpful for a club or a
team or franchise for the selection of the players on the basis of their Performance. This app will
be very useful for any individual who are good in some particular sport and it will increase their
chance of their selection in different levels like state. This app will also provide the detail of an
individuals performance and also its rating will maintain in this app.
v
Currently there is no specific area which promote sports there is event organizing area in
facebook and some other social networking areas but it is not specific towards sports . Our
Application is specific and it will success promote and encourage people to participate in sports.
TABLE OF CONTENTS
ACKNOWLEDGEMENT Iv
ABSTRACT V
LIST OF FIGURES X
1 INTRODUCTION 1
2 LITERATURE REVIEW 3
2.1 Introduction 3
2.3 limitation of the Existing System
2.2 Summary 4
3 SYSTEM DESIGN 5
3.1 Introduction 5
vi
3.3.1 Benefits of Proposed Application 6
3.4 Summary 7
4.1 Introduction 8
4.6.2 E R Diagram 16
4.7 Summary 17
5 CONCLUSION 26
vii
7.1 Future Enhancement 27
6 REFERENCE 28
APPENDIX 29
A SOURCE CODE 29
viii
LIST OF FIGURES
FIGURE NO NAME PAGE NO
4.5.1 Login and Sign up Module 10
4.5.2 Scoreboard Input Module 11
4.5.3 Profile Input Module 12
4.5.4 Event Input Module 12
4.5.5 Sports Input Subject Module 13
4.5.6 Encouragement and Competitive Module 14
4.6.1 Data Flow Diagram 15
4.6.2 E R Diagram 12
ix
CHAPTER 1
1. INTRODUCTION
1.1 INTRODUCTION:
This project targets to develop an Android Application ‘SPORTSME’. In our Country there are
many talented people who are good at sports but due to lack of awareness about sports events
they can’t participate . This Application will resolves the problem by Maintaining an individuals
profile and also give him/her update about sports events and Tournaments so that they can take
part on that event and this will help to get selected in different level like District ,State National
and even International sports Tournament .This Application will maintain the profile of an
Here different sports organizing committee can organize their sports events like Inter collage
Tournaments that will help in good awareness and thus large number of team can register on it
Android Studio for making this Application and Firebase in order to craft the database and save
the particulars. Anyone with a little Mobile Application Knowledge can easily operate the
Application and it’s user-friendly. The Application provides security to the users with a perfect
login page.
1
1.2 ABOUT:
Our mission is to promote sports and physical activity i.e. Indoor and Outdoor games and sports
through our Android Application “SPORTS ME ” . An overview on how the module works is
given including descriptions, use-cases, database models, activity diagrams, and in more detail
an elaboration on the inner workings of the algorithm behind the Sportsme. Our ultimate goal is
not just to promote the indoor and outdoor sports activity but also aware people about the
“SPORTS ME “ is an android application which provide platform for any individuals or sports
club to take part in various events like district level or state level competition . Here sports
Organizing committee can register their event like (Basketball, football etc ) and the interested
candidate can take part on this tournaments . This app will also provide the profile maintains on
an individual and it will helpful for him/her to participate in future events ,this will be done by
updating his/her performance in that particular event ,and it will be very helpful for a club or a
team or franchise for the selection of the players on the basis of their Performance. This app will
be very useful for any individual who are good in some particular sport and it will increase their
chance of their selection in different levels like state. This app will provide the detail information
about the an individual player. Here any institution can organize their event and this will be
2
1.3 SUMMARY:
This document contains details on how This Android Application will promote the Sports and
physical activity and how it will provide more and more opportunity to different person on the
3
CHAPTER 2
1 LITERATUREREVIEW
1.1 INTRODUCTION:
Trying to develop An Android Application which will promote sports like indoor and outdoor
games so that more and more people can participate and can took interest in sports and various
physical activity and thus it have direct influence in the health of and improvement of their
health condition it will also helpful in selecting players for different levels like State ,National
and thus it will be very helpful of any institution to select talented player and it will motivate
other people and youth to take part and to take more interest in Sports then the virtual games like
video games.
Thus the requirement of the application is to provide the details mainly about the various
Events ,and will maintain the club profile ,and player profiles. It will maintain the profile of
various individuals by keeping updates about players performance and giving ranks. Here
different institution or organizing committee can organize there events related to sports and it
will provide updates and notification to every players so they can actively participate in that
event.
Here the event organizing committee will organize their event by organizing their event and
giving the details about location and type of tournament and registration fees of the event so it
will be very helpful in making improving in health as well .Here the event will get automatically
get synchronous in your calendar so that continuous updates can be given on it. In our country
4
most of the people refers to play only cricket because of high promotion of this many people
think that there is no scope in other sports too. So it will promote different Sports in our country
1.2 SUMMARY:
The document contains details on how to promote different sports in our country and make our
country a sport country like Australia And England by promoting Sports and Games in different
5
CHAPTER 3
SYSTEM DESIGN
3.1 INTRODUCTION:
This chapter reviews how the existing problems which is faced by many people and teenagers of
different countries by too much spending time on virtual games rather then going out and play
physical sports system and proposed system work as well as to produce a better alternative for its
improvement.
The major task here is to design an Android Application on how to promote the Sports in
different level in our country and thus giving opportunity to every person.
Today’s generations or spending too much time on playing virtual games like psp ,PC games
etc. that have many disadvantage in their health condition. Usually teenagers are spending
too much time in playing virtual games Which makes them lazy, Aggressive and impatience.
It also have negative effect on their eyes it make a teenagers or a child much addictive
toward this games which is very dangerous regarding their health and also with their studies
They are loosing their interest in sports and about their physical fitness. In todays time people
are loosing their interest in playing outside special because of many people are getting
involved in using too much Social Networking Sites and wasting too much time in playing
virtual game which is just nothing more then wasting their time . The rise of the gaming
industry is also a big factor in shaping the minds of the young people. There are adverse health
issues followed by addictive video gamming that includes. Higher heart attack risks, obesity,
depression and addiction are few of them. These are not serious among kids but are dangerous
for adults. There are particular health risks for children too. Video-induced seizures. and
6
postural, muscular and skeletal disorders, such as tendonitis, nerve compression, carpal tunnel
It is important to be physically and mentally fit for an individuals in today’s time people are
usually spending too much time in playing virtual game and spending time in social networking
The health benefits of sports and games – Sport have revealed that
children who play sports are less stressed out than those kids who do not take
part in any physical activity. Participation in sports has many other benefits like
increased cardiovascular fitness, a healthy growth in their tendons, bones,
ligaments and muscles.
According to some studied around 30% of children between 5 to 19 years are obese it is
mainly due to eating junk food. playing games and sports have significantly effect on the
3.3PROPOSED APPLICATION:
7
The application is used for promoting sports events and encouraging teenagers and clubs
to participate in sports.
In the proposed application administrator should not to worry about their late and
improper management.
More and More sports and physical activity will be promoted through this App .
8
3.4 SUMMARY:
In this chapter we have discussed about how virtual gaming is changing the world and it effect
on the health and lifestyle on today‘s generation. We also discussed about proposed application,
CHAPTER 4
4.1 INTRODUCTION:
Application design is the specification or construction of a technical, Android -based solution for
the requirements identified in application design analysis. It gives the overall plan or model of a
application consisting of all specifications that give the application its form and structure.
The objective of designing this Android Application reviews how the today’s generation are
facing problems by spending too much time on virtual games and loosing their interest in sports
and other outdoor games .By implementing application that have a better alternative for its
improvement.
The major task here is to design a website on how to promote the sports and physical activity in
an efficient way.
9
The following are the factors put into consideration during the design of the application:
The aim of our android application is to promote sports and physical activity in different
Target various organizations who want to organize their event related to sports can
The output design of the application is to help in the selection of talented players and promote
sports and physical activity .Here any institution or organizing committee can organize their
events and thus this lead to selection of talented players across the globe.
The input design is the interaction point between the user and the system.
10
4.5 PROGRAM DESIGN:
This is where the programs that will run the modules identified in the control center are
specified. This will enable the researcher to capture the complete working picture of the
application, how each component is related to another, the calling program modules and the ones
called. This website consists of various program modules. Each module of the system is a
complete module and part of the entire system. Below are the various modules contained in the
application.
This is the module that is loaded when ever any event occurs by any organizing committee or by
any institution they can easily register their event on this app wants and can organize a
successful event and also any one can easily register their name in the event getting regular
notification for the events . Login module accepts two fields (Username, Password) and Sign up
module accepts four fields (Mail, Full name, Username, and Password). Sign up module is for
the users who are registering first and login module is for the users who already signed in the
application. If the login information is valid, a new session will be created for the user and the
dashboard page will be loaded, else an error message based on the offence committed will be
11
Fig 4.5.1: Login and Sign up Module
This module contain the information of score which is being updated by the An Administration
like impair or referee who will also be responsible for updating the players performance which
will helpful for player for applying in further tournaments that will also help in proper selection
12
Fig 4.5.2: Score Board Module
13
This module will contain player profile and it will contain rating section and will give complete
The profession module nis the interface (subsystem0 that managesbthe courses available in
14
4.5.5 Profile Module:
This module will contain the entire details of an individual players and thus help them to apply in
higher levels and tournament and encourage them to participate them on more events .
15
4.6 DATABASE DESIGN
ADMIN PASSWORD
Login
Login Process
EXPERIENCE
OF PLAYING
NUMBER OF
TOURNAMENT PERFORMANCE
AREE OF INTERST PARTICIPATED DETAILS
MASTER ENTRIES
16
4.6.2 E R DIAGRAM:
The system is implemented in such a way that all the valid information’s are stored in the
database. Database design converts the data model developed in logical designing to database
definition. This is supported by database software. The management of data involves both the
definition of structure of the storage of information and provision of mechanism for the
handle, despite the system crashes due to attempts of unauthorized access. A database is a
collection of interrelated data stored with minimum redundancy to serve many users quickly and
efficiently. In database design, several views of data must be considered along with the person
who users them. The logical view is what the data look like, regardless of how they are stored.
The physical view is the way data exist in physical storage. Tables are carefully designed aiming
to achieve its main objectives i.e., to make information access easy, quick, inexpensive and
NORMALIZATION:
Normalization is the process of analyzing the given relation schemas based on their "functional
dependencies and primary keys to achieve the desirable properties of minimizing redundancy,
Minimizing the insertion, deletion and updating anomalies. Normalization is carried out for the
following reasons:
To structure the data so that perfect relationship between entries can be represented.
To reduce the need to restructure or reorganize data when new application requirements
arises
17
18
4.7 SUMMARY:
In this chapter we have discussed about the designs such as output design, input design, program
design, and database design. And also we have discussed about objectives of design and also
how to make ER-diagram and what are all the steps involve in making of ER-diagram and also
19
6. FUTURE ENHANCEMENT
The future enhancement that can be developed from the project is to promote sports and physical
activity i.e. Indoor and Outdoor games and sports through our Android Application “SPORTS
ME ”. This project will give equal opportunity to every people to participate and contribute
towards sports by participating and organizing events at various levels like state national ,district
and local levels that will encourage more and more people to take part. Here players profile will
be maintain that will help him/her to take part at different levels and also it will increase their
chance of selection will increases. It will also give notification of where and which sports is
being organized and at what time. It will also inform about Registrations fee of the events and
also a sponsored section will be their so that any company or any institute can promote their
product. this Application will also give awareness of the importance of sports in youths to come
out and play physical sports this app will also give notification. It also help in the selection of the
players just by looking on their profile and their ratings that will help them to get selected at
different level .here the data base of the players will be maintain on the basis of their
performance i.e. winning or losing factor will be consider and also their ratings. The algorithm
20
The Automatic
Timetable
Generator is
driven portal for
educational
organization and is
a web based
application which
will be helpful for
creating
Timetabels . This
project will be a
21
great helpful for the
institiutions
because, It is
a great difficult task
that to manage
many Faculty's and
allocating subjects
for
them at a time
manually and this
project will help to
22
manage it properly.
This
manage timetable
for faculty with
considering
maximum and
minimum
workload , and can
be managed easily
CHAPTER 8
RFERENCES
23
APPENDIXI
Source Code
import android.content.Intent;
import android.support.annotation.NonNull;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.EditText;
import android.widget.Toast;
import com.google.android.gms.tasks.OnCompleteListener;
import com.google.android.gms.tasks.Task;
import com.google.firebase.auth.AuthResult;
import com.google.firebase.auth.FirebaseAuth;
import com.google.firebase.auth.FirebaseUser;
import com.google.firebase.database.DatabaseReference;
import com.google.firebase.database.FirebaseDatabase;
FirebaseAuth Auth;
EditText editeextemail,edittextpassword;
public FirebaseUser user ;
FirebaseDatabase database = FirebaseDatabase.getInstance();
DatabaseReference databaseReference = database.getReference().child("Users");
;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_login);
Auth =FirebaseAuth.getInstance();
editeextemail = (EditText)findViewById(R.id.editTextEmail);
edittextpassword =(EditText)findViewById(R.id.editTextPassword);
findViewById(R.id.buttonLogin).setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
Auth.signInWithEmailAndPassword(editeextemail.getText().toString(),edittextpassword.ge
tText().toString()).addOnCompleteListener(new OnCompleteListener<AuthResult>() {
@Override
public void onComplete(@NonNull Task<AuthResult> task) {
if (task.isSuccessful())
{
Toast.makeText(LoginActivity.this, "logeed in",
Toast.LENGTH_SHORT).show();
Intent MainActivity = new Intent(LoginActivity.this,
com.mcos.agni.sportme.MainActivity.class);
startActivity(MainActivity);
}else {
Toast.makeText(LoginActivity.this, "failed, try again",
Toast.LENGTH_SHORT).show();
}
24
}
});
}
});
}
findViewById(R.id.buttonSIgnup1).setOnClickListener(new View.OnClickListener()
{
@Override
public void onClick(View v) {
Intent Sign = new Intent(ProfileActivity.this,LoginActivity.class);
25
startActivity(Sign);
}
});
findViewById(R.id.buttonLogin1).setOnClickListener(new View.OnClickListener()
{
@Override
public void onClick(View v) {
Intent Sign = new Intent(ProfileActivity.this,SignupActivity.class);
startActivity(Sign);
}
});
}
}
Signup Module Source code
package com.mcos.agni.sportme;
import android.content.Intent;
import android.support.annotation.NonNull;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.EditText;
import android.widget.Toast;
import com.google.android.gms.tasks.OnCompleteListener;
import com.google.android.gms.tasks.Task;
import com.google.firebase.auth.AuthResult;
import com.google.firebase.auth.FirebaseAuth;
import com.google.firebase.auth.FirebaseUser;
import com.google.firebase.database.DatabaseReference;
import com.google.firebase.database.FirebaseDatabase;
import java.util.HashMap;
import java.util.Map;
FirebaseAuth Auth;
DatabaseReference databaseReference =
FirebaseDatabase.getInstance().getReference().child("Users");
EditText
edittextEmail,edittextPassowrd,editTextSex,editTextphone,editTextUsername,editTextage;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_signup);
Auth = FirebaseAuth.getInstance();
edittextEmail = (EditText)findViewById(R.id.editTextEmail);
edittextPassowrd = (EditText)findViewById(R.id.editTextPassword);
editTextphone = (EditText)findViewById(R.id.editTextPhoneNumber);
editTextUsername = (EditText)findViewById(R.id.editTextUserName) ;
editTextage = (EditText)findViewById(R.id.editTextAge);
findViewById(R.id.buttonSignup).setOnClickListener(new View.OnClickListener()
{
@Override
public void onClick(View v) {
Auth.createUserWithEmailAndPassword(edittextEmail.getText().toString(),edittextPassowr
d.getText().toString())
.addOnCompleteListener(new OnCompleteListener<AuthResult>() {
@Override
26
public void onComplete(@NonNull Task<AuthResult> task) {
if (task.isSuccessful()){
String userid = Auth.getCurrentUser().getUid();
DatabaseReference databaseReference =
FirebaseDatabase.getInstance().getReference().child("Users").child(userid);
Map data = new HashMap();
data.put("Email",edittextEmail.getText().toString());
data.put("Password",edittextPassowrd.getText().toString());
data.put("Phone",editTextphone.getText().toString());
data.put("Username",editTextUsername.getText().toString());
data.put("Age",editTextage.getText().toString());
databaseReference.setValue(data);
Toast.makeText(SignupActivity.this, "User
Created", Toast.LENGTH_SHORT).show();
Intent login = new
Intent(SignupActivity.this,LoginActivity.class);
startActivity(login);
}
else{
Toast.makeText(SignupActivity.this, "Network Error
\'make sure ypur internet connection is good\'", Toast.LENGTH_SHORT).show();
}
}
});
}
});
}
}
int score1=0;
int score2=0;
TextView score2textA;
TextView score2textB;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_basket_ball_score_board);
score2textA = (TextView)findViewById(R.id.score1);
score2textB = (TextView)findViewById(R.id.score2);
}
public void add3(View view)
{
score1=score1+3;
display1(Integer.toString(score1));
}
public void add2(View view)
{
score1=score1+2;
display1(Integer.toString(score1));
}
public void add(View view)
27
{
score1=score1+1;
display1(Integer.toString(score1));
}
private void display1(String text)
{
score2textA.setText(text);
}
public void badd3(View view)
{
score2=score2+3;
display2(Integer.toString(score2));
}
public void badd2(View view)
{
score2=score2+2;
display2(Integer.toString(score2));
}
public void badd(View view)
{
score2=score2+1;
display2(Integer.toString(score2));
}
private void display2(String text)
{
score2textB.setText(text);
}
public void reset(View view)
{
score2=0;
score1=0;
score2textA.setText("0");
score2textB.setText("0");
}
}
Designation code
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context="com.mcos.agni.sportme.LoginActivity">
<TextView
android:id="@+id/textViewLogin"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentTop="true"
android:layout_centerHorizontal="true"
android:layout_marginTop="52dp"
android:textSize="30sp"
android:fontFamily="@font/aclonica"
android:text="Login" />
28
<EditText
android:id="@+id/editTextEmail"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@+id/textViewLogin"
android:layout_centerHorizontal="true"
android:hint="Enter email"
android:layout_marginTop="36dp"
android:ems="10"
android:inputType="textEmailAddress" />
<EditText
android:id="@+id/editTextPassword"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignLeft="@+id/editTextEmail"
android:layout_alignStart="@+id/editTextEmail"
android:hint="Enter your password"
android:layout_below="@+id/editTextEmail"
android:layout_marginTop="37dp"
android:ems="10"
android:inputType="phone" />
<Button
android:id="@+id/buttonLogin"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignEnd="@+id/editTextPassword"
android:layout_alignRight="@+id/editTextPassword"
android:layout_below="@+id/editTextPassword"
android:layout_marginEnd="9dp"
android:layout_marginRight="9dp"
android:layout_marginTop="31dp"
android:text="Login" />
<TextView
android:id="@+id/textView3"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:layout_centerHorizontal="true"
android:layout_marginBottom="77dp"
android:text="click here if you are anew user please signup" />
</RelativeLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:id="@+id/linearLayout">
<Button
29
android:id="@+id/buttonSIgnup1"
android:layout_width="wrap_content"
android:layout_weight="1"
android:layout_height="wrap_content"
android:text="Signup"
android:background="@color/colorAccent"/>
<Button
android:id="@+id/buttonLogin1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="@color/colorAccent"
android:backgroundTint="@color/colorPrimary"
android:text="Login"/>
</LinearLayout>
<ImageView
android:id="@+id/imageView2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_alignParentStart="true"
android:layout_below="@+id/linearLayout"
android:layout_marginLeft="41dp"
android:layout_marginStart="41dp"
android:layout_marginTop="40dp"
app:srcCompat="@drawable/ic_perm_identity_black_48dp" />
<TextView
android:id="@+id/Username"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_above="@+id/Email"
android:layout_marginLeft="36dp"
android:layout_marginStart="36dp"
android:layout_toEndOf="@+id/imageView2"
android:layout_toRightOf="@+id/imageView2"
android:text="User_name"
android:textSize="20sp"
android:textStyle="bold" />
<TextView
android:id="@+id/Email"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignBottom="@+id/imageView2"
android:layout_alignLeft="@+id/Username"
android:layout_alignStart="@+id/Username"
android:text="Nickname"
android:textSize="20sp" />
<RatingBar
android:id="@+id/ratingBar"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:layout_alignParentEnd="true"
android:layout_alignParentRight="true"
android:layout_marginBottom="60dp" />
<TextView
android:id="@+id/textView5"
android:layout_width="wrap_content"
30
android:layout_height="wrap_content"
android:layout_above="@+id/ratingBar"
android:layout_alignLeft="@+id/ratingBar"
android:layout_alignStart="@+id/ratingBar"
android:text="Rating" />
<TextView
android:id="@+id/textView6"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignLeft="@+id/imageView2"
android:layout_alignStart="@+id/imageView2"
android:layout_below="@+id/imageView2"
android:layout_marginTop="28dp"
android:text="Games on play"
android:textSize="16sp"
android:textStyle="bold" />
<ListView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_above="@+id/textView5"
android:layout_alignLeft="@+id/textView6"
android:layout_alignStart="@+id/textView6"
android:layout_below="@+id/textView6"
android:id="@+id/listView" />
<TextView
android:id="@+id/textView7"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignBottom="@+id/ratingBar"
android:layout_alignLeft="@+id/listView"
android:layout_alignStart="@+id/listView"
android:layout_marginBottom="18dp"
android:text="Overall"
android:textAlignment="center"
android:textAllCaps="false"
android:textSize="20sp"
android:textStyle="bold|italic" />
</RelativeLayout>
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="match_parent">
<LinearLayout
android:id="@+id/a"
android:layout_width="match_parent"
android:layout_height="match_parent"
31
android:orientation="horizontal">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_weight="1"
android:orientation="vertical">
<TextView
android:id="@+id/taem1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:layout_marginTop="16dp"
android:text="TeamA"
android:textColor="#000000"
android:textSize="24sp" />
<TextView
android:id="@+id/score1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:layout_margin="10dp"
android:text="0"
android:textColor="#000000"
android:textSize="100sp" />
<Button
android:id="@+id/add3"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="5dp"
android:layout_marginLeft="24dp"
android:layout_marginRight="24dp"
android:layout_marginTop="5dp"
android:onClick="add3"
android:text="+3 points" />
<Button
android:id="@+id/add2"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="5dp"
android:layout_marginLeft="24dp"
android:layout_marginRight="24dp"
android:layout_marginTop="5dp"
android:onClick="add2"
android:text="+2 points" />
<Button
android:id="@+id/add1"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="5dp"
android:layout_marginLeft="24dp"
android:layout_marginRight="24dp"
android:layout_marginTop="5dp"
android:onClick="add"
android:text="+1 free trough" />
</LinearLayout>
32
<View
android:layout_width="1dp"
android:layout_height="365dp"
android:layout_marginTop="16dp"
android:background="@android:color/darker_gray" />
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_weight="1"
android:orientation="vertical">
<TextView
android:id="@+id/taem2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:layout_marginTop="16dp"
android:text="TeamB"
android:textColor="#000000"
android:textSize="24sp" />
<TextView
android:id="@+id/score2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:layout_margin="10dp"
android:text="0"
android:textColor="#000000"
android:textSize="100sp" />
<Button
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="5dp"
android:layout_marginLeft="24dp"
android:layout_marginRight="24dp"
android:layout_marginTop="5dp"
android:onClick="badd3"
android:text="+3 points" />
<Button
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="5dp"
android:layout_marginLeft="24dp"
android:layout_marginRight="24dp"
android:layout_marginTop="5dp"
android:onClick="badd2"
android:text="+2 points" />
<Button
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="5dp"
android:layout_marginLeft="24dp"
android:layout_marginRight="24dp"
android:layout_marginTop="5dp"
android:onClick="badd"
android:text="+1 free trough" />
33
</LinearLayout>
</LinearLayout>
<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:onClick="reset"
android:layout_alignParentBottom="true"
android:layout_centerHorizontal="true"
android:layout_marginBottom="32dp"
android:text="reset"/>
</RelativeLayout>
</android.support.constraint.ConstraintLayout>
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_margin="15sp">
<EditText
android:id="@+id/enterTeamEditView"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignBottom="@+id/bat1EditView"
android:layout_alignParentLeft="true"
android:layout_alignParentStart="true"
android:layout_gravity="center"
android:layout_marginBottom="41dp"
android:layout_marginLeft="7dp"
android:layout_marginStart="7dp"
android:hint="Enter team name"
android:maxLines="1" />
<EditText
android:id="@+id/bat1EditView"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_above="@+id/startBtn"
android:layout_alignLeft="@+id/enterTeamEditView"
android:layout_alignStart="@+id/enterTeamEditView"
android:layout_gravity="center"
android:layout_marginBottom="42dp"
android:hint="Enter Batsman1" />
<EditText
android:id="@+id/bat2EditView"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignLeft="@+id/bat1EditView"
android:layout_alignParentTop="true"
android:layout_alignStart="@+id/bat1EditView"
android:layout_gravity="center"
android:layout_marginTop="168dp"
android:hint="Enter Batsman2" />
34
<Button
android:id="@+id/startBtn"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentEnd="true"
android:layout_alignParentRight="true"
android:layout_below="@+id/bat2EditView"
android:layout_gravity="center"
android:layout_marginEnd="12dp"
android:layout_marginRight="12dp"
android:layout_marginTop="11dp"
android:onClick="startGame"
android:text="START GAME" />
<TextView
android:id="@+id/textView2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_above="@+id/enterTeamEditView"
android:layout_centerHorizontal="true"
android:layout_marginBottom="15dp"
android:text="One step ahead" />
<TextView
android:id="@+id/textView4"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentTop="true"
android:layout_centerHorizontal="true"
android:layout_marginTop="12dp"
android:text="Enter details to play"
android:textSize="30sp" />
</RelativeLayout>
35