-
Notifications
You must be signed in to change notification settings - Fork 118
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Gowtham
committed
Sep 4, 2020
1 parent
6b06afe
commit 38f9a95
Showing
26 changed files
with
379 additions
and
261 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
{ | ||
"version": 1, | ||
"artifactType": { | ||
"type": "APK", | ||
"kind": "Directory" | ||
}, | ||
"applicationId": "com.gowtham.videotrimmer", | ||
"variantName": "release", | ||
"elements": [ | ||
{ | ||
"type": "SINGLE", | ||
"filters": [], | ||
"properties": [], | ||
"versionCode": 1, | ||
"versionName": "1.0", | ||
"enabled": true, | ||
"outputFile": "app-release.apk" | ||
} | ||
] | ||
} |
26 changes: 0 additions & 26 deletions
26
app/src/androidTest/java/com/gowtham/videotrimmer/ExampleInstrumentedTest.java
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
32 changes: 32 additions & 0 deletions
32
app/src/main/java/com/gowtham/videotrimmer/SquareVideoView.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
package com.gowtham.videotrimmer; | ||
|
||
import android.content.Context; | ||
import android.util.AttributeSet; | ||
import android.widget.VideoView; | ||
|
||
import androidx.appcompat.widget.AppCompatImageView; | ||
|
||
public class SquareVideoView extends VideoView { | ||
|
||
public SquareVideoView(Context context) { | ||
super(context); | ||
} | ||
|
||
public SquareVideoView(Context context, AttributeSet attrs) { | ||
super(context, attrs); | ||
} | ||
|
||
public SquareVideoView(Context context, AttributeSet attrs, int defStyle) { | ||
super(context, attrs, defStyle); | ||
} | ||
|
||
|
||
@Override | ||
protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { | ||
super.onMeasure(widthMeasureSpec, heightMeasureSpec); | ||
|
||
int width = getMeasuredWidth(); | ||
setMeasuredDimension(width, width); | ||
} | ||
|
||
} |
Oops, something went wrong.