Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
Skidn disease App
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Skin disease
Skidn disease App
Commits
4409af39
Commit
4409af39
authored
Sep 27, 2021
by
Kavindu Randika
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
search section inital 1
parent
2dc624ca
Changes
15
Hide whitespace changes
Inline
Side-by-side
Showing
15 changed files
with
380 additions
and
17 deletions
+380
-17
.idea/gradle.xml
.idea/gradle.xml
+1
-0
.idea/misc.xml
.idea/misc.xml
+4
-1
app/build.gradle
app/build.gradle
+1
-1
app/src/main/java/com/project/skidn_disease_app/DeasisAdapter.java
...ain/java/com/project/skidn_disease_app/DeasisAdapter.java
+80
-0
app/src/main/java/com/project/skidn_disease_app/QuantityListner.java
...n/java/com/project/skidn_disease_app/QuantityListner.java
+7
-0
app/src/main/java/com/project/skidn_disease_app/SearchFragment.java
...in/java/com/project/skidn_disease_app/SearchFragment.java
+230
-2
app/src/main/res/drawable/ic_next_button.xml
app/src/main/res/drawable/ic_next_button.xml
+7
-0
app/src/main/res/layout/activity_main.xml
app/src/main/res/layout/activity_main.xml
+1
-0
app/src/main/res/layout/deasisecheck.xml
app/src/main/res/layout/deasisecheck.xml
+17
-0
app/src/main/res/layout/fragment_camera.xml
app/src/main/res/layout/fragment_camera.xml
+1
-0
app/src/main/res/layout/fragment_chat.xml
app/src/main/res/layout/fragment_chat.xml
+1
-0
app/src/main/res/layout/fragment_medc.xml
app/src/main/res/layout/fragment_medc.xml
+1
-0
app/src/main/res/layout/fragment_search.xml
app/src/main/res/layout/fragment_search.xml
+16
-10
app/src/main/res/menu/search_menu.xml
app/src/main/res/menu/search_menu.xml
+10
-0
app/src/main/res/values/colors.xml
app/src/main/res/values/colors.xml
+3
-3
No files found.
.idea/gradle.xml
View file @
4409af39
<?xml version="1.0" encoding="UTF-8"?>
<project
version=
"4"
>
<component
name=
"GradleMigrationSettings"
migrationVersion=
"1"
/>
<component
name=
"GradleSettings"
>
<option
name=
"linkedExternalProjectsSettings"
>
<GradleProjectSettings>
...
...
.idea/misc.xml
View file @
4409af39
...
...
@@ -5,11 +5,14 @@
<map>
<entry
key=
"..\:/Users/wishwa/StudioProjects/Skidndiseaseapp/app/src/main/res/drawable/tab_color.xml"
value=
"0.1125"
/>
<entry
key=
"..\:/Users/wishwa/StudioProjects/Skidndiseaseapp/app/src/main/res/layout/activity_main.xml"
value=
"0.19270833333333334"
/>
<entry
key=
"..\:/Users/wishwa/StudioProjects/Skidndiseaseapp/app/src/main/res/layout/deasisecheck.xml"
value=
"0.22"
/>
<entry
key=
"..\:/Users/wishwa/StudioProjects/Skidndiseaseapp/app/src/main/res/layout/fragment_camera.xml"
value=
"0.1"
/>
<entry
key=
"..\:/Users/wishwa/StudioProjects/Skidndiseaseapp/app/src/main/res/layout/fragment_chat.xml"
value=
"0.12771739130434784"
/>
<entry
key=
"..\:/Users/wishwa/StudioProjects/Skidndiseaseapp/app/src/main/res/layout/fragment_medc.xml"
value=
"0.12771739130434784"
/>
<entry
key=
"..\:/Users/wishwa/StudioProjects/Skidndiseaseapp/app/src/main/res/layout/fragment_search.xml"
value=
"0.12771739130434784"
/>
<entry
key=
"..\:/Users/wishwa/StudioProjects/Skidndiseaseapp/app/src/main/res/layout/fragment_search.xml"
value=
"0.2199546485260771"
/>
<entry
key=
"..\:/Users/wishwa/StudioProjects/Skidndiseaseapp/app/src/main/res/layout/frame_textview.xml"
value=
"0.22"
/>
<entry
key=
"..\:/Users/wishwa/StudioProjects/Skidndiseaseapp/app/src/main/res/menu/menu.xml"
value=
"0.20416666666666666"
/>
<entry
key=
"..\:/Users/wishwa/StudioProjects/Skidndiseaseapp/app/src/main/res/menu/search_menu.xml"
value=
"0.22"
/>
</map>
</option>
</component>
...
...
app/build.gradle
View file @
4409af39
...
...
@@ -28,7 +28,7 @@ android {
}
dependencies
{
implementation
'com.google.code.gson:gson:2.8.5'
implementation
'androidx.appcompat:appcompat:1.3.1'
implementation
'com.google.android.material:material:1.4.0'
implementation
'androidx.constraintlayout:constraintlayout:2.1.0'
...
...
app/src/main/java/com/project/skidn_disease_app/DeasisAdapter.java
0 → 100644
View file @
4409af39
package
com.project.skidn_disease_app
;
import
android.content.Context
;
import
android.view.LayoutInflater
;
import
android.view.View
;
import
android.view.ViewGroup
;
import
android.widget.CheckBox
;
import
android.widget.Toast
;
import
androidx.annotation.NonNull
;
import
androidx.recyclerview.widget.RecyclerView
;
import
java.util.ArrayList
;
public
class
DeasisAdapter
extends
RecyclerView
.
Adapter
<
DeasisAdapter
.
ViewHolder
>
{
View
view
;
Context
context
;
ArrayList
<
String
>
arrayList
;
QuantityListner
quantityListner
;
ArrayList
<
String
>
arrayList_checked
=
new
ArrayList
<>();
private
ArrayList
<
Integer
>
selected
=
new
ArrayList
<>();
public
DeasisAdapter
(
Context
context
,
ArrayList
<
String
>
arrayList
,
QuantityListner
quantityListner
)
{
this
.
context
=
context
;
this
.
arrayList
=
arrayList
;
this
.
quantityListner
=
quantityListner
;
}
public
View
getView
()
{
return
view
;
}
@NonNull
@Override
public
DeasisAdapter
.
ViewHolder
onCreateViewHolder
(
@NonNull
ViewGroup
parent
,
int
viewType
)
{
view
=
LayoutInflater
.
from
(
context
).
inflate
(
R
.
layout
.
deasisecheck
,
parent
,
false
);
return
new
ViewHolder
(
view
);
}
@Override
public
void
onBindViewHolder
(
@NonNull
DeasisAdapter
.
ViewHolder
holder
,
int
position
)
{
int
mLastPosition
=
holder
.
getAdapterPosition
();
if
(
arrayList
!=
null
&&
arrayList
.
size
()
>
0
){
holder
.
check_Box
.
setText
(
arrayList
.
get
(
position
));
if
(
arrayList_checked
.
contains
(
arrayList
.
get
(
mLastPosition
))){
holder
.
check_Box
.
setChecked
(
true
);
}
else
{
holder
.
check_Box
.
setChecked
(
false
);
}
holder
.
check_Box
.
setOnClickListener
(
new
View
.
OnClickListener
(){
@Override
public
void
onClick
(
View
v
)
{
if
(
holder
.
check_Box
.
isChecked
()){
System
.
out
.
println
(
mLastPosition
);
arrayList_checked
.
add
(
arrayList
.
get
(
mLastPosition
));
}
else
{
arrayList_checked
.
remove
(
arrayList
.
get
(
mLastPosition
));
}
quantityListner
.
onQunatiyChange
(
arrayList_checked
);
}
});
}
}
@Override
public
int
getItemCount
()
{
return
arrayList
.
size
();
}
public
class
ViewHolder
extends
RecyclerView
.
ViewHolder
{
CheckBox
check_Box
;
public
ViewHolder
(
@NonNull
View
itemView
)
{
super
(
itemView
);
check_Box
=
itemView
.
findViewById
(
R
.
id
.
check_box
);
}
}
}
app/src/main/java/com/project/skidn_disease_app/QuantityListner.java
0 → 100644
View file @
4409af39
package
com.project.skidn_disease_app
;
import
java.util.ArrayList
;
public
interface
QuantityListner
{
void
onQunatiyChange
(
ArrayList
<
String
>
arrayList
);
}
app/src/main/java/com/project/skidn_disease_app/SearchFragment.java
View file @
4409af39
...
...
@@ -2,23 +2,37 @@ package com.project.skidn_disease_app;
import
android.os.Bundle
;
import
androidx.annotation.NonNull
;
import
androidx.fragment.app.Fragment
;
import
androidx.recyclerview.widget.LinearLayoutManager
;
import
androidx.recyclerview.widget.RecyclerView
;
import
android.view.LayoutInflater
;
import
android.view.Menu
;
import
android.view.MenuInflater
;
import
android.view.MenuItem
;
import
android.view.View
;
import
android.view.ViewGroup
;
import
android.widget.Toast
;
import
java.util.ArrayList
;
import
java.util.HashMap
;
/**
* A simple {@link Fragment} subclass.
* Use the {@link SearchFragment#newInstance} factory method to
* create an instance of this fragment.
*/
public
class
SearchFragment
extends
Fragment
{
public
class
SearchFragment
extends
Fragment
implements
QuantityListner
{
// TODO: Rename parameter arguments, choose names that match
// the fragment initialization parameters, e.g. ARG_ITEM_NUMBER
private
static
final
String
ARG_PARAM1
=
"param1"
;
private
static
final
String
ARG_PARAM2
=
"param2"
;
private
HashMap
<
String
,
Object
>
map
;
private
RecyclerView
recyclerView
;
private
ArrayList
<
String
>
values
;
// TODO: Rename and change types of parameters
private
String
mParam1
;
...
...
@@ -46,6 +60,207 @@ public class SearchFragment extends Fragment {
return
fragment
;
}
public
ArrayList
<
String
>
getData
(){
ArrayList
<
String
>
arraylist
=
new
ArrayList
<>();
arraylist
.
add
(
"Crusting of skin bumps."
);
arraylist
.
add
(
" Cysts."
);
arraylist
.
add
(
" Papules (small red bumps)"
);
arraylist
.
add
(
" Pustules (small red bumps containing white or yellow pus)"
);
arraylist
.
add
(
" Redness around the skin eruptions."
);
arraylist
.
add
(
" Scarring of the skin."
);
arraylist
.
add
(
"Whiteheads."
);
arraylist
.
add
(
"Blackheads"
);
arraylist
.
add
(
" Eye Problems"
);
arraylist
.
add
(
"Enlarged nose."
);
arraylist
.
add
(
"Rough, dry or scaly patch of skin , usually less than 1 inch in diameter."
);
arraylist
.
add
(
"Flat to slightly raised patch or bump on the top layer of skin."
);
arraylist
.
add
(
" In some cases, a hard, warlike surface."
);
arraylist
.
add
(
"Color variations, including pink, red or brown ."
);
arraylist
.
add
(
"Itching, burning, bleeding or crusting"
);
arraylist
.
add
(
"the rash often forms in the creases of your elbows or knees"
);
arraylist
.
add
(
"skin in areas where the rash appears may turn lighter or darker, or get thicker"
);
arraylist
.
add
(
"small bumps may appear and leak fluid if you scratch them"
);
arraylist
.
add
(
"babies often get the rash on their scalp and cheeks"
);
arraylist
.
add
(
"your skin can get infected if you scratch it"
);
arraylist
.
add
(
"Itching skin, weeks or months before blisters form."
);
arraylist
.
add
(
"Large blisters that don't easily rupture when touched, often along creases or folds in the skin."
);
arraylist
.
add
(
"Skin around the blisters that is normal, reddish or darker than normal."
);
arraylist
.
add
(
"Eczema or a hive-like(5) rash"
);
arraylist
.
add
(
"Red area of skin that tends to expand."
);
arraylist
.
add
(
"Swelling."
);
arraylist
.
add
(
"Tenderness."
);
arraylist
.
add
(
"Pain."
);
arraylist
.
add
(
"Warmth."
);
arraylist
.
add
(
"Fever."
);
arraylist
.
add
(
"Red spots ."
);
arraylist
.
add
(
"Blisters"
);
arraylist
.
add
(
"your skin itches, turns red, burns, and stings."
);
arraylist
.
add
(
"itchy bumps called hives may pop up on your skin."
);
arraylist
.
add
(
"fluid-filled blisters can form that may ooze and crust over."
);
arraylist
.
add
(
"over time, the skin may thicken and feel scaly or leathery"
);
arraylist
.
add
(
"Hacking cough"
);
arraylist
.
add
(
" Redness and irritation of the eyes"
);
arraylist
.
add
(
"Fever"
);
arraylist
.
add
(
"Small red spots with white centers on the inside of the cheek "
);
arraylist
.
add
(
"Small bald patches on your scalp or other parts of your body."
);
arraylist
.
add
(
"Patches may get larger and grow together into a bald spot."
);
arraylist
.
add
(
"Hair grows back in one spot and falls out in another."
);
arraylist
.
add
(
"You lose a lot of hair over a short time."
);
arraylist
.
add
(
" More hair loss in cold weather."
);
arraylist
.
add
(
" Fingernails and toenails become red, brittle, and pitted"
);
arraylist
.
add
(
"including swollen glands, fever, chills, and headache."
);
arraylist
.
add
(
"a burning or tingling sensation where the infection will erupt."
);
arraylist
.
add
(
"Pain and itching around the genital area. "
);
arraylist
.
add
(
" red bumps or other blisters, which may ooze, in the genital area"
);
arraylist
.
add
(
"redness, "
);
arraylist
.
add
(
"light sensitivity, "
);
arraylist
.
add
(
"headaches, and blurred vision."
);
arraylist
.
add
(
"symptoms may be treated by closing the eyes and taking a break from the visual task."
);
arraylist
.
add
(
"Muscle and joint pain. "
);
arraylist
.
add
(
"Rashes."
);
arraylist
.
add
(
"Chest pain."
);
arraylist
.
add
(
"Hair loss."
);
arraylist
.
add
(
"Sun or light sensitivity."
);
arraylist
.
add
(
"Kidney problems."
);
arraylist
.
add
(
"Mouth sores"
);
arraylist
.
add
(
" Asymmetry. The shape of one-half of the mole does not match the other."
);
arraylist
.
add
(
"Border. The edges are ragged, notched, uneven, or blurred."
);
arraylist
.
add
(
"Color. Shades of black, brown, and tan may be present."
);
arraylist
.
add
(
" Diameter. The diameter is usually larger than 6 millimeters or has grown in size."
);
arraylist
.
add
(
"Evolving"
);
arraylist
.
add
(
"Thickened."
);
arraylist
.
add
(
"Whitish to yellow-brown discoloration."
);
arraylist
.
add
(
"Brittle, crumbly or ragged."
);
arraylist
.
add
(
"Distorted in shape."
);
arraylist
.
add
(
"A dark color, caused by debris building up under your nail."
);
arraylist
.
add
(
"Smelling slightly foul"
);
arraylist
.
add
(
"Redness."
);
arraylist
.
add
(
"Itching."
);
arraylist
.
add
(
"Blisters."
);
arraylist
.
add
(
"Difficulty breathing, if you've inhaled the smoke from burning poison ivy"
);
arraylist
.
add
(
"Red patches of skin covered with thick, silvery scales."
);
arraylist
.
add
(
"Small scaling spots commonly seen in children"
);
arraylist
.
add
(
"Dry, cracked skin that may bleed or itch."
);
arraylist
.
add
(
"Itching, burning or soreness."
);
arraylist
.
add
(
"Thickened, pitted or ridged nails."
);
arraylist
.
add
(
"Swollen and stiff joints"
);
arraylist
.
add
(
"Itching"
);
arraylist
.
add
(
"scabies rash."
);
arraylist
.
add
(
"Scratching the itchy rash can cause sores."
);
arraylist
.
add
(
"Thick crusts on the skin: Crusts form when a person develops a severe type of scabies called crusted scabies"
);
return
arraylist
;
}
@Override
public
void
onCreateOptionsMenu
(
@NonNull
Menu
menu
,
@NonNull
MenuInflater
inflater
)
{
inflater
.
inflate
(
R
.
menu
.
search_menu
,
menu
);
super
.
onCreateOptionsMenu
(
menu
,
inflater
);
}
@Override
public
void
setHasOptionsMenu
(
boolean
hasMenu
)
{
super
.
setHasOptionsMenu
(
hasMenu
);
}
@Override
public
boolean
onOptionsItemSelected
(
@NonNull
MenuItem
item
)
{
int
itemThatWasClickedId
=
item
.
getItemId
();
if
(
itemThatWasClickedId
==
R
.
id
.
action_search
)
{
Toast
.
makeText
(
this
.
getContext
(),
"hello"
,
Toast
.
LENGTH_LONG
).
show
();
return
true
;
}
return
super
.
onOptionsItemSelected
(
item
);
}
public
void
getMap
()
{
this
.
map
.
put
(
"Crusting of skin bumps."
,
"23"
);
this
.
map
.
put
(
" Cysts."
,
"2"
);
this
.
map
.
put
(
" Papules (small red bumps)"
,
"8"
);
this
.
map
.
put
(
" Pustules (small red bumps containing white or yellow pus)"
,
"9"
);
this
.
map
.
put
(
" Redness around the skin eruptions."
,
"11"
);
this
.
map
.
put
(
" Scarring of the skin."
,
"12"
);
this
.
map
.
put
(
"Whiteheads."
,
"68"
);
this
.
map
.
put
(
"Blackheads"
,
"15"
);
this
.
map
.
put
(
" Eye Problems"
,
"4"
);
this
.
map
.
put
(
"Enlarged nose."
,
"28"
);
this
.
map
.
put
(
"Rough, dry or scaly patch of skin , usually less than 1 inch in diameter."
,
"53"
);
this
.
map
.
put
(
"Flat to slightly raised patch or bump on the top layer of skin."
,
"32"
);
this
.
map
.
put
(
" In some cases, a hard, warlike surface."
,
"6"
);
this
.
map
.
put
(
"Color variations, including pink, red or brown ."
,
"21"
);
this
.
map
.
put
(
"Itching, burning, bleeding or crusting"
,
"39"
);
this
.
map
.
put
(
"the rash often forms in the creases of your elbows or knees"
,
"84"
);
this
.
map
.
put
(
"skin in areas where the rash appears may turn lighter or darker, or get thicker"
,
"81"
);
this
.
map
.
put
(
"small bumps may appear and leak fluid if you scratch them"
,
"82"
);
this
.
map
.
put
(
"babies often get the rash on their scalp and cheeks"
,
"72"
);
this
.
map
.
put
(
"your skin can get infected if you scratch it"
,
"85"
);
this
.
map
.
put
(
"Itching skin, weeks or months before blisters form."
,
"37"
);
this
.
map
.
put
(
"Large blisters that don't easily rupture when touched, often along creases or folds in the skin."
,
"42"
);
this
.
map
.
put
(
"Skin around the blisters that is normal, reddish or darker than normal."
,
"55"
);
this
.
map
.
put
(
"Eczema or a hive-like(5) rash"
,
"27"
);
this
.
map
.
put
(
"Red area of skin that tends to expand."
,
"49"
);
this
.
map
.
put
(
"Swelling."
,
"61"
);
this
.
map
.
put
(
"Tenderness."
,
"63"
);
this
.
map
.
put
(
"Pain."
,
"46"
);
this
.
map
.
put
(
"Warmth."
,
"67"
);
this
.
map
.
put
(
"Fever."
,
"31"
);
this
.
map
.
put
(
"Red spots ."
,
"51"
);
this
.
map
.
put
(
"Blisters"
,
"16"
);
this
.
map
.
put
(
"your skin itches, turns red, burns, and stings."
,
"86"
);
this
.
map
.
put
(
"itchy bumps called hives may pop up on your skin."
,
"76"
);
this
.
map
.
put
(
"fluid-filled blisters can form that may ooze and crust over."
,
"73"
);
this
.
map
.
put
(
"over time, the skin may thicken and feel scaly or leathery"
,
"78"
);
this
.
map
.
put
(
"Hacking cough"
,
"33"
);
this
.
map
.
put
(
" Redness and irritation of the eyes"
,
"10"
);
this
.
map
.
put
(
"Fever"
,
"30"
);
this
.
map
.
put
(
"Small red spots with white centers on the inside of the cheek "
,
"57"
);
this
.
map
.
put
(
"Small bald patches on your scalp or other parts of your body."
,
"56"
);
this
.
map
.
put
(
"Patches may get larger and grow together into a bald spot."
,
"47"
);
this
.
map
.
put
(
"Hair grows back in one spot and falls out in another."
,
"34"
);
this
.
map
.
put
(
"You lose a lot of hair over a short time."
,
"70"
);
this
.
map
.
put
(
" More hair loss in cold weather."
,
"7"
);
this
.
map
.
put
(
" Fingernails and toenails become red, brittle, and pitted"
,
"5"
);
this
.
map
.
put
(
"including swollen glands, fever, chills, and headache."
,
"75"
);
this
.
map
.
put
(
"a burning or tingling sensation where the infection will erupt."
,
"71"
);
this
.
map
.
put
(
"Pain and itching around the genital area. "
,
"45"
);
this
.
map
.
put
(
" red bumps or other blisters, which may ooze, in the genital area"
,
"13"
);
this
.
map
.
put
(
"redness, "
,
"79"
);
this
.
map
.
put
(
"light sensitivity, "
,
"77"
);
this
.
map
.
put
(
"headaches, and blurred vision."
,
"74"
);
this
.
map
.
put
(
"symptoms may be treated by closing the eyes and taking a break from the visual task."
,
"83"
);
this
.
map
.
put
(
"Muscle and joint pain. "
,
"44"
);
this
.
map
.
put
(
"Rashes."
,
"48"
);
this
.
map
.
put
(
"Chest pain."
,
"20"
);
this
.
map
.
put
(
"Hair loss."
,
"35"
);
this
.
map
.
put
(
"Sun or light sensitivity."
,
"60"
);
this
.
map
.
put
(
"Kidney problems."
,
"41"
);
this
.
map
.
put
(
"Mouth sores"
,
"43"
);
this
.
map
.
put
(
" Asymmetry. The shape of one-half of the mole does not match the other."
,
"1"
);
this
.
map
.
put
(
"Border. The edges are ragged, notched, uneven, or blurred."
,
"18"
);
this
.
map
.
put
(
"Color. Shades of black, brown, and tan may be present."
,
"22"
);
this
.
map
.
put
(
" Diameter. The diameter is usually larger than 6 millimeters or has grown in size."
,
"3"
);
this
.
map
.
put
(
"Evolving"
,
"29"
);
this
.
map
.
put
(
"Thickened."
,
"66"
);
this
.
map
.
put
(
"Whitish to yellow-brown discoloration."
,
"69"
);
this
.
map
.
put
(
"Brittle, crumbly or ragged."
,
"19"
);
this
.
map
.
put
(
"Distorted in shape."
,
"25"
);
this
.
map
.
put
(
"A dark color, caused by debris building up under your nail."
,
"14"
);
this
.
map
.
put
(
"Smelling slightly foul"
,
"59"
);
this
.
map
.
put
(
"Redness."
,
"52"
);
this
.
map
.
put
(
"Itching."
,
"40"
);
this
.
map
.
put
(
"Blisters."
,
"17"
);
this
.
map
.
put
(
"Difficulty breathing, if you've inhaled the smoke from burning poison ivy"
,
"24"
);
this
.
map
.
put
(
"Red patches of skin covered with thick, silvery scales."
,
"50"
);
this
.
map
.
put
(
"Small scaling spots commonly seen in children"
,
"58"
);
this
.
map
.
put
(
"Dry, cracked skin that may bleed or itch."
,
"26"
);
this
.
map
.
put
(
"Itching, burning or soreness."
,
"38"
);
this
.
map
.
put
(
"Thickened, pitted or ridged nails."
,
"65"
);
this
.
map
.
put
(
"Swollen and stiff joints"
,
"62"
);
this
.
map
.
put
(
"Itching"
,
"36"
);
this
.
map
.
put
(
"scabies rash."
,
"80"
);
this
.
map
.
put
(
"Scratching the itchy rash can cause sores."
,
"54"
);
this
.
map
.
put
(
"Thick crusts on the skin: Crusts form when a person develops a severe type of scabies called crusted scabies"
,
"64"
);
}
@Override
public
void
onCreate
(
Bundle
savedInstanceState
)
{
super
.
onCreate
(
savedInstanceState
);
...
...
@@ -53,13 +268,26 @@ public class SearchFragment extends Fragment {
mParam1
=
getArguments
().
getString
(
ARG_PARAM1
);
mParam2
=
getArguments
().
getString
(
ARG_PARAM2
);
}
setHasOptionsMenu
(
true
);
getActivity
().
setTitle
(
"Search"
);
}
@Override
public
View
onCreateView
(
LayoutInflater
inflater
,
ViewGroup
container
,
Bundle
savedInstanceState
)
{
// Inflate the layout for this fragment
return
inflater
.
inflate
(
R
.
layout
.
fragment_search
,
container
,
false
);
View
view
=
inflater
.
inflate
(
R
.
layout
.
fragment_search
,
container
,
false
);
recyclerView
=
view
.
findViewById
(
R
.
id
.
recyleView
);
recyclerView
.
setHasFixedSize
(
false
);
recyclerView
.
setLayoutManager
(
new
LinearLayoutManager
(
view
.
getContext
()));
recyclerView
.
setAdapter
(
new
DeasisAdapter
(
this
.
getContext
(),
getData
(),
this
));
return
view
;
}
@Override
public
void
onQunatiyChange
(
ArrayList
<
String
>
arrayList
)
{
Toast
.
makeText
(
this
.
getContext
(),
arrayList
.
toString
(),
Toast
.
LENGTH_LONG
).
show
();
}
}
\ No newline at end of file
app/src/main/res/drawable/ic_next_button.xml
0 → 100644
View file @
4409af39
<vector
android:height=
"256dp"
android:viewportHeight=
"24"
android:viewportWidth=
"24"
android:width=
"256dp"
xmlns:android=
"http://schemas.android.com/apk/res/android"
>
<path
android:fillColor=
"#2196f3"
android:pathData=
"m12,0c-6.617,0 -12,5.383 -12,12s5.383,12 12,12 12,-5.383 12,-12 -5.383,-12 -12,-12z"
/>
<path
android:fillColor=
"#1d83d4"
android:pathData=
"m12,0c-6.617,0 -12,5.383 -12,12s5.383,12 12,12z"
/>
<path
android:fillColor=
"#fff"
android:pathData=
"m12,18.25v-3.25h-5.75c-0.689,0 -1.25,-0.561 -1.25,-1.25v-3.5c0,-0.689 0.561,-1.25 1.25,-1.25h5.75v-3.25c0,-0.66 0.795,-0.999 1.27,-0.541l6.5,6.25c0.147,0.142 0.23,0.337 0.23,0.541s-0.083,0.399 -0.23,0.541l-6.5,6.25c-0.475,0.456 -1.27,0.12 -1.27,-0.541z"
/>
<path
android:fillColor=
"#dedede"
android:pathData=
"m5,12h15c0,0.204 -0.083,0.399 -0.23,0.541l-6.5,6.25c-0.15,0.144 -0.334,0.209 -0.514,0.209 -0.385,0 -0.756,-0.298 -0.756,-0.75v-3.25h-5.75c-0.689,0 -1.25,-0.561 -1.25,-1.25z"
/>
</vector>
app/src/main/res/layout/activity_main.xml
View file @
4409af39
...
...
@@ -5,6 +5,7 @@
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
android:background=
"@drawable/background"
android:textAlignment=
"center"
tools:context=
".MainActivity"
>
<FrameLayout
...
...
app/src/main/res/layout/deasisecheck.xml
0 → 100644
View file @
4409af39
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout
xmlns:android=
"http://schemas.android.com/apk/res/android"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
xmlns:app=
"http://schemas.android.com/apk/res-auto"
>
<androidx.cardview.widget.CardView
android:layout_width=
"match_parent"
app:cardBackgroundColor=
"#12251b"
android:layout_height=
"wrap_content"
>
<CheckBox
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:textColor=
"@color/white"
android:checked=
"false"
android:id=
"@+id/check_box"
/>
</androidx.cardview.widget.CardView>
</RelativeLayout>
\ No newline at end of file
app/src/main/res/layout/fragment_camera.xml
View file @
4409af39
...
...
@@ -4,6 +4,7 @@
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
android:background=
"@drawable/background"
android:textAlignment=
"center"
tools:context=
".CameraFragment"
>
<!-- TODO: Update blank fragment layout -->
...
...
app/src/main/res/layout/fragment_chat.xml
View file @
4409af39
...
...
@@ -3,6 +3,7 @@
xmlns:tools=
"http://schemas.android.com/tools"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
android:textAlignment=
"center"
android:background=
"@drawable/background"
tools:context=
".ChatFragment"
>
...
...
app/src/main/res/layout/fragment_medc.xml
View file @
4409af39
...
...
@@ -3,6 +3,7 @@
xmlns:tools=
"http://schemas.android.com/tools"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
android:textAlignment=
"center"
android:background=
"@drawable/background"
tools:context=
".MedcFragment"
>
...
...
app/src/main/res/layout/fragment_search.xml
View file @
4409af39
...
...
@@ -4,17 +4,23 @@
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
android:background=
"@drawable/background"
android:textAlignment=
"center"
tools:context=
".SearchFragment"
>
<LinearLayout
android:layout_width=
"match_parent"
android:orientation=
"vertical"
android:layout_height=
"wrap_content"
>
<!-- TODO: Update blank fragment layout -->
<TextView
android:textSize=
"30dp"
android:textColor=
"@color/white"
android:layout_width=
"wrap_content"
android:layout_centerInParent=
"true"
android:textAlignment=
"center"
android:layout_height=
"wrap_content"
android:layout_gravity=
"center"
android:text=
"Search Now"
/>
<androidx.recyclerview.widget.RecyclerView
android:id=
"@+id/recyleView"
android:layout_width=
"match_parent"
android:layout_height=
"672dp"
/>
</LinearLayout>
<Button
android:id=
"@+id/button"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_gravity=
"bottom"
android:text=
"Button"
/>
</FrameLayout>
\ No newline at end of file
app/src/main/res/menu/search_menu.xml
0 → 100644
View file @
4409af39
<?xml version="1.0" encoding="utf-8"?>
<menu
xmlns:android=
"http://schemas.android.com/apk/res/android"
xmlns:app=
"http://schemas.android.com/apk/res-auto"
>
<item
android:icon=
"@drawable/ic_next_button"
android:id=
"@+id/action_search"
android:orderInCategory=
"1"
app:showAsAction=
"ifRoom"
android:title=
"Search"
/>
</menu>
\ No newline at end of file
app/src/main/res/values/colors.xml
View file @
4409af39
<?xml version="1.0" encoding="utf-8"?>
<resources>
<color
name=
"purple_200"
>
#F
9CC9F
</color>
<color
name=
"purple_500"
>
#F
9CC9F
</color>
<color
name=
"purple_700"
>
#F
9CC9F
</color>
<color
name=
"purple_200"
>
#F
EE3C8
</color>
<color
name=
"purple_500"
>
#F
EE3C8
</color>
<color
name=
"purple_700"
>
#F
EE3C8
</color>
<color
name=
"teal_200"
>
#FF03DAC5
</color>
<color
name=
"teal_700"
>
#FF018786
</color>
<color
name=
"black"
>
#FF000000
</color>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment