Created
October 31, 2016 23:59
-
-
Save ojw28/a57807d75852e088e2c5b00f41f1e578 to your computer and use it in GitHub Desktop.
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
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" | |
android:layout_width="match_parent" | |
android:layout_height="match_parent"> | |
<ImageButton android:id="@id/exo_play" | |
android:layout_width="100dp" | |
android:layout_height="100dp" | |
android:layout_gravity="center" | |
android:background="#CC000000" | |
style="@style/ExoMediaButton.Play"/> | |
<ImageButton android:id="@id/exo_pause" | |
android:layout_width="100dp" | |
android:layout_height="100dp" | |
android:layout_gravity="center" | |
android:background="#CC000000" | |
style="@style/ExoMediaButton.Pause"/> | |
</FrameLayout> |
I found these in the code, so if you have view's matching these, you'll be all good to go.
durationView = (TextView) findViewById(R.id.exo_duration);
positionView = (TextView) findViewById(R.id.exo_position);
timeBar = (TimeBar) findViewById(R.id.exo_progress);
playButton = findViewById(R.id.exo_play);
pauseButton = findViewById(R.id.exo_pause);
previousButton = findViewById(R.id.exo_prev);
nextButton = findViewById(R.id.exo_next);
rewindButton = findViewById(R.id.exo_rew);
fastForwardButton = findViewById(R.id.exo_ffwd);
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
can you give its full working example. in which we control all media controls and video view. like PlaybackControlView