Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
2
2021-129
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
2021-129
2021-129
Commits
dcb6d652
Commit
dcb6d652
authored
Oct 07, 2021
by
dilshan-98
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cut done (not tested fully)
parent
d0493940
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
35 additions
and
0 deletions
+35
-0
app/src/main/java/com/app/smartphotoeditor/ImageProcessing/Cut.java
...in/java/com/app/smartphotoeditor/ImageProcessing/Cut.java
+35
-0
No files found.
app/src/main/java/com/app/smartphotoeditor/ImageProcessing/Cut.java
View file @
dcb6d652
...
@@ -2,15 +2,50 @@ package com.app.smartphotoeditor.ImageProcessing;
...
@@ -2,15 +2,50 @@ package com.app.smartphotoeditor.ImageProcessing;
import
androidx.appcompat.app.AppCompatActivity
;
import
androidx.appcompat.app.AppCompatActivity
;
import
android.content.Intent
;
import
android.os.Bundle
;
import
android.os.Bundle
;
import
android.view.View
;
import
android.widget.Button
;
import
android.widget.ImageView
;
import
com.app.smartphotoeditor.R
;
import
com.app.smartphotoeditor.R
;
import
com.squareup.picasso.MemoryPolicy
;
import
com.squareup.picasso.NetworkPolicy
;
import
com.squareup.picasso.Picasso
;
public
class
Cut
extends
AppCompatActivity
{
public
class
Cut
extends
AppCompatActivity
{
Button
btnBack
;
ImageView
imageView
;
@Override
@Override
protected
void
onCreate
(
Bundle
savedInstanceState
)
{
protected
void
onCreate
(
Bundle
savedInstanceState
)
{
super
.
onCreate
(
savedInstanceState
);
super
.
onCreate
(
savedInstanceState
);
setContentView
(
R
.
layout
.
activity_cut
);
setContentView
(
R
.
layout
.
activity_cut
);
btnBack
=(
Button
)
findViewById
(
R
.
id
.
back
);
imageView
=(
ImageView
)
findViewById
(
R
.
id
.
imgView
);
Picasso
.
get
()
.
load
(
"https://"
+
Constants
.
IMGLINK
+
".ngrok.io/static/cut.jpg"
)
.
placeholder
(
R
.
drawable
.
progress_bar_material
)
.
networkPolicy
(
NetworkPolicy
.
NO_CACHE
)
.
memoryPolicy
(
MemoryPolicy
.
NO_CACHE
)
.
resize
(
300
,
300
)
.
into
(
imageView
);
btnBack
.
setOnClickListener
(
new
View
.
OnClickListener
()
{
@Override
public
void
onClick
(
View
v
)
{
openSelecteditActivity
();
}
});
}
public
void
openSelecteditActivity
()
{
Intent
intent
=
new
Intent
(
this
,
Selectedit
.
class
);
startActivity
(
intent
);
}
}
}
}
\ 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