Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
2
2022-81
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
2022-81
2022-81
Commits
efeb0f51
Commit
efeb0f51
authored
Oct 09, 2022
by
Salika952
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add main activity changes
parent
15680fad
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
77 additions
and
14 deletions
+77
-14
app/src/main/java/com/example/eketha/MainActivity.java
app/src/main/java/com/example/eketha/MainActivity.java
+14
-14
app/src/main/res/layout/activity_diseases.xml
app/src/main/res/layout/activity_diseases.xml
+63
-0
No files found.
app/src/main/java/com/example/eketha/MainActivity.java
View file @
efeb0f51
...
...
@@ -35,36 +35,36 @@ public class MainActivity extends AppCompatActivity {
finish
();
}
});
// cardView1.setOnClickListener(new View.OnClickListener() {
cardView1
.
setOnClickListener
(
new
View
.
OnClickListener
()
{
@Override
public
void
onClick
(
View
view
)
{
Intent
intent
=
new
Intent
(
getApplicationContext
(),
pdHome
.
class
);
startActivity
(
intent
);
}
});
//
// cardView2.setOnClickListener(new View.OnClickListener() {
// @Override
// public void onClick(View view) {
// Intent intent = new Intent(getApplicationContext(),
p
dHome.class);
// Intent intent = new Intent(getApplicationContext(),
wee
dHome.class);
// startActivity(intent);
// }
// });
//
// cardView
2
.setOnClickListener(new View.OnClickListener() {
// cardView
3
.setOnClickListener(new View.OnClickListener() {
// @Override
// public void onClick(View view) {
// Intent intent = new Intent(getApplicationContext(),
weed
Home.class);
// Intent intent = new Intent(getApplicationContext(),
fertilizer
Home.class);
// startActivity(intent);
// }
// });
//
// cardView
3
.setOnClickListener(new View.OnClickListener() {
// cardView
4
.setOnClickListener(new View.OnClickListener() {
// @Override
// public void onClick(View view) {
// Intent intent = new Intent(getApplicationContext(),
fertilizer
Home.class);
// Intent intent = new Intent(getApplicationContext(),
growth
Home.class);
// startActivity(intent);
// }
// });
cardView4
.
setOnClickListener
(
new
View
.
OnClickListener
()
{
@Override
public
void
onClick
(
View
view
)
{
Intent
intent
=
new
Intent
(
getApplicationContext
(),
growthHome
.
class
);
startActivity
(
intent
);
}
});
}
}
\ No newline at end of file
app/src/main/res/layout/activity_diseases.xml
0 → 100644
View file @
efeb0f51
<?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=
".Diseases"
>
<Button
android:id=
"@+id/btnTakePicture"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_above=
"@id/btnLaunchGallery"
android:layout_centerInParent=
"true"
android:background=
"@drawable/round_bg"
android:text=
"Take Picture"
android:textAllCaps=
"false"
android:textSize=
"21sp"
android:textStyle=
"bold"
/>
<Button
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_centerInParent=
"true"
android:id=
"@+id/btnLaunchGallery"
android:background=
"@drawable/round_bg"
android:text=
"Launch Gallery"
android:textAllCaps=
"false"
android:layout_marginTop=
"20dp"
android:layout_marginBottom=
"20dp"
android:layout_alignParentBottom=
"true"
android:textSize=
"21sp"
android:textStyle=
"bold"
/>
<ImageView
android:layout_width=
"370sp"
android:layout_height=
"370sp"
android:layout_centerHorizontal=
"true"
android:id=
"@+id/imageView1"
android:layout_marginTop=
"10sp"
/>
<TextView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_centerHorizontal=
"true"
android:text=
"Classified as:"
android:textStyle=
"bold"
android:textSize=
"20sp"
android:id=
"@+id/classified"
android:layout_below=
"@+id/imageView1"
android:layout_marginTop=
"10sp"
/>
<TextView
android:id=
"@+id/result1"
android:layout_width=
"150dp"
android:layout_height=
"wrap_content"
android:layout_below=
"@+id/classified"
android:layout_centerHorizontal=
"true"
android:text=
""
android:textColor=
"#C30000"
android:textSize=
"27sp"
android:textStyle=
"bold"
/>
</RelativeLayout>
\ No newline at end of file
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