Commit 49b29ff2 authored by charley.punshon's avatar charley.punshon

Song screen view with method added to Play button.

parent 82b73eab
......@@ -2,6 +2,7 @@ package com.example.soulfood_assignment2;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.TextView;
public class SongInformationPage extends AppCompatActivity {
......@@ -24,4 +25,10 @@ public class SongInformationPage extends AppCompatActivity {
tag2View.setText(tag2);
tag3View.setText(tag3);
}
public void songPlayOnClick(View view) {
SpotifyClass spotifyClass = MainActivity.spotifyClass;
spotifyClass.pauseSong();
spotifyClass.playSong("");
}
}
......@@ -63,6 +63,7 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginBottom="96dp"
android:onClick="songPlayOnClick"
android:text="Button"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toStartOf="@+id/pauseView"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment