Created
February 11, 2018 06:56
-
-
Save AasemJS/d4647684d54d88d27edec2b477124042 to your computer and use it in GitHub Desktop.
Video Play demo
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
<?xml version="1.0" encoding="utf-8"?> | |
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" | |
xmlns:tools="http://schemas.android.com/tools" | |
android:id="@+id/activity_main" | |
android:layout_width="match_parent" | |
android:layout_height="match_parent" | |
android:paddingBottom="@dimen/activity_vertical_margin" | |
android:paddingLeft="@dimen/activity_horizontal_margin" | |
android:paddingRight="@dimen/activity_horizontal_margin" | |
android:paddingTop="@dimen/activity_vertical_margin" | |
tools:context="com.aasemjs.videoplaydemo.MainActivity"> | |
<LinearLayout | |
android:orientation="vertical" | |
android:layout_width="match_parent" | |
android:layout_height="match_parent"> | |
<Button | |
android:text="Play" | |
android:layout_width="match_parent" | |
android:layout_height="wrap_content" | |
android:id="@+id/btnPlay" | |
android:onClick="playVideo" /> | |
<VideoView | |
android:layout_width="match_parent" | |
android:layout_height="wrap_content" | |
android:id="@+id/videoView" /> | |
</LinearLayout> | |
</RelativeLayout> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment