MLM PDF
MLM PDF
MLM PDF
BY
TO THE
The matter embodied in this report has not been submitted to any other university or institute
earlier for the award of any degree or diploma.
(1810714905) (1810714902)
I
ABSTRACT
This document is meant for the describing all the features and procedures that were followed
while developing the system
This document specially mentions the details of the project how it was developed, The primary
requirement, as well as various features and functionalities of the project and the procedures
followed in achieving these objectives.
Multi level marketing, or MLM, is a form of direct sales home business in which independent
representatives sell products or services from a company to an end consumer. The multi-level
aspect refers to each representative's ability to recruit and train other representatives to start their
own business, and earn a commission on their reps' sales.
Income earned in MLM comes from the commission earned on personal sales, as well as a
percentage of the sales earned by other reps recruited by you.
II
ACKNOWLEDGEMENTS
Acknowledgements, truly is an act of sincere thanks giving and indebtedness to them who have
guided and helped in the preparation process of a project as the present one. I take this
opportunity to thank all those who have had a key role in the success of this project. They have
inspired, mentored, directed and seen the project through to its completion.Firstly I would like to
acknowledge Prof. K.P. Pandey (Director, SHEPA) who has provided us enough support and
good environment while making the proxpress heartfelt gratitude to Dr. Anupam Shukla
(Director, ICST) and again humble thanks to Mr. Vivek gupta (H.O.D, Computer Science)
took great pain in going through the entire process and made valuable comments and suggestions
with constant encouragement.
We would like special thanks to our coordinator Mr. Vivek Gupta who provided us with
sample ideas when we got stuck during the project. He also helped us to collect all the relevant
information. We can’t forget to thank to sir who were very helpful to us directly or indirectly
during development of this project.
Last but not the least I would like to thank my parents for their moral support and encouragement
and my friends whose valuable co-operation gave me vast knowledge in computer application.
I am also thankful to all my faculty members, and the people who are directly or indirectly
related to my Project and helped me out for completing my work successfully.
ROLL NO.1810714905
PLACE: VARANASI
III
TABLE OF CONTENT
Introduction
Topic
Objective
Scope
System Analysis
Identification of need
Preliminary Investigation
Feasibility Study
Technical feasibility
Operational feasibility
Analysis & Designing
DFD (0-level, 1-level, 2-level)
E-R diagram
Table structure
S/w & H/w requirement specification
System design Screenshots
System Coding
Future Scope of the project
Conclusion
References
IV
List of Tables
2 MLM STRUCTURE 30
3 NEWS TABLE 32
5 DOWNLINE TABLE 34
V
List of Figures
3. DATA FLOW 17
4. PROCESS 17
5. EXTERNAL ENTITY/ACTOR 18
6. DATA STORE 18
7. 0-LEVEL DFD 20
8. 1-LEVEL DFD 21
12. ATTRIBUTES 25
16. RELATIONSHIP 26
17. LINKS 26
VI
List of Abbreviations
VIII
INTRODUCTION
1
INTRODUCTION
Income earned in MLM comes from the commission earned on personal sales, as well as a
percentage of the sales earned by other reps recruited by you.
Sponsor: The sponsor is the representative who directly recruits another person into the
business. For example, MLM member A recruits member B into the business. Member A is the
sponsor and is responsible for training member B.
Recruit: A recruit may also be referred to a team member. It's a person brought into the business
by a sponsor as a new member. Recruits are trained by their sponsor or "upline" (see below)
representatives.
Downline: Your downline contains the recruits brought in below you. This can include members
you've recruited as well as those your recruits have brought into the business.
Upline: The upline consists of the representative sponsors who came in before you. For example,
if rep A recruited rep B, who recruited rep C, who recruited you, your upline is C, B, and A.
2
SYSTEM
ANALYSIS:
IDENTIFICATION
OF NEED
3
Overgrown Smartphone usage of general public enforces MLM companies to shift perspective
towards MLM Mobile apps. Technology-driven development in the behavior of customers and
prospects foster to make efforts to improve user experience, reliability, and reputation through
MLM software mobile apps. MLM Mobile application allows the users to manage their profile
through mobile or tablet and provides updated information on commission and compensations
and thereby, consequently subdue the burden of using desktop computers throughout the time to
an optimum level. Back in years, we also took part in these advancements through pioneering the
first ever mobile MLM application for MLM business, INFINITE MLM MOBILE APP. From
the inception, our mobile app favors all MLM Companies that focus on expanding their user
experience to Mobile and Tablets platforms. Through these years, Inspirations from the success
and learnings from the failures endeavor us to develop more and more reliable MLM apps, with
the most advanced MLM features on all Smartphone platform that no one can match.
Many business models that can be benefited greatly from customized MLM mobile apps that
function as recruiting, product sales, marketing and communication tools. Any ability to improve
communication among sales teams, communicate with your down-line brand representatives and
gamify sales goals through bonuses and special achievement awards are one such way multi-
level marketing mobile apps can help a network marketing business.
Infinite MLM mobile app is an add-on provided along the Infinite MLM Software to aid
network-marketing companies to outperform its own metrics and empower distributors to run
their business like pros from a Tablet or Smartphone with exceeding simplicity and convenience.
With our MLM Apps, customers can check their incentives, payments, downlines, e-wallet
statements and even register new members.
4
Our MLM apps are the perfect companion for an MLM Business. Multi-level marketing mobile
app favors all MLM Companies that aim at expanding their user experience also to Mobile and
Tablets platforms. The inception of MLM iPhone app has provided impeccable power to
Network marketing business. Both MLM android app & MLM iPhone apps we build are always
scalable and gives a higher level of business for all clients.
Login: For logging the user using their Distributer ID and Password.
Dashboard: To display the summary of your business including customer details, joining
information, payment details and more options
Funds: Details about various funds such as car fund, house fund & Travel fund.
Add Member: Allow adding new users to the Downline & generating their Distributer ID.
Notification: Shows the Notifications sent to the user from the supplier.
News: Shows the recent news published for all distributers by the Supplier.
5
Vouchers: Shows the gained Vouchers On Purchasing.
6
FEASIBILITY
STUDY
7
PROBLEM DESCRIPTION & LIMITATION
The system on which the software will be designed must contains atleast 4 GB RAM to run
the software Android Studio.
The users cannot change the theme of the application.
Difficult manage users on a single platform.
Difficult to add online payment gateways.
8
ANALYSIS
&
DESIGNING
9
CASE DIAGRAM
To model a system, the most important aspect is to capture the dynamic behaviour. Dynamic
behavior means the behavior of the system when it is running / operating.
Only static behavior is not sufficient to model a system rather dynamic behavior is more
important than static behavior. In UML, there are five diagrams available to model the dynamic
nature and use case diagram is one of them. Now as we have to discuss that the use case
diagram is dynamic in nature, there should be some internal or external factors for making the
interaction.
These internal and external agents are known as actors. Use case diagrams consists of actors,
use cases and their relationships. The diagram is used to model the system/subsystem of an
application. A single use case diagram captures a particular functionality of a system.
Hence to model the entire system, a number of use case diagrams are used.
The purpose of use case diagram is to capture the dynamic aspect of a system. However, this
definition is too generic to describe the purpose, as other four diagrams (activity, sequence,
collaboration, and State chart) also have the same purpose. We will look into some specific
purpose, which will distinguish it from other four diagrams.
Use case diagrams are used to gather the requirements of a system including internal and
external influences. These requirements are mostly design requirements. Hence, when a system
is analyzed to gather its functionalities, use cases are prepared and actors are identified.
When the initial task is complete, use case diagrams are modelled to present the outside view.
We can say that use cases are nothing but the system functionalities written in an organized
manner. The second thing which is relevant to use cases are the actors. Actors can be defined as
something that interacts with the system.
Actors can be a human user, some internal applications, or may be some external applications.
When we are planning to draw a use case diagram, we should have the following items
identified.
Actors
Use case diagrams are drawn to capture the functional requirements of a system. After
identifying the above items, we have to use the following guidelines to draw an efficient use
case diagram
The name of a use case is very important. The name should be chosen in such a way so
that it can identify the functionalities performed.
Do not try to include all types of relationships, as the main purpose of the diagram is to
identify the requirements.
11
LOGIN
ADDING
DISTRIBUTER
VIEW BUSINESS
POINTS
VIEW INCOME
ORDER FOR
DISTRIBUTER PURCHASE
FEEDBACK
12
LOGIN
MANAGE USER
MANAGE
PRODUCTS
GENERATE ORDER
RECEIPTS
SEND FEEDBACK
RESPONSE
SUPPLIER
UPLOAD NEWS &
ORDERS
VIEW
FEEDBACK
13
ACTOR’S GOAL TABLE
Actors Actor goal table Use case Name
Table: 1
14
DATA FLOW DIAGRAM (DFD)
A data flow diagram (DFD) is a graphical representation of the "flow" of data through
an information system, modelling its process aspects.
There is a prominent difference between DFD and Flowchart. The flowchart depicts flow of
control in program modules. DFDs depict flow of data in the system at various levels. DFD
does not contain any control or branch elements.
A DFD is often used as a preliminary step to create an overview of the system without going
into great detail, which can later be elaborated. DFDs can also be used for
the visualization of data processing (structured design).
Processes,
Data Flows,
Actors, and
Data Stores
Constraints &
Control Flows
15
Elements of the DFD
Processes
A process is a business activity or function where the manipulation and transformation of data
takes place. A process can be decomposed to finer level of details, for representing how data is
being processed within the process.
Processes are computational activities that transform data values. A whole system canbe
visualized as a high level process.
OR
Data Flows
Data flow represents the flow of data between two Processes. It could be between an actor and a
Process, or between a data store and a process. A data flow represents the flow of information,
with its direction represented by an arrow head that shows at the end(s) of flow connector.
An external entity or an actor can represent a human, system or subsystem. It is where certain
data comes from or goes to. It is external to the system we study, in terms of the business
process. For this reason, people used to draw external entities on the edge of a diagram.
Data Stores
A data store represents the storage of persistent data required and/or produced by the process.
Here are some examples of data stores: membership forms, database table, etc. They are use to
store and retrieve the stored data.
Abc or Abc
Representation in DFD- Data stores are represented by two parallel lines containing the name
of the stored data. Each data store is connected to atleast one process. Input arrow shows the
content to modify the data store while the output arrow represents the information retrieved
from the data store.
17
Levels of DFD
Level 0 - Highest abstraction level DFD is known as Level 0 DFD, which depicts the
entire information system as one diagram concealing all the underlying details. Level 0
DFDs are also known as context level DFDs.
Level 1 - The Level 0 DFD is broken down into more specific, Level 1 DFD. Level 1
DFD depicts basic modules in the system and flow of data among various modules. Level
1 DFD also mentions basic processes and sources of information.
Level 2 - At this level, DFD shows how data flows inside the modules mentioned in
Level 1.
Higher level DFDs can be transformed into more specific lower level DFDs with deeper
level of understanding unless the desired level of specification is achieved.
18
19
20
21
22
E-R Diagram
The ER model defines the conceptual view of a database. It works around real-world entities
and the associations among them. At view level, the ER model is considered a good option for
designing databases.
Entity
An entity can be a real-world object, either animate or inanimate, that can be easily identifiable.
For example, in a school database, students, teachers, classes, and courses offered can be
considered as entities. All these entities have some attributes or properties that give them their
identity.
An entity set is a collection of similar types of entities. An entity set may contain entities with
attribute sharing similar values. For example, a Students set may contain all the students of a
school; likewise a Teachers set may contain all the teachers of a school from all faculties. Entity
sets need not be disjoint.
Attributes
Entities are represented by means of their properties, called attributes. All attributes have
values. For example, a student entity may have name, class, and age as attributes.
There exists a domain or range of values that can be assigned to attributes. For example, a
student's name cannot be a numeric value. It has to be alphabetic. A student's age cannot be
negative, etc.
23
Types of Attributes
Simple attribute − Simple attributes are atomic values, which cannot be divided further.
For example, a student's phone number is an atomic value of 10 digits.
Composite attribute − Composite attributes are made of more than one simple attribute.
For example, a student's complete name may have first_name and last_name.
Derived attribute − Derived attributes are the attributes that do not exist in the physical
database, but their values are derived from other attributes present in the database. For
example, average_salary in a department should not be saved directly in the database,
instead it can be derived. For another example, age can be derived from data_of_birth.
Multi-value attribute − Multi-value attributes may contain more than one values. For
example, a person can have more than one phone number, email_address, etc.
For example, the roll_number of a student makes him/her identifiable among students.
Super Key − A set of attributes (one or more) that collectively identifies an entity in an
entity set.
24
Candidate Key − A minimal super key is called a candidate key. An entity set may have
more than one candidate key.
Primary Key − A primary key is one of the candidate keys chosen by the database
designer to uniquely identify the entity set.
Relationship
The association among entities is called a relationship. For example, an employee works_at a
department, a student enrolls in a course. Here, Works_at and Enrolls are called relationships.
Relationship Set
A set of relationships of similar type is called a relationship set. Like entities, a relationship too
can have attributes. These attributes are called descriptive attributes.
Degree of Relationship
The number of participating entities in a relationship defines the degree of the relationship.
Binary = degree 2
Ternary = degree 3
n-ary = degree
Mapping Cardinalities
Cardinality defines the number of entities in one entity set, which can be associated with the
number of entities of other set via relationship set.
25
One-to-one − One entity from entity set A can be associated with at most one entity of
entity set B and vice versa.
One-to-many − One entity from entity set A can be associated with more than one
entities of entity set B however an entity from entity set B, can be associated with at
most one entity.
26
Many-to-one − More than one entities from entity set A can be associated with at most
one entity of entity set B, however an entity from entity set B can be associated with
more than one entity from entity set A.
Many-to-many − One entity from A can be associated with more than one entity from
B and vice versa.
27
28
29
30
31
32
33
34
Software
&
Hardware
Requirements
35
SOFTWARE & HARDWARE REQUIREMENTS
Software Requirements
For developing...
IDE: Android Studio 3.0
For running...
Operating System : Android (Kitkat or above)
Hardware requirements
For Developing...
Laptop / Desktop
Processor: Intel dual core or above
Memory...
RAM: 4 GB minimum
Hard disk: 80 GB minimum
36
For Running...
Mobile Phone
Memory...
Ram: 512 MB minimum
37
Software & hardware Descriptions
Android
Android is a software package and linux based operating system for mobile devices such as
tablet computers and smartphones.
It is developed by Google and later the OHA (Open Handset Alliance). Java language is mainly
used to write the android code even though other languages can be used.
The goal of android project is to create a successful real-world product that improves the mobile
experience for end users.
Android is an open source and Linux-based operating system for mobile devices such as
smartphones and tablet computers. Android was developed by the Open Handset Alliance, led
by Google, and other companies. This tutorial will teach you basic Android programming and
will also take you through some advance concepts related to Android application development.
Android was developed by the Open Handset Alliance, led by Google, and other companies.
Android offers a unified approach to application development for mobile devices which means
developers need only develop for Android, and their applications should be able to run on
different devices powered by Android.
The first beta version of the Android Software Development Kit (SDK) was released by Google
in 2007 where as the first commercial version, Android 1.0, was released in September 2008.
On June 27, 2012, at the Google I/O conference, Google announced the next Android version,
4.1 Jelly Bean. Jelly Bean is an incremental update, with the primary aim of improving the user
interface, both in terms of functionality and performance.
The source code for Android is available under free and open source software licenses. Google
publishes most of the code under the Apache License version 2.0 and the rest, Linux kernel
changes, under the GNU General Public License version 2.
38
Features of Android
Android is a powerful operating system competing with Apple 4GS and supports great features.
Few of them are listed below –
Beautiful UI
Android OS basic screen provides a beautiful and intuitive user interface.
Connectivity
GSM/EDGE, IDEN, CDMA, EV-DO, UMTS, Bluetooth, Wi-Fi, LTE, NFC and WiMAX.
Storage
SQLite, a lightweight relational database, is used for data storage purposes.
Media support
H.263, H.264, MPEG-4 SP, AMR, AMR-WB, AAC, HE-AAC, AAC 5.1, MP3, MIDI, Ogg
Vorbis, WAV, JPEG, PNG, GIF, and BMP.
Messaging
Web browser
Based on the open-source WebKit layout engine, coupled with Chrome's V8 JavaScript engine
supporting HTML5 and CSS3.
Multi-touch
Android has native support for multi-touch which was initially made available in handsets such
as the HTC Hero.
Multi-tasking
39
User can jump from one task to another and same time various application can run
simultaneously.
Resizable widgets
Widgets are resizable, so users can expand them to show more content or shrink them to save
space.
Multi-Language
GCM
Google Cloud Messaging (GCM) is a service that lets developers send short message data to
their users on Android devices, without needing a proprietary sync solution.
Wi-Fi Direct
A technology that lets apps discover and pair directly, over a high-bandwidth peer-to-peer
connection.
Android Beam
A popular NFC-based technology that lets users instantly share, just by touching two NFC-
enabled phones together.
40
Android Applications
Android applications are usually developed in the Java language using the Android Software
Development Kit.
Once developed, Android applications can be packaged easily and sold out either through a
store such as Google Play, SlideME, Opera Mobile Store, Mobango, F-droid and
the Amazon Appstore.
Android powers hundreds of millions of mobile devices in more than 190 countries around the
world. It's the largest installed base of any mobile platform and growing fast. Every day more
than 1 million new Android devices are activated worldwide.
This tutorial has been written with an aim to teach you how to develop and package Android
application. We will start from environment setup for Android application programming and
then drill down to look into various aspects of Android applications.
Second point is that all the required tools to develop Android applications are freely available
and can be downloaded from the Web. Following is the list of software's you will need before
you start your Android application programming.
Android Studio
Here last two components are optional and if you are working on Windows machine then these
components make your life easy while doing Java based application development.
Android IDEs
There are so many sophisticated Technologies are available to develop android applications, the
familiar technologies, which are predominantly using tools as follows
Android Studio
Eclipse IDE(Deprecated)
41
Android Libraries
This category encompasses those Java-based libraries that are specific to Android development.
Examples of libraries in this category include the application framework libraries in addition to
those that facilitate user interface building, graphics drawing and database access. A summary
of some key core Android libraries available to the Android developer is as follows −
android.app − Provides access to the application model and is the cornerstone of all
Android applications.
Having covered the Java-based core libraries in the Android runtime, it is now time to turn our
attention to the C/C++ based libraries contained in this layer of the Android software stack.
Android Runtime
This is the third section of the architecture and available on the second layer from the bottom.
This section provides a key component called Dalvik Virtual Machine which is a kind of Java
Virtual Machine specially designed and optimized for Android.
42
The Dalvik VM makes use of Linux core features like memory management and multi-
threading, which is intrinsic in the Java language. The Dalvik VM enables every Android
application to run in its own process, with its own instance of the Dalvik virtual machine.
The Android runtime also provides a set of core libraries which enable Android application
developers to write Android applications using standard Java programming language.
Application Framework
The Application Framework layer provides many higher-level services to applications in the
form of Java classes. Application developers are allowed to make use of these services in their
applications.
Android Studio
Android Studio is the official IDE for android application development.It works based
on IntelliJ IDEA, You can download the latest version of android studio from Android
Studio 2.2 Download, If you are new to installing Android Studio on windows,you will
find a file, which is named as android-studio-bundle-143.3101438-windows.exe.So just
download and run on windows machine according to android studio wizard guideline.
If you are installing Android Studio on Mac or Linux, You can download the latest version
from Android Studio Mac Download,or Android Studio Linux Download, check the
instructions provided along with the downloaded file for Mac OS and Linux. This tutorial
will consider that you are going to setup your environment on Windows machine having
Windows 8.1 operating system.
43
JAVA
Java is defined by a specification and consists of a programming language, a compiler, core
libraries and a runtime (Java virtual machine) The Java runtime allows software developers to
write program code in other languages than the Java programming language which still runs on
the Java virtual machine. The Java platform is usually associated with the Java virtual machineand
the Java core libraries.
Platform independent: Java programs use the Java virtual machine as abstraction and do not
access the operating system directly. This makes Java programs highly portable. A Java
program (which is standard-compliant and follows certain rules) can run unmodified on all
supported platforms, e.g., Windows or Linux.
Object-orientated programming language: Except the primitive data types, all elements in Java
are objects.
Strongly-typed programming language: Java is strongly-typed, e.g., the types of the used
variables must be pre-defined and conversion to other objects is relatively strict, e.g., must be
done in most cases by the programmer.
Interpreted and compiled language: Java source code is transferred into the bytecode format
which does not depend on the target platform. These bytecode instructions will be interpreted
by the Java Virtual machine (JVM). The JVM contains a so called Hotspot-Compiler which
translates performance critical bytecode instructions into native code instructions.
Automatic memory management: Java manages the memory allocation and de-allocation for
creating new objects. The program does not have direct access to the memory. The so-called
garbage collector automatically deletes objects to which no active pointer exists.
44
JVM
The Java virtual machine (JVM) is a software implementation of a computer that executes
programs like a real machine.
The Java virtual machine is written specifically for a specific operating system, e.g., for Linux a
special implementation is required as well as for Windows.
Java programs are compiled by the Java compiler into bytecode. The Java virtual machine
interprets this bytecode and executes the Java program.
Java source files are written as plain text documents. The programmer typically writes Java source
code in an Integrated Development Environment (IDE) for programming. An IDE supports the
programmer in the task of writing code, e.g., it provides auto-formating of the source code,
highlighting of the important keywords, etc.
At some point the programmer (or the IDE) calls the Java compiler ( javac ). The Java compiler
creates the bytecode instructions. These instructions are stored in .class files and can be executed
by the Java Virtual Machine.
Classpath
The classpath defines where the Java compiler and Java runtime look for .class files to load.
These instructions can be used in the Java program.
For example, if you want to use an external Java library you have to add this library to your
classpath to use it in your program.
45
FIREBASE
Firebase is a backend platform for building Web, Android and IOS applications. It offers real
time database, different APIs, multiple authentication types and hosting platform.
Firebase can power your app's backend, including data storage, user authentication, static
hosting, and more. Focus on creating extraordinary user experiences. We will take care of the
rest. Build cross-platform native mobile and web apps with our Android, iOS, and JavaScript
SDKs. You can also connect Firebase to your existing backend using our server-side libraries or
our REST API.
Firebase Features
Real-time Database − Firebase supports JSON data and all users connected to it receive
live updates after every change.
Hosting − The applications can be deployed over secured connection to Firebase servers.
Firebase Advantages
The data is real-time, which means that every change will automatically update
connected clients.
Firebase Limitations
The Firebase data is representing JSON objects. If you open your app from Firebase dashboard,
you can add data manually by clicking on the + sign.
46
It provides the following features for the Development phase
Crash Reporting to keep your apps stable and free from bugs.
47
SYSTEM
DESIGN
SCREENSHOTS
48
SPLASH SCREEN
49
LOGIN
50
DASHBOARD
51
PROFILE (PERSONAL DETAIL)
52
PROFILE (CONTACT DETAIL)
53
PROFILE (BANK DETAIL)
54
PROFILE (EDIT BANK DETAIL)
55
USER DOWNLINE
56
FUNDS
57
BONUS
58
NOTIFICATION
59
CONTACT
60
FEEDBACK
61
VOUCHER
62
POINTS
63
NEWS
64
COMPANY
65
NEW DISTRIBUTER REGISTRATION
66
MOBILE NO. FOR AUTHENTICATION
67
OTP VERIFICATION
68
SYSTEM
CODING
69
ANDROID MANIFEST.XML
<application
android:allowBackup="true"
android:icon="@drawable/logo"
android:label="@string/app_name"
android:roundIcon="@drawable/logo"
android:supportsRtl="true"
android:theme="@style/AppTheme">
<activity android:name=".Splash">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<service android:name=".MyFirebaseMessagingService">
<intent-filter>
<action android:name="com.google.firebase.MESSAGING_EVENT" />
</intent-filter>
</service>
<service android:name=".MyFirebaseInstanceIdService">
<intent-filter>
70
<action android:name="com.google.firebase.INSTANCE_ID_EVENT" />
</intent-filter>
</service>
71
<activity android:name=".Level1" />
<activity android:name=".Level11" />
<activity android:name=".Level111" />
<activity android:name=".Level2" />
<activity android:name=".Level22" />
<activity android:name=".Level222" />
<activity android:name=".Level3" />
<activity android:name=".FillActivity" />
<activity android:name=".Level33" />
<activity android:name=".Level333"></activity>
<activity android:name=".Level4" />
<activity android:name=".Level44" />
<activity android:name=".Level444"></activity>
</application>
</manifest>
72
ABOUT FRAGMENT.JAVA
package mht.mlm;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
/**
* A simple {@link Fragment} subclass.
*/
public class AboutFragment extends Fragment {
public AboutFragment() {
// Required empty public constructor
}
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container,
Bundle savedInstanceState) {
// Inflate the layout for this fragment
return inflater.inflate(R.layout.fragment_about, container, false);
}
73
BANK DETAIL.JAVA
package mht.mlm;
import android.content.Context;
import android.content.Intent;
import android.content.SharedPreferences;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;
import com.google.firebase.database.DataSnapshot;
import com.google.firebase.database.DatabaseError;
import com.google.firebase.database.DatabaseReference;
import com.google.firebase.database.FirebaseDatabase;
import com.google.firebase.database.ValueEventListener;
/**
* A simple {@link Fragment} subclass.
*/
public class BankDetail extends Fragment {
public BankDetail() {
// Required empty public constructor
}
74
TextView mob,addres,email;
String idaa;
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container,
Bundle savedInstanceState) {
//the layout for this fragment
View bd= inflater.inflate(R.layout.fragment_bank_detail, container, false);
mob=bd.findViewById(R.id.bn);
addres=bd.findViewById(R.id.bnn);
email=bd.findViewById(R.id.acn);
bd.findViewById(R.id.imageView2).setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
startActivity(new Intent(getActivity() ,FillActivity.class));
}
});
75
String value1 = dataSnapshot.child(idaa).child("BN").getValue(String.class);
mob.setText ("Bank Name :"+value1);
String value2 = dataSnapshot.child(idaa).child("BBN").getValue(String.class);
addres.setText("Branch Name :"+value2);
String value3 = dataSnapshot.child(idaa).child("AC").getValue(String.class);
email.setText ("A/C Number :"+value3);
@Override
public void onCancelled(DatabaseError error) {
}
});
return bd;
}
76
BONUS.JAVA
package mht.mlm;
import android.content.Context;
import android.content.Intent;
import android.content.SharedPreferences;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;
import com.google.firebase.database.DataSnapshot;
import com.google.firebase.database.DatabaseError;
import com.google.firebase.database.DatabaseReference;
import com.google.firebase.database.FirebaseDatabase;
import com.google.firebase.database.ValueEventListener;
TextView pb,db,lb,tp;
String id;
ImageView d;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_bonus);
pb=findViewById(R.id.textView22);
db=findViewById(R.id.textView27);
77
lb=findViewById(R.id.textView28);
tp=findViewById(R.id.textView29);
d=findViewById(R.id.gate);
d.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
SharedPreferences sharedPreferences = getSharedPreferences("L&P",
Context.MODE_PRIVATE);
SharedPreferences.Editor editor = sharedPreferences.edit();
editor.clear();
editor.commit();
finish();
startActivity(new Intent(Bonus.this,Splash.class));
}
});
78
public void onCancelled(DatabaseError error) {
// Failed to read value
}
});
@Override
public void onCancelled(DatabaseError error) {
// Failed to read value
}
});
79
@Override
public void onCancelled(DatabaseError error) {
// Failed to read value
}
});
@Override
public void onCancelled(DatabaseError error) {
// Failed to read value
}
});
}
}
80
CAR FUND.JAVA
package mht.mlm;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
/**
* A simple {@link Fragment} subclass.
*/
public class CarFund extends Fragment {
public CarFund() {
// Required empty public constructor
}
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container,
Bundle savedInstanceState) {
// Inflate the layout for this fragment
return inflater.inflate(R.layout.fragment_car_fund, container, false);
}
81
COMPANY ACTIVITY.JAVA
package mht.mlm;
import android.content.Context;
import android.content.Intent;
import android.content.SharedPreferences;
import android.os.Bundle;
import android.support.design.widget.TabLayout;
import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentPagerAdapter;
import android.support.v4.view.ViewPager;
import android.support.v7.app.AppCompatActivity;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.TextView;
mViewPager.addOnPageChangeListener(new
TabLayout.TabLayoutOnPageChangeListener(tabLayout));
tabLayout.addOnTabSelectedListener(new
TabLayout.ViewPagerOnTabSelectedListener(mViewPager));
d=findViewById(R.id.gate);
d.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
SharedPreferences sharedPreferences = getSharedPreferences("L&P",
Context.MODE_PRIVATE);
SharedPreferences.Editor editor = sharedPreferences.edit();
editor.clear();
editor.commit();
finish();
startActivity(new Intent(CompanyActivity.this,Splash.class));
}
});
} /**
* A placeholder fragment containing a simple view.
*/
public static class PlaceholderFragment extends Fragment {
83
/**
* The fragment argument representing the section number for this
* fragment.
*/
private static final String ARG_SECTION_NUMBER = "section_number";
public PlaceholderFragment() {
}
/**
* Returns a new instance of this fragment for the given section
* number.
*/
public static PlaceholderFragment newInstance(int sectionNumber) {
PlaceholderFragment fragment = new PlaceholderFragment();
Bundle args = new Bundle();
args.putInt(ARG_SECTION_NUMBER, sectionNumber);
fragment.setArguments(args);
return fragment;
}
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container,
Bundle savedInstanceState) {
View rootView = inflater.inflate(R.layout.fragment_company, container, false);
TextView textView = (TextView) rootView.findViewById(R.id.section_label);
textView.setText(getString(R.string.section_format,
getArguments().getInt(ARG_SECTION_NUMBER)));
return rootView;
}
}
84
/**
* A {@link FragmentPagerAdapter} that returns a fragment corresponding to
* one of the sections/tabs/pages.
*/
public class SectionsPagerAdapter extends FragmentPagerAdapter {
@Override
public int getCount() {
// Show 3 total pages.
return 2;
}
}
85
CONTACT ACTIVITY.JAVA
package mht.mlm;
import android.content.Context;
import android.content.Intent;
import android.content.SharedPreferences;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;
TextView tt;
ImageView d;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_contact);
tt=findViewById(R.id.textView7);
tt.setText(" ABC,XYZ\n Varanasi,000111\n India");
d=findViewById(R.id.gate);
d.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
SharedPreferences sharedPreferences = getSharedPreferences("L&P",
Context.MODE_PRIVATE);
86
SharedPreferences.Editor editor = sharedPreferences.edit();
editor.clear();
editor.commit();
finish();
startActivity(new Intent(ContactActivity.this,Splash.class));
}
});
}
}
87
CONTACT DETAIL.JAVA
package mht.mlm;
import android.content.Context;
import android.content.SharedPreferences;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;
import com.google.firebase.database.DataSnapshot;
import com.google.firebase.database.DatabaseError;
import com.google.firebase.database.DatabaseReference;
import com.google.firebase.database.FirebaseDatabase;
import com.google.firebase.database.ValueEventListener;
/**
* A simple {@link Fragment} subclass.
*/
public class ContactDetail extends Fragment {
public ContactDetail() {
// Required empty public constructor
}
88
TextView mob,addres,email;
String idaa;
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container,
Bundle savedInstanceState) {
// Inflate the layout for this fragment
View bd= inflater.inflate(R.layout.fragment_contact_detail, container, false);
addres=bd.findViewById(R.id.dob);
email=bd.findViewById(R.id.emid);
89
@Override
public void onCancelled(DatabaseError error) {
}
});
return bd;
}
90
DOWNLINE ACTIVITY.JAVA
package mht.mlm;
import android.content.Context;
import android.content.Intent;
import android.content.SharedPreferences;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.CardView;
import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;
import com.google.firebase.database.DataSnapshot;
import com.google.firebase.database.DatabaseError;
import com.google.firebase.database.DatabaseReference;
import com.google.firebase.database.FirebaseDatabase;
import com.google.firebase.database.ValueEventListener;
CardView t1,t2,t3;
TextView lp1,lp2,lp3;
ImageView d;
String id;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_down_line);
91
d=findViewById(R.id.gate);
d.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
SharedPreferences sharedPreferences = getSharedPreferences("L&P",
Context.MODE_PRIVATE);
SharedPreferences.Editor editor = sharedPreferences.edit();
editor.clear();
editor.commit();
finish();
startActivity(new Intent(DownLineActivity.this,Splash.class));
}
});
lp1=findViewById(R.id.l1);
lp2=findViewById(R.id.l2);
lp3=findViewById(R.id.l3);
92
String value1 = dataSnapshot.child("L11").getValue(String.class);
lp2.setText("ID:"+" "+value1);
@Override
public void onCancelled(DatabaseError error) {
// Failed to read value
}
});
t1=findViewById(R.id.p1);
t1.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
startActivity(new Intent(DownLineActivity.this,Level1.class));
}
});
t2=findViewById(R.id.p2);
93
t2.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
startActivity(new Intent(DownLineActivity.this,Level11.class));
}
});
t3=findViewById(R.id.p3);
t3.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
startActivity(new Intent(DownLineActivity.this,Level111.class));
}
});
}
}
94
FEEDBACK ACTIVITY.JAVA
package mht.mlm;
import android.content.Context;
import android.content.Intent;
import android.content.SharedPreferences;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.text.TextUtils;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import android.widget.ImageView;
import android.widget.Toast;
import com.google.firebase.database.DatabaseReference;
import com.google.firebase.database.FirebaseDatabase;
public class FeedbackActivity extends AppCompatActivity {
EditText na,su,em,mes;
Button subm,res;
String id;
ImageView d;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_feedback);
d=findViewById(R.id.gate);
d.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
SharedPreferences sharedPreferences = getSharedPreferences("L&P",
Context.MODE_PRIVATE);
95
SharedPreferences.Editor editor = sharedPreferences.edit();
editor.clear();
editor.commit();
finish();
startActivity(new Intent(FeedbackActivity.this,Splash.class));
}
});
na=findViewById(R.id.otpchk);
su=findViewById(R.id.tpchk);
em=findViewById(R.id.tphk);
mes=findViewById(R.id.suchk);
SharedPreferences sharereferencess = this.getSharedPreferences("L&P",
Context.MODE_PRIVATE);
id = sharereferencess.getString("usidno", String.valueOf(0));
subm=findViewById(R.id.button4);
subm.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
FirebaseDatabase database = FirebaseDatabase.getInstance();
DatabaseReference myRef = database.getReference("Feedback");
String nam=na.getText().toString();
String sub=su.getText().toString();
String email=em.getText().toString();
String mess=mes.getText().toString();
if (TextUtils.isEmpty(nam)) {
Toast.makeText(getApplicationContext(), "Enter Name!",
Toast.LENGTH_SHORT).show();
return;
}
if (TextUtils.isEmpty(sub)) {
Toast.makeText(getApplicationContext(), "Enter Subject!",
Toast.LENGTH_SHORT).show();
96
return;
}
if (TextUtils.isEmpty(email)) {
Toast.makeText(getApplicationContext(), "Enter Email!",
Toast.LENGTH_SHORT).show();
return;
}
if (TextUtils.isEmpty(mess)) {
Toast.makeText(getApplicationContext(), "Enter Message!",
Toast.LENGTH_SHORT).show();
return;
}
myRef.child(id).child("name").setValue(nam);
myRef.child(id).child("sub").setValue(sub);
myRef.child(id).child("email").setValue(email);
myRef.child(id).child("message").setValue(mess);
}
});
res=findViewById(R.id.button5);
res.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
na.getText().clear();
su.getText().clear();
em.getText().clear();
mes.getText().clear();
}
});
}
}
97
FILL ACTIVITY.JAVA
package mht.mlm;
import android.content.Context;
import android.content.Intent;
import android.content.SharedPreferences;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.text.TextUtils;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import android.widget.Toast;
import com.google.firebase.database.DatabaseReference;
import com.google.firebase.database.FirebaseDatabase;
EditText aa,bb,cc;
Button ot;
String idaa;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_fill);
aa=findViewById(R.id.ab);
bb=findViewById(R.id.cd);
98
cc=findViewById(R.id.ef);
ot=findViewById(R.id.submitt);
ot.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
final String bd=aa.getText().toString();
final String bn=bb.getText().toString();
final String bid=cc.getText().toString();
if (TextUtils.isEmpty(bd)) {
Toast.makeText(getApplicationContext(), "Enter Bank Name!",
Toast.LENGTH_SHORT).show();
return;
}
if (TextUtils.isEmpty(bd)) {
Toast.makeText(getApplicationContext(), "Enter Branch Name!",
Toast.LENGTH_SHORT).show();
return;
}
if (TextUtils.isEmpty(bd)) {
Toast.makeText(getApplicationContext(), "Enter A/C Number!",
Toast.LENGTH_SHORT).show();
return;
}
99
myRef.child(idaa).child("BBN").setValue(bn);
myRef.child(idaa).child("AC").setValue(bid);
startActivity(new Intent(FillActivity.this,BankDetail.class));
}
});
}
}
100
FUNDS ACTIVITY.JAVA
package mht.mlm;
import android.os.Bundle;
import android.support.design.widget.TabLayout;
import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentPagerAdapter;
import android.support.v4.view.ViewPager;
import android.support.v7.app.AppCompatActivity;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;
/**
* The {@link android.support.v4.view.PagerAdapter} that will provide
* fragments for each of the sections. We use a
* {@link FragmentPagerAdapter} derivative, which will keep every
* loaded fragment in memory. If this becomes too memory intensive, it
* may be best to switch to a
* {@link android.support.v4.app.FragmentStatePagerAdapter}.
*/
private SectionsPagerAdapter mSectionsPagerAdapter;
/**
* The {@link ViewPager} that will host the section contents.
*/
101
private ViewPager mViewPager;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_funds);
// Create the adapter that will return a fragment for each of the three
// primary sections of the activity.
mSectionsPagerAdapter = new SectionsPagerAdapter(getSupportFragmentManager());
mViewPager.addOnPageChangeListener(new
TabLayout.TabLayoutOnPageChangeListener(tabLayout));
tabLayout.addOnTabSelectedListener(new
TabLayout.ViewPagerOnTabSelectedListener(mViewPager));
/**
* A placeholder fragment containing a simple view.
*/
public static class PlaceholderFragment extends Fragment {
102
/**
* The fragment argument representing the section number for this
* fragment.
*/
private static final String ARG_SECTION_NUMBER = "section_number";
public PlaceholderFragment() {
}
/**
* Returns a new instance of this fragment for the given section
* number.
*/
public static PlaceholderFragment newInstance(int sectionNumber) {
PlaceholderFragment fragment = new PlaceholderFragment();
Bundle args = new Bundle();
args.putInt(ARG_SECTION_NUMBER, sectionNumber);
fragment.setArguments(args);
return fragment;
}
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container,
Bundle savedInstanceState) {
View rootView = inflater.inflate(R.layout.fragment_funds, container, false);
TextView textView = (TextView) rootView.findViewById(R.id.section_label);
textView.setText(getString(R.string.section_format,
getArguments().getInt(ARG_SECTION_NUMBER)));
return rootView;
}
}
/**
103
* A {@link FragmentPagerAdapter} that returns a fragment corresponding to
* one of the sections/tabs/pages.
*/
public class SectionsPagerAdapter extends FragmentPagerAdapter {
@Override
public Fragment getItem(int position) {
Fragment fragment =null;
switch (position){
case 0:
fragment=new CarFund();
break;
case 1:
fragment=new HouseFund();
break;
case 2:
fragment=new TravelFund();
}
return fragment;
}
@Override
public int getCount() {
// Show 3 total pages.
return 3;
}
}
}
104
HOME.JAVA
package mht.mlm;
import android.content.Context;
import android.content.Intent;
import android.content.SharedPreferences;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.CardView;
import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;
CardView prof,downlin,fund,bonu,notifi,contac,feedbac,vouche,poin,ne,comp,member,pur;
TextView tvv;
String id;
ImageView d;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_home);
d=findViewById(R.id.gate);
d.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
SharedPreferences sharedPreferences = getSharedPreferences("L&P",
105
Context.MODE_PRIVATE);
SharedPreferences.Editor editor = sharedPreferences.edit();
editor.clear();
editor.commit();
finish();
startActivity(new Intent(Home.this,Splash.class));
}
});
tvv=findViewById(R.id.iid);
SharedPreferences sharereferencess = this.getSharedPreferences("L&P",
Context.MODE_PRIVATE);
id = sharereferencess.getString("usidno", String.valueOf(0));
tvv.setText(id);
prof = (CardView) findViewById(R.id.card1);
downlin = (CardView) findViewById(R.id.card2);
fund = (CardView) findViewById(R.id.card3);
bonu = (CardView) findViewById(R.id.card4);
notifi = (CardView) findViewById(R.id.card5);
contac = (CardView) findViewById(R.id.card6);
feedbac = (CardView) findViewById(R.id.card7);
vouche = (CardView) findViewById(R.id.card8);
poin = (CardView) findViewById(R.id.card9);
ne = (CardView) findViewById(R.id.card10);
comp = (CardView) findViewById(R.id.card11);
member = (CardView) findViewById(R.id.card12);
pur = (CardView) findViewById(R.id.card13);
prof.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
startActivity(new Intent(Home.this,Profile.class));
106
}
});
downlin.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
startActivity(new Intent(Home.this,DownLineActivity.class));
}
});
fund.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
startActivity(new Intent(Home.this,FundsActivity.class));
}
});
bonu.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
startActivity(new Intent(Home.this,Bonus.class));
}
});
notifi.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
startActivity(new Intent(Home.this,NotificationActivity.class));
}
});
contac.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
startActivity(new Intent(Home.this,ContactActivity.class));
}
});
107
feedbac.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
startActivity(new Intent(Home.this,FeedbackActivity.class));
}
});
vouche.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
startActivity(new Intent(Home.this,VoucherActivity.class));
}
});
poin.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
startActivity(new Intent(Home.this,PointActivity.class));
}
});
ne.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
startActivity(new Intent(Home.this,NewsActivity.class));
}
});
comp.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
startActivity(new Intent(Home.this,CompanyActivity.class));
}
});
member.setOnClickListener(new View.OnClickListener() {
@Override
108
public void onClick(View v) {
startActivity(new Intent(Home.this,MemberActivity.class));
}
});
pur.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
startActivity(new Intent(Home.this,Purchase.class));
}
});
109
HOUSE FUND.JAVA
package mht.mlm;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
/**
* A simple {@link Fragment} subclass.
*/
public class HouseFund extends Fragment {
public HouseFund() {
// Required empty public constructor
}
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container,
Bundle savedInstanceState) {
// Inflate the layout for this fragment
return inflater.inflate(R.layout.fragment_house_fund, container, false);
}
110
LEVEL 1.JAVA
package mht.mlm;
import android.content.Context;
import android.content.Intent;
import android.content.SharedPreferences;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.CardView;
import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;
import com.google.firebase.database.DataSnapshot;
import com.google.firebase.database.DatabaseError;
import com.google.firebase.database.DatabaseReference;
import com.google.firebase.database.FirebaseDatabase;
import com.google.firebase.database.ValueEventListener;
CardView t1,t2,t3;
TextView lp1,lp2,lp3;
ImageView d;
String id;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
111
setContentView(R.layout.activity_level1);
]
lp1=findViewById(R.id.l1);
lp2=findViewById(R.id.l2);
lp3=findViewById(R.id.l3);
SharedPreferences sharereferencess = this.getSharedPreferences("Data1",
Context.MODE_PRIVATE);
id = sharereferencess.getString("L1", String.valueOf(0));
FirebaseDatabase database = FirebaseDatabase.getInstance();
DatabaseReference myRef = database.getReference("Downline").child(id);
myRef.addValueEventListener(new ValueEventListener() {
@Override
public void onDataChange(DataSnapshot dataSnapshot) {
// This method is called once with the initial value and again
// whenever data at this location is updated.
String value = dataSnapshot.child("L1").getValue(String.class);
lp1.setText("ID:"+" "+value);
112
@Override
public void onCancelled(DatabaseError error) {
// Failed to read value
}
});
t1=findViewById(R.id.p1);
t1.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
startActivity(new Intent(Level1.this,Level2.class));
}
});
t2=findViewById(R.id.p2);
t2.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
startActivity(new Intent(Level1.this,Level22.class));
}
});
t3=findViewById(R.id.p3);
t3.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
startActivity(new Intent(Level1.this,Level222.class));
}
});
}
}
113
LEVEL2.JAVA
package mht.mlm;
import android.content.Context;
import android.content.SharedPreferences;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.CardView;
import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;
import com.google.firebase.database.DataSnapshot;
import com.google.firebase.database.DatabaseError;
import com.google.firebase.database.DatabaseReference;
import com.google.firebase.database.FirebaseDatabase;
import com.google.firebase.database.ValueEventListener;
CardView t1,t2,t3;
TextView lp1,lp2,lp3;
ImageView d;
String id;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_level2);
lp1=findViewById(R.id.l1);
114
lp2=findViewById(R.id.l2);
lp3=findViewById(R.id.l3);
@Override
public void onCancelled(DatabaseError error) {
// Failed to read value
}
});
115
t1=findViewById(R.id.p1);
t1.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
}
});
t2=findViewById(R.id.p2);
t2.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
}
});
t3=findViewById(R.id.p3);
t3.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
}
});
}
}
116
LEVEL3.JAVA
package mht.mlm;
import android.content.Context;
import android.content.SharedPreferences;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.support.v7.widget.CardView;
import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;
import com.google.firebase.database.DataSnapshot;
import com.google.firebase.database.DatabaseError;
import com.google.firebase.database.DatabaseReference;
import com.google.firebase.database.FirebaseDatabase;
import com.google.firebase.database.ValueEventListener;
CardView t1,t2,t3;
TextView lp1,lp2,lp3;
ImageView d;
String id;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_level3);
117
lp1=findViewById(R.id.l1);
lp2=findViewById(R.id.l2);
lp3=findViewById(R.id.l3);
@Override
public void onCancelled(DatabaseError error) {
// Failed to read value
}
});
118
t1=findViewById(R.id.p1);
t1.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
}
});
t2=findViewById(R.id.p2);
t2.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
}
});
t3=findViewById(R.id.p3);
t3.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
}
});
}
}
119
LEVEL 4.JAVA
package mht.mlm;
import android.content.Context;
import android.content.SharedPreferences;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.CardView;
import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;
import com.google.firebase.database.DataSnapshot;
import com.google.firebase.database.DatabaseError;
import com.google.firebase.database.DatabaseReference;
import com.google.firebase.database.FirebaseDatabase;
import com.google.firebase.database.ValueEventListener;
CardView t1,t2,t3;
TextView lp1,lp2,lp3;
ImageView d;
String id;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_level4);
lp1=findViewById(R.id.l1);
120
lp2=findViewById(R.id.l2);
lp3=findViewById(R.id.l3);
@Override
public void onCancelled(DatabaseError error) {
// Failed to read value
}
});
121
t1=findViewById(R.id.p1);
t1.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
}
});
t2=findViewById(R.id.p2);
t2.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
}
});
t3=findViewById(R.id.p3);
t3.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
}
});
}
}
122
LEVEL11.JAVA
package mht.mlm;
import android.content.Context;
import android.content.Intent;
import android.content.SharedPreferences;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.CardView;
import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;
import com.google.firebase.database.DataSnapshot;
import com.google.firebase.database.DatabaseError;
import com.google.firebase.database.DatabaseReference;
import com.google.firebase.database.FirebaseDatabase;
import com.google.firebase.database.ValueEventListener;
CardView t1,t2,t3;
TextView lp1,lp2,lp3;
ImageView d;
String id;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_level11);
lp1=findViewById(R.id.l1);
lp2=findViewById(R.id.l2);
lp3=findViewById(R.id.l3);
@Override
public void onCancelled(DatabaseError error) {
// Failed to read value
}
});
t1=findViewById(R.id.p1);
t1.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
startActivity(new Intent(Level11.this,Level3.class));
}
});
t2=findViewById(R.id.p2);
t2.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
startActivity(new Intent(Level11.this,Level33.class));
}
});
t3=findViewById(R.id.p3);
t3.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
startActivity(new Intent(Level11.this,Level333.class));
}
});
}
}
124
LEVEL22.JAVA
package mht.mlm;
import android.content.Context;
import android.content.SharedPreferences;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.CardView;
import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;
import com.google.firebase.database.DataSnapshot;
import com.google.firebase.database.DatabaseError;
import com.google.firebase.database.DatabaseReference;
import com.google.firebase.database.FirebaseDatabase;
import com.google.firebase.database.ValueEventListener;
CardView t1,t2,t3;
TextView lp1,lp2,lp3;
ImageView d;
String id;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_level22);
lp1=findViewById(R.id.l1);
lp2=findViewById(R.id.l2);
lp3=findViewById(R.id.l3);
@Override
public void onCancelled(DatabaseError error) {
// Failed to read value
}
});
t1=findViewById(R.id.p1);
t1.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
}
});
t2=findViewById(R.id.p2);
t2.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
}
});
t3=findViewById(R.id.p3);
t3.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
}
});
}
}
126
LEVEL33.JAVA
package mht.mlm;
import android.content.Context;
import android.content.SharedPreferences;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.support.v7.widget.CardView;
import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;
import com.google.firebase.database.DataSnapshot;
import com.google.firebase.database.DatabaseError;
import com.google.firebase.database.DatabaseReference;
import com.google.firebase.database.FirebaseDatabase;
import com.google.firebase.database.ValueEventListener;
CardView t1,t2,t3;
TextView lp1,lp2,lp3;
ImageView d;
String id;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_level33);
lp1=findViewById(R.id.l1);
lp2=findViewById(R.id.l2);
lp3=findViewById(R.id.l3);
@Override
public void onCancelled(DatabaseError error) {
// Failed to read value
}
});
t1=findViewById(R.id.p1);
t1.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
}
});
t2=findViewById(R.id.p2);
t2.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
}
});
t3=findViewById(R.id.p3);
t3.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
}
});
}
}
128
LEVEL44.JAVA
package mht.mlm;
import android.content.Context;
import android.content.SharedPreferences;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.CardView;
import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;
import com.google.firebase.database.DataSnapshot;
import com.google.firebase.database.DatabaseError;
import com.google.firebase.database.DatabaseReference;
import com.google.firebase.database.FirebaseDatabase;
import com.google.firebase.database.ValueEventListener;
CardView t1,t2,t3;
TextView lp1,lp2,lp3;
ImageView d;
String id;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_level44);
lp1=findViewById(R.id.l1);
lp2=findViewById(R.id.l2);
lp3=findViewById(R.id.l3);
@Override
public void onCancelled(DatabaseError error) {
// Failed to read value
}
});
t1=findViewById(R.id.p1);
t1.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
}
});
t2=findViewById(R.id.p2);
t2.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
}
});
t3=findViewById(R.id.p3);
t3.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
}
});
}
}
130
LEVEL111.JAVA
package mht.mlm;
import android.content.Context;
import android.content.Intent;
import android.content.SharedPreferences;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.CardView;
import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;
import com.google.firebase.database.DataSnapshot;
import com.google.firebase.database.DatabaseError;
import com.google.firebase.database.DatabaseReference;
import com.google.firebase.database.FirebaseDatabase;
import com.google.firebase.database.ValueEventListener;
public class Level111 extends AppCompatActivity {
CardView t1,t2,t3;
TextView lp1,lp2,lp3;
ImageView d;
String id;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_level111);
lp1=findViewById(R.id.l1);
lp2=findViewById(R.id.l2);
lp3=findViewById(R.id.l3);
@Override
public void onCancelled(DatabaseError error) {
// Failed to read value
}
});
t1=findViewById(R.id.p1);
t1.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
startActivity(new Intent(Level111.this,Level4.class));
}
});
t2=findViewById(R.id.p2);
t2.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
startActivity(new Intent(Level111.this,Level44.class));
}
});
t3=findViewById(R.id.p3);
t3.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
startActivity(new Intent(Level111.this,Level444.class));
}
});
}
}
132
LEVEL222.JAVA
package mht.mlm;
import android.content.Context;
import android.content.SharedPreferences;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.CardView;
import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;
import com.google.firebase.database.DataSnapshot;
import com.google.firebase.database.DatabaseError;
import com.google.firebase.database.DatabaseReference;
import com.google.firebase.database.FirebaseDatabase;
import com.google.firebase.database.ValueEventListener;
CardView t1,t2,t3;
TextView lp1,lp2,lp3;
ImageView d;
String id;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_level222);
lp1=findViewById(R.id.l1);
lp2=findViewById(R.id.l2);
lp3=findViewById(R.id.l3);
@Override
public void onCancelled(DatabaseError error) {
// Failed to read value
}
});
t1=findViewById(R.id.p1);
t1.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
}
});
t2=findViewById(R.id.p2);
t2.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
}
});
t3=findViewById(R.id.p3);
t3.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
}
});
}
}
134
LEVEL333.JAVA
package mht.mlm;
import android.content.Context;
import android.content.SharedPreferences;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.support.v7.widget.CardView;
import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;
import com.google.firebase.database.DataSnapshot;
import com.google.firebase.database.DatabaseError;
import com.google.firebase.database.DatabaseReference;
import com.google.firebase.database.FirebaseDatabase;
import com.google.firebase.database.ValueEventListener;
CardView t1,t2,t3;
TextView lp1,lp2,lp3;
ImageView d;
String id;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_level333);
lp1=findViewById(R.id.l1);
lp2=findViewById(R.id.l2);
lp3=findViewById(R.id.l3);
@Override
public void onCancelled(DatabaseError error) {
// Failed to read value
}
});
t1=findViewById(R.id.p1);
t1.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
}
});
t2=findViewById(R.id.p2);
t2.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
}
});
t3=findViewById(R.id.p3);
t3.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
}
});
}
}
136
LEVEL444.JAVA
package mht.mlm;
import android.content.Context;
import android.content.SharedPreferences;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.CardView;
import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;
import com.google.firebase.database.DataSnapshot;
import com.google.firebase.database.DatabaseError;
import com.google.firebase.database.DatabaseReference;
import com.google.firebase.database.FirebaseDatabase;
import com.google.firebase.database.ValueEventListener;
CardView t1,t2,t3;
TextView lp1,lp2,lp3;
ImageView d;
String id;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_level444);
lp1=findViewById(R.id.l1);
lp2=findViewById(R.id.l2);
lp3=findViewById(R.id.l3);
@Override
public void onCancelled(DatabaseError error) {
// Failed to read value
}
});
t1=findViewById(R.id.p1);
t1.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
}
});
t2=findViewById(R.id.p2);
t2.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
}
});
t3=findViewById(R.id.p3);
t3.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
}
});
}
}
138
VOUCHER_ACTIVITY.JAVA
package mht.mlm;
import android.content.Context;
import android.content.Intent;
import android.content.SharedPreferences;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.widget.ImageView;
import com.cooltechworks.views.ScratchTextView;
ScratchTextView scratchTextView;
ImageView d;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_voucher);
d=findViewById(R.id.gate);
d.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
SharedPreferences sharedPreferences = getSharedPreferences("L&P",
Context.MODE_PRIVATE);
SharedPreferences.Editor editor = sharedPreferences.edit();
editor.clear();
editor.commit();
finish();
startActivity(new Intent(VoucherActivity.this,Splash.class));
}
});
scratchTextView = findViewById(R.id.text);
}
});
}
}
139
ACTIVITY_LOGIN.XML
<TextView
android:id="@+id/textView"
android:layout_width="119dp"
android:layout_height="40dp"
android:layout_above="@+id/teip"
android:layout_alignStart="@+id/teip"
android:text="Login"
android:textColor="#0a0909"
android:textSize="25dp"
android:textStyle="bold" />
android:id="@+id/teip"
android:layout_width="341dp"
android:layout_height="65dp"
android:layout_above="@+id/teip1"
android:layout_centerHorizontal="true"
android:background="#66fcfcff">
<EditText
android:id="@+id/usrid"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="10dp"
android:hint="User id"
android:textSize="20dp" />
</android.support.design.widget.TextInputLayout>
<android.support.design.widget.TextInputLayout
android:id="@+id/teip1"
android:layout_width="341dp"
android:layout_height="65dp"
android:layout_alignParentBottom="true"
android:layout_centerHorizontal="true"
android:layout_marginBottom="164dp"
android:background="#66fcfcff">
<EditText
android:id="@+id/pass"
140
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="10dp"
android:hint="password"
android:textSize="20dp" />
</android.support.design.widget.TextInputLayout>
<Button
android:id="@+id/loogin"
android:layout_width="250dp"
android:layout_height="40dp"
android:layout_alignParentBottom="true"
android:layout_centerHorizontal="true"
android:layout_marginBottom="113dp"
android:background="#00f"
android:text="Login"
android:textColor="#eeeef2"
android:textSize="25dp"
android:textStyle="bold"
android:typeface="monospace" />
<ImageView
android:id="@+id/imageView"
android:layout_width="149dp"
android:layout_height="137dp"
android:layout_alignParentTop="true"
android:layout_centerHorizontal="true"
android:layout_marginTop="42dp"
app:srcCompat="@mipmap/ic_launcher" />
</RelativeLayout>
141
ACTIVITY_HOME.XML
<?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=".Home">
<android.support.v7.widget.CardView
android:id="@+id/tit"
android:layout_width="match_parent"
android:layout_height="50dp">
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="match_parent">
<TextView
android:id="@+id/iid"
android:layout_marginTop="5dp"
android:layout_marginBottom="5dp"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_alignParentTop="true"
android:layout_toStartOf="@+id/gate"
android:text="textview"
android:textAlignment="center"
android:textSize="25dp" />
<ImageView
android:id="@+id/gate"
android:layout_width="40dp"
android:layout_marginRight="10dp"
android:layout_height="match_parent"
android:layout_alignParentEnd="true"
android:layout_alignParentTop="true"
android:src="@drawable/ic_exit_to_app_black_24dp" />
<TextView
android:layout_marginLeft="10dp"
android:textAlignment="center"
android:textSize="30dp"
android:text="Home"
android:layout_width="wrap_content"
android:layout_height="match_parent" />
</RelativeLayout>
</android.support.v7.widget.CardView>
142
<ScrollView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_below="@+id/tit"
android:layout_centerHorizontal="true">
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical" >
<LinearLayout
android:id="@+id/la1"
android:orientation="horizontal"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<android.support.v7.widget.CardView
android:id="@+id/card1"
android:layout_marginTop="20dp"
android:layout_marginLeft="25dp"
android:layout_width="90dp"
app:cardCornerRadius="5dp"
android:layout_height="90dp">
<RelativeLayout
android:background="#efefef"
android:layout_width="match_parent"
android:layout_height="match_parent">
<android.support.v7.widget.AppCompatImageView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_alignParentStart="true"
android:layout_alignParentTop="true"
android:src="@drawable/profile" />
<TextView
android:textAlignment="center"
android:textStyle="bold"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:layout_alignParentStart="true"
android:text="Profile" />
</RelativeLayout>
</android.support.v7.widget.CardView>
<android.support.v7.widget.CardView
android:id="@+id/card2"
android:layout_marginTop="20dp"
android:layout_marginLeft="20dp"
143
android:layout_width="90dp"
app:cardCornerRadius="5dp"
android:layout_height="90dp">
<RelativeLayout
android:background="#efefef"
android:layout_width="match_parent"
android:layout_height="match_parent">
<android.support.v7.widget.AppCompatImageView
android:layout_width="match_parent"
android:src="@drawable/network"
android:layout_marginBottom="15dp"
android:layout_height="match_parent" />
<TextView
android:textAlignment="center"
android:textStyle="bold"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:layout_alignParentStart="true"
android:text="Downline" />
</RelativeLayout>
</android.support.v7.widget.CardView>
<android.support.v7.widget.CardView
android:id="@+id/card3"
android:layout_marginTop="20dp"
android:layout_marginLeft="20dp"
android:layout_width="90dp"
app:cardCornerRadius="5dp"
android:layout_height="90dp">
<RelativeLayout
android:background="#efefef"
android:layout_width="match_parent"
android:layout_height="match_parent">
<android.support.v7.widget.AppCompatImageView
android:layout_width="match_parent"
android:src="@drawable/fund"
android:layout_marginBottom="15dp"
android:layout_height="match_parent" />
<TextView
android:textAlignment="center"
android:textStyle="bold"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:layout_alignParentStart="true"
android:text="Funds" />
144
</RelativeLayout>
</android.support.v7.widget.CardView>
</LinearLayout>
<LinearLayout
android:id="@+id/la2"
android:layout_below="@+id/la1"
android:orientation="horizontal"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<android.support.v7.widget.CardView
android:id="@+id/card4"
android:layout_marginTop="15dp"
android:layout_marginLeft="25dp"
android:layout_width="90dp"
app:cardCornerRadius="5dp"
android:layout_height="90dp">
<RelativeLayout
android:background="#efefef"
android:layout_width="match_parent"
android:layout_height="match_parent">
<android.support.v7.widget.AppCompatImageView
android:layout_width="match_parent"
android:src="@drawable/bonus"
android:layout_marginBottom="20dp"
android:layout_height="match_parent" />
<TextView
android:textAlignment="center"
android:textStyle="bold"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:layout_alignParentStart="true"
android:text="Bonus" />
</RelativeLayout>
</android.support.v7.widget.CardView>
<android.support.v7.widget.CardView
android:id="@+id/card5"
android:layout_marginTop="15dp"
android:layout_marginLeft="20dp"
android:layout_width="90dp"
app:cardCornerRadius="5dp"
android:layout_height="90dp">
<RelativeLayout
android:background="#efefef"
android:layout_width="match_parent"
android:layout_height="match_parent">
<android.support.v7.widget.AppCompatImageView
145
android:layout_width="match_parent"
android:src="@drawable/notification"
android:layout_marginBottom="20dp"
android:layout_height="match_parent" />
<TextView
android:textAlignment="center"
android:textStyle="bold"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:layout_alignParentStart="true"
android:text="Notification" />
</RelativeLayout>
</android.support.v7.widget.CardView>
<android.support.v7.widget.CardView
android:id="@+id/card6"
android:layout_marginTop="15dp"
android:layout_marginLeft="20dp"
android:layout_width="90dp"
app:cardCornerRadius="5dp"
android:layout_height="90dp">
<RelativeLayout
android:background="#efefef"
android:layout_width="match_parent"
android:layout_height="match_parent">
<android.support.v7.widget.AppCompatImageView
android:layout_width="match_parent"
android:src="@drawable/contact"
android:layout_marginBottom="20dp"
android:layout_height="match_parent" />
<TextView
android:textAlignment="center"
android:textStyle="bold"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:layout_alignParentStart="true"
android:text="Contact" />
</RelativeLayout>
</android.support.v7.widget.CardView>
</LinearLayout>
<LinearLayout
android:id="@+id/la3"
android:layout_width="match_parent"
android:layout_height="wrap_content"
146
android:layout_below="@+id/la2"
android:orientation="horizontal">
<android.support.v7.widget.CardView
android:id="@+id/card7"
android:layout_width="90dp"
android:layout_height="90dp"
android:layout_marginLeft="25dp"
android:layout_marginTop="15dp"
app:cardCornerRadius="5dp">
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="#efefef">
<android.support.v7.widget.AppCompatImageView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_marginBottom="20dp"
android:src="@drawable/feedback" />
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:layout_alignParentStart="true"
android:text="Feedback"
android:textAlignment="center"
android:textStyle="bold" />
</RelativeLayout>
</android.support.v7.widget.CardView>
<android.support.v7.widget.CardView
android:id="@+id/card8"
android:layout_width="90dp"
android:layout_height="90dp"
android:layout_marginLeft="20dp"
android:layout_marginTop="15dp"
app:cardCornerRadius="5dp">
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="#efefef">
<android.support.v7.widget.AppCompatImageView
android:layout_width="match_parent"
147
android:layout_height="match_parent"
android:layout_marginBottom="20dp"
android:src="@drawable/gift" />
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:layout_alignParentStart="true"
android:text="Voucher"
android:textAlignment="center"
android:textStyle="bold" />
</RelativeLayout>
</android.support.v7.widget.CardView>
<android.support.v7.widget.CardView
android:id="@+id/card9"
android:layout_width="90dp"
android:layout_height="90dp"
android:layout_marginLeft="20dp"
android:layout_marginTop="15dp"
app:cardCornerRadius="5dp">
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="#efefef">
<android.support.v7.widget.AppCompatImageView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_marginBottom="20dp"
android:src="@drawable/points" />
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:layout_alignParentStart="true"
android:text="Point"
android:textAlignment="center"
android:textStyle="bold" />
</RelativeLayout>
</android.support.v7.widget.CardView>
</LinearLayout>
<LinearLayout
android:id="@+id/la4"
android:layout_below="@+id/la3"
148
android:orientation="horizontal"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<android.support.v7.widget.CardView
android:id="@+id/card10"
android:layout_marginTop="15dp"
android:layout_marginLeft="25dp"
android:layout_width="90dp"
app:cardCornerRadius="5dp"
android:layout_height="90dp">
<RelativeLayout
android:background="#efefef"
android:layout_width="match_parent"
android:layout_height="match_parent">
<android.support.v7.widget.AppCompatImageView
android:layout_width="match_parent"
android:src="@drawable/news"
android:layout_marginBottom="20dp"
android:layout_height="match_parent" />
<TextView
android:textAlignment="center"
android:textStyle="bold"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:layout_alignParentStart="true"
android:text="News" />
</RelativeLayout>
</android.support.v7.widget.CardView>
<android.support.v7.widget.CardView
android:id="@+id/card11"
android:layout_marginTop="15dp"
android:layout_marginLeft="20dp"
android:layout_width="90dp"
app:cardCornerRadius="5dp"
android:layout_height="90dp">
<RelativeLayout
android:background="#efefef"
android:layout_width="match_parent"
android:layout_height="match_parent">
<android.support.v7.widget.AppCompatImageView
android:layout_width="match_parent"
android:src="@drawable/logo"
android:layout_marginBottom="20dp"
android:layout_height="match_parent" />
<TextView
149
android:textAlignment="center"
android:textStyle="bold"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:layout_alignParentStart="true"
android:text="Company" />
</RelativeLayout>
</android.support.v7.widget.CardView>
<android.support.v7.widget.CardView
android:id="@+id/card12"
android:layout_marginTop="15dp"
android:layout_marginLeft="20dp"
android:layout_width="90dp"
app:cardCornerRadius="5dp"
android:layout_height="90dp">
<RelativeLayout
android:background="#efefef"
android:layout_width="match_parent"
android:layout_height="match_parent">
<android.support.v7.widget.AppCompatImageView
android:layout_width="match_parent"
android:src="@drawable/person"
android:layout_marginBottom="20dp"
android:layout_height="match_parent" />
<TextView
android:textAlignment="center"
android:textStyle="bold"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:layout_alignParentStart="true"
android:text="Add member" />
</RelativeLayout>
</android.support.v7.widget.CardView>
</LinearLayout>
<LinearLayout
android:id="@+id/la5"
android:layout_below="@+id/la4"
android:orientation="horizontal"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<android.support.v7.widget.CardView
android:id="@+id/card13"
android:layout_marginTop="15dp"
android:layout_marginLeft="25dp"
android:layout_width="90dp"
150
app:cardCornerRadius="5dp"
android:layout_height="90dp">
<RelativeLayout
android:background="#efefef"
android:layout_width="match_parent"
android:layout_height="match_parent">
<android.support.v7.widget.AppCompatImageView
android:layout_width="match_parent"
android:src="@drawable/purchase"
android:layout_marginBottom="20dp"
android:layout_height="match_parent" />
<TextView
android:textAlignment="center"
android:textStyle="bold"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:layout_alignParentStart="true"
android:text="Purchase" />
</RelativeLayout>
</android.support.v7.widget.CardView>
</LinearLayout>
</RelativeLayout>
</ScrollView>
</RelativeLayout>
151
ACTIVITY_VOUCHER.XML
<android.support.v7.widget.CardView
android:id="@+id/tit"
android:layout_width="match_parent"
android:layout_height="50dp">
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="match_parent">
<ImageView
android:id="@+id/gate"
android:layout_width="40dp"
android:layout_marginRight="10dp"
android:layout_height="match_parent"
android:layout_alignParentEnd="true"
android:layout_alignParentTop="true"
android:src="@drawable/ic_exit_to_app_black_24dp" />
<TextView
android:layout_marginLeft="10dp"
android:textAlignment="center"
android:textSize="30dp"
android:text="Voucher"
android:layout_width="wrap_content"
android:layout_height="match_parent" />
</RelativeLayout>
</android.support.v7.widget.CardView>
<android.support.v7.widget.CardView
android:layout_width="349dp"
android:layout_height="117dp"
android:layout_alignParentStart="true"
android:layout_alignParentTop="true"
android:layout_marginStart="18dp"
android:layout_marginTop="110dp">
<RelativeLayout
android:layout_width="match_parent"
152
android:layout_height="match_parent">
<com.cooltechworks.views.ScratchTextView
android:id="@+id/text"
android:textSize="25dp"
android:text="MHT"
android:textAlignment="center"
android:textStyle="bold"
android:layout_width="match_parent"
android:layout_height="match_parent" />
</RelativeLayout>
</android.support.v7.widget.CardView>
</RelativeLayout>
153
ACTIVITY_LEVEL1.XML
<android.support.v7.widget.CardView
android:id="@+id/p1"
android:layout_marginTop="50dp"
android:layout_width="match_parent"
android:layout_height="100dp">
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="match_parent">
<TextView
android:id="@+id/l1"
android:layout_width="match_parent"
android:layout_height="match_parent" />
</RelativeLayout>
</android.support.v7.widget.CardView>
<android.support.v7.widget.CardView
android:id="@+id/p2"
android:layout_marginTop="20dp"
android:layout_below="@+id/p1"
android:layout_width="match_parent"
android:layout_height="100dp">
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="match_parent">
<TextView
android:id="@+id/l2"
android:layout_width="match_parent"
android:layout_height="match_parent" />
</RelativeLayout>
</android.support.v7.widget.CardView>
<android.support.v7.widget.CardView
android:id="@+id/p3"
android:layout_marginTop="20dp"
android:layout_below="@+id/p2"
android:layout_width="match_parent"
android:layout_height="100dp">
<RelativeLayout
android:layout_width="match_parent"
154
android:layout_height="match_parent">
<TextView
android:id="@+id/l3"
android:layout_width="match_parent"
android:layout_height="match_parent" />
</RelativeLayout>
</android.support.v7.widget.CardView>
</RelativeLayout>
155
ACTIVITY_SPLASH.XML
<ImageView
android:layout_width="240dp"
android:layout_height="240dp"
android:layout_alignParentTop="true"
android:layout_centerHorizontal="true"
android:layout_marginTop="105dp"
android:background="@drawable/logo" />
<ProgressBar
android:id="@+id/progressBar"
style="?android:attr/progressBarStyle"
android:layout_width="77dp"
android:layout_height="61dp"
android:layout_alignParentBottom="true"
android:layout_centerHorizontal="true"
android:layout_marginBottom="94dp" />
</RelativeLayout>
156
ACTIVITY_PURCHASE.XML
<android.support.v7.widget.CardView
android:id="@+id/tit"
android:layout_width="match_parent"
android:layout_height="50dp">
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="match_parent">
<ImageView
android:id="@+id/gate"
android:layout_width="40dp"
android:layout_marginRight="10dp"
android:layout_height="match_parent"
android:layout_alignParentEnd="true"
android:layout_alignParentTop="true"
android:src="@drawable/ic_exit_to_app_black_24dp" />
<TextView
android:layout_marginLeft="10dp"
android:textAlignment="center"
android:textSize="30dp"
android:text="Purchase"
android:layout_width="wrap_content"
android:layout_height="match_parent" />
</RelativeLayout>
</android.support.v7.widget.CardView>
<android.support.v7.widget.CardView
android:id="@+id/item1"
android:layout_marginTop="10dp"
157
android:layout_below="@+id/tit"
android:layout_marginRight="5dp"
android:layout_marginLeft="5dp"
app:cardCornerRadius="5dp"
android:layout_width="match_parent"
android:layout_height="220dp">
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="match_parent">
<ImageView
android:layout_width="150dp"
android:layout_height="150dp"
android:background="@drawable/shec"/>
<TextView
android:id="@+id/til"
android:textSize="20dp"
android:textStyle="bold"
android:textColor="#020202"
android:text="Shepa College"
android:layout_marginLeft="152dp"
android:layout_width="match_parent"
android:layout_height="wrap_content" />
<TextView
android:layout_marginTop="5dp"
android:layout_below="@+id/til"
android:textSize="20dp"
android:text="Price : Rs 51"
android:layout_marginLeft="152dp"
android:layout_width="match_parent"
android:layout_height="match_parent" />
</RelativeLayout>
</android.support.v7.widget.CardView>
<android.support.v7.widget.CardView
android:id="@+id/itemd2"
app:cardCornerRadius="5dp"
android:layout_marginTop="10dp"
android:layout_marginLeft="5dp"
android:layout_marginRight="5dp"
android:layout_below="@+id/item1"
android:layout_width="match_parent"
android:layout_height="220dp">
<RelativeLayout
158
android:layout_width="match_parent"
android:layout_height="match_parent">
<ImageView
android:layout_width="150dp"
android:layout_height="150dp"
android:background="@drawable/hostf"/>
<TextView
android:id="@+id/til1"
android:textSize="20dp"
android:textStyle="bold"
android:textColor="#020202"
android:text="Shepa Boys Hostel"
android:layout_marginLeft="152dp"
android:layout_width="match_parent"
android:layout_height="wrap_content" />
<TextView
android:layout_marginTop="5dp"
android:textSize="20dp"
android:text="Price : Rs 21"
android:layout_below="@+id/til1"
android:layout_marginLeft="152dp"
android:layout_width="match_parent"
android:layout_height="match_parent" />
</RelativeLayout>
</android.support.v7.widget.CardView>
</RelativeLayout>
159
ACTIVITY_FEEDBACK.XML
<ImageView
android:id="@+id/gate"
android:layout_width="40dp"
android:layout_marginRight="10dp"
android:layout_height="match_parent"
android:layout_alignParentEnd="true"
android:layout_alignParentTop="true"
android:src="@drawable/ic_exit_to_app_black_24dp" />
<TextView
android:layout_marginLeft="10dp"
android:textAlignment="center"
android:textSize="30dp"
android:text="Feedback"
android:layout_width="wrap_content"
android:layout_height="match_parent" />
</RelativeLayout>
</android.support.v7.widget.CardView>
<android.support.design.widget.TextInputLayout
android:id="@+id/teip"
android:layout_width="258dp"
android:layout_height="65dp"
android:layout_alignParentEnd="true"
160
android:layout_alignParentTop="true"
android:layout_marginEnd="11dp"
android:layout_marginTop="82dp"
android:background="#66fcfcff">
<EditText
android:id="@+id/otpchk"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="10dp"
android:textSize="20dp" />
</android.support.design.widget.TextInputLayout>
<TextView
android:id="@+id/textView9"
android:layout_width="95dp"
android:layout_height="41dp"
android:layout_alignBottom="@+id/teip"
android:layout_alignParentStart="true"
android:layout_marginStart="12dp"
android:text="Name :"
android:textSize="18dp" />
<android.support.design.widget.TextInputLayout
android:id="@+id/tip"
android:layout_width="258dp"
android:layout_height="65dp"
android:layout_alignParentTop="true"
android:layout_alignStart="@+id/teip"
android:layout_marginTop="161dp"
android:background="#66fcfcff">
<EditText
android:id="@+id/tpchk"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="10dp"
android:textSize="20dp" />
</android.support.design.widget.TextInputLayout>
<TextView
161
android:id="@+id/textView10"
android:layout_width="95dp"
android:layout_height="41dp"
android:layout_alignBottom="@+id/tip"
android:layout_alignStart="@+id/textView9"
android:text="Subject :"
android:textSize="18dp" />
<android.support.design.widget.TextInputLayout
android:id="@+id/eip"
android:layout_width="258dp"
android:layout_height="65dp"
android:layout_alignParentTop="true"
android:layout_alignStart="@+id/teip"
android:layout_marginTop="240dp"
android:background="#66fcfcff">
<EditText
android:id="@+id/tphk"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="10dp"
android:textSize="20dp" />
</android.support.design.widget.TextInputLayout>
<TextView
android:id="@+id/textView11"
android:layout_width="95dp"
android:layout_height="41dp"
android:layout_alignStart="@+id/textView9"
android:layout_centerVertical="true"
android:text="Email :"
android:textSize="18dp" />
<android.support.design.widget.TextInputLayout
android:id="@+id/sbip"
android:layout_width="258dp"
android:layout_height="110dp"
android:layout_alignParentBottom="true"
android:layout_alignStart="@+id/teip"
android:layout_marginBottom="141dp"
162
android:background="#66fcfcff">
<EditText
android:id="@+id/suchk"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_marginBottom="10dp"
android:textSize="20dp" />
</android.support.design.widget.TextInputLayout>
<TextView
android:id="@+id/textView12"
android:layout_width="95dp"
android:layout_height="41dp"
android:layout_alignParentBottom="true"
android:layout_alignStart="@+id/textView9"
android:layout_marginBottom="174dp"
android:text="Message :"
android:textSize="18dp" />
<Button
android:id="@+id/button4"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:layout_alignStart="@+id/teip"
android:layout_marginBottom="64dp"
android:background="#00ff2f"
android:textColor="#ffffff"
android:text="Submit" />
<Button
android:background="#424342"
android:textColor="#ffffff"
android:id="@+id/button5"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentEnd="true"
android:layout_alignTop="@+id/button4"
android:layout_marginEnd="74dp"
android:text="Reset" />
</RelativeLayout>
163
ACTIVITY_MEMBER.XML
<android.support.v7.widget.CardView
android:id="@+id/tit"
android:layout_width="match_parent"
android:layout_height="50dp">
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="match_parent">
<ImageView
android:id="@+id/gate"
android:layout_width="40dp"
android:layout_marginRight="10dp"
android:layout_height="match_parent"
android:layout_alignParentEnd="true"
android:layout_alignParentTop="true"
android:src="@drawable/ic_exit_to_app_black_24dp" />
<TextView
android:layout_marginLeft="10dp"
android:textAlignment="center"
android:textSize="30dp"
android:text="Member"
android:layout_width="wrap_content"
android:layout_height="match_parent" />
</RelativeLayout>
</android.support.v7.widget.CardView>
<ScrollView
android:layout_marginBottom="50dp"
android:layout_marginTop="50dp"
164
android:layout_width="match_parent"
android:layout_height="match_parent">
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="match_parent">
<EditText
android:id="@+id/textView2"
android:layout_width="212dp"
android:layout_height="40dp"
android:layout_alignParentStart="true"
android:layout_alignParentTop="true"
android:layout_marginStart="22dp"
android:layout_marginTop="30dp"
android:hint="Upline Id*" />
<Button
android:background="#00ff2f"
android:id="@+id/button"
android:textColor="#eeeef2"
android:textSize="15dp"
android:textStyle="bold"
android:typeface="monospace"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentEnd="true"
android:layout_alignParentTop="true"
android:layout_marginEnd="22dp"
android:layout_marginTop="20dp"
android:text="VALIDATE" />
<EditText
android:id="@+id/textView3"
android:layout_width="340dp"
android:layout_height="40dp"
android:layout_alignParentTop="true"
android:layout_centerHorizontal="true"
android:layout_marginTop="109dp"
android:hint="First Name*" />
<EditText
android:id="@+id/textView4"
165
android:layout_width="340dp"
android:layout_height="40dp"
android:layout_below="@+id/textView3"
android:layout_centerHorizontal="true"
android:hint="Last Name" />
<EditText
android:id="@+id/textView5"
android:layout_width="340dp"
android:layout_height="40dp"
android:layout_below="@+id/textView4"
android:layout_centerHorizontal="true"
android:hint="DOB*(DD/MM/YYYY)" />
<EditText
android:id="@+id/textView10"
android:layout_width="340dp"
android:layout_height="40dp"
android:layout_below="@+id/textView5"
android:layout_centerHorizontal="true"
android:hint="Email ID" />
<EditText
android:id="@+id/textView11"
android:layout_width="340dp"
android:layout_height="40dp"
android:layout_below="@+id/textView10"
android:layout_centerHorizontal="true"
android:hint="Address*" />
<EditText
android:id="@+id/textView12"
android:layout_width="340dp"
android:layout_height="40dp"
android:layout_below="@+id/textView11"
android:layout_centerHorizontal="true"
166
android:hint="Password*" />
</RelativeLayout>
</ScrollView>
<Button
android:id="@+id/button2"
android:layout_width="100dp"
android:layout_height="37dp"
android:layout_alignParentBottom="true"
android:layout_alignParentEnd="true"
android:background="#00ff2f"
android:text="Next"
android:textColor="#eeeef2"
android:textSize="20dp"
android:textStyle="bold"
android:typeface="monospace" />
</RelativeLayout>
167
ACTIVITY_FILL.XML
<EditText
android:id="@+id/ab"
android:hint="Enter Bank Name"
android:layout_marginTop="15dp"
android:layout_marginLeft="10dp"
android:layout_marginRight="10dp"
android:layout_width="match_parent"
android:layout_height="45dp"
/>
<EditText
android:id="@+id/cd"
android:hint="Enter Branch Name"
android:layout_width="match_parent"
android:layout_height="45dp"
android:layout_marginLeft="10dp"
android:layout_marginRight="10dp"
android:layout_alignParentStart="true"
android:layout_alignParentTop="true"
android:layout_marginTop="90dp" />
<EditText
android:id="@+id/ef"
android:hint="Enter A/C Number"
android:layout_marginLeft="10dp"
android:layout_marginRight="10dp"
android:layout_width="match_parent"
android:layout_height="45dp"
android:layout_alignParentStart="true"
android:layout_alignParentTop="true"
168
android:layout_marginTop="161dp" />
<Button
android:id="@+id/submitt"
android:layout_width="250dp"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:layout_centerHorizontal="true"
android:layout_marginBottom="38dp"
android:textColor="#f1f1f4"
android:textSize="25dp"
android:background="#5aff3d"
android:text="Submit" />
</RelativeLayout>
169
ACTIVITY_PROFILE.XML
<android.support.v7.widget.CardView
android:id="@+id/tit"
android:layout_width="match_parent"
android:layout_height="50dp">
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="match_parent">
<TextView
android:layout_marginLeft="10dp"
android:textAlignment="center"
android:textSize="30dp"
android:text="Profile"
android:layout_width="wrap_content"
android:layout_height="match_parent" />
</RelativeLayout>
</android.support.v7.widget.CardView>
<android.support.design.widget.TabLayout
android:id="@+id/tabs"
android:layout_marginTop="50dp"
android:background="#1f1f21"
app:tabTextColor="#fdfdfd"
app:tabIndicatorColor="#5b5bff"
app:tabIndicatorHeight="5dp"
app:tabSelectedTextColor="#fafafa"
android:layout_width="match_parent"
170
android:layout_height="wrap_content">
<android.support.design.widget.TabItem
android:id="@+id/tabItem"
android:icon="@drawable/ic_person_black_24dp"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Personal Details" />
<android.support.design.widget.TabItem
android:id="@+id/tabItem2"
android:icon="@drawable/ic_account_box_black_24dp"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Contact Details" />
<android.support.design.widget.TabItem
android:id="@+id/tabItem3"
android:icon="@drawable/ic_perm_contact_calendar_black_24dp"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Bank Details" />
</android.support.design.widget.TabLayout>
<android.support.v4.view.ViewPager
android:id="@+id/container"
android:layout_marginTop="130dp"
android:layout_width="match_parent"
android:layout_height="match_parent"
app:layout_behavior="@string/appbar_scrolling_view_behavior" />
</android.support.design.widget.CoordinatorLayout>
171
ACTIVITY_FUNDS.XML
<android.support.v7.widget.CardView
android:id="@+id/tit"
android:layout_width="match_parent"
android:layout_height="50dp">
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="match_parent">
<TextView
android:layout_marginLeft="10dp"
android:textAlignment="center"
android:textSize="30dp"
android:text="Profile"
android:layout_width="wrap_content"
android:layout_height="match_parent" />
</RelativeLayout>
</android.support.v7.widget.CardView>
<android.support.design.widget.TabLayout
android:id="@+id/tabs"
android:layout_marginTop="50dp"
android:background="#1f1f21"
app:tabTextColor="#fdfdfd"
app:tabIndicatorColor="#5b5bff"
app:tabIndicatorHeight="5dp"
app:tabSelectedTextColor="#fafafa"
172
android:layout_width="match_parent"
android:layout_height="wrap_content">
<android.support.design.widget.TabItem
android:id="@+id/tabItem"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Car Fund" />
<android.support.design.widget.TabItem
android:id="@+id/tabItem2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="House Fund" />
<android.support.design.widget.TabItem
android:id="@+id/tabItem3"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Travel Fund" />
</android.support.design.widget.TabLayout>
<android.support.v4.view.ViewPager
android:id="@+id/container"
android:layout_marginTop="100dp"
android:layout_width="match_parent"
android:layout_height="match_parent"
app:layout_behavior="@string/appbar_scrolling_view_behavior" />
</android.support.design.widget.CoordinatorLayout>
173
FUTURE SCOPE OF THE PROJECT
Distributers profiles:
Automatically generated business points:
Application Management :
Sending feedback :
Veryfying New distributer using OTP:
Getting Vouchers:
Getting Bonus details:
Improve the marketing strategy:
Easy for online shoping:
Getting connected with the supplier:
174
CONCLUSION
175
CONCLUSION
After this much analysis we can say that this application is not an ordinary but it will help both, a
Distributer as well as the Supplier to manage and work properly that will helpful for the
Marketing Business.
176
REFERENCES
177
REFERENCES
WWW.TUTORIALSPOINT.COM
WWW.ANDROIDDEVELOPERS.COM
WWW.JAVATPOINT.COM
178
CURRICULUM
VITAE
179
CURRICULUM VITAE
Neetesh Kumar Singh
Add: 1015/b2, Naibasti, alinagar
Pin code: 232101
Mobile No.: - 7651897693
Email ID: nitesh.singh1015@gmail.com
CAREER OBJECTIVE
To build career in a growing organisation, where I can get the opportunities to prove my abilities
by accepting challenges, fulfilling the organisational goals & climb the career ladder through
continuous learning and commitment.
ACADEMIC QUALIFICATION
10th Passed from Adarsh Vidya Niketan Sr. Sec. school, Faridabad, CBSE Board.
12th Passed from Gandhi Rashtriya Inter College, Sadalpura, Mughalsarai, UP Board.
Graduation with BCA from Institute of Computer Science & Tech., SHEPA, Varanasi,
MGKVP university.
Pursuing MCA from Institute of Computer Science & Tech., SHEPA, Varanasi, AKTU
Lucknow.
EXTRA QUALIFICATION
“EICS (Effective Industrial Communication Skills)” from Society for higher Education &
Practical Application (SHEPA), Varanasi.
“CCA (Certificate in computer application)” from soft-tech development solution.
“DICHN (Diploma in Computer Hardware & Networking)” from Soft-tech Development
Solution.
1
PROJECTS
Built a helpline Android application named “Parivartan (Ek Salah)” during my academic
Session.
Attended a seminar on “IOT (Internet of Things)” by Dr. Neelendar Badal (Professor) KNIT,
Sultanpur.
SPECIALIZATION
PERSONAL SKILLS
Honesty
Team spirit
Accepting Challenges
PERSONAL PROFILE
Sex Male
Nationality Indian
2
DECLARETION
I solemnly declare that all the above information herein is correct to the best of
my knowledge and belief.
Date: