Start getting playlist UI done so player service can be tested for it's basics.
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
package com.magnatune.eyecreate.companionformagnatune.fragments;
|
||||
|
||||
import android.os.Bundle;
|
||||
import android.support.annotation.Nullable;
|
||||
import android.support.v4.app.Fragment;
|
||||
import android.view.LayoutInflater;
|
||||
import android.view.View;
|
||||
import android.view.ViewGroup;
|
||||
import android.widget.ListView;
|
||||
|
||||
import com.magnatune.eyecreate.companionformagnatune.R;
|
||||
import com.magnatune.eyecreate.companionformagnatune.service.Playlist;
|
||||
|
||||
public class PlaylistFragment extends Fragment {
|
||||
|
||||
ListView playlistUI;
|
||||
Playlist playlist;
|
||||
|
||||
@Nullable
|
||||
@Override
|
||||
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
|
||||
View v = inflater.inflate(R.layout.fragment_playlist, container, false);
|
||||
playlistUI = (ListView) v.findViewById(R.id.list);
|
||||
//TODO:finish getting UI set up.
|
||||
return v;
|
||||
}
|
||||
|
||||
//TODO:put in functions for buttons to send to player service and try to keep updated to it's state.
|
||||
}
|
||||
10
app/src/main/res/layout/fragment_playlist.xml
Normal file
10
app/src/main/res/layout/fragment_playlist.xml
Normal file
@@ -0,0 +1,10 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:orientation="vertical" android:layout_width="match_parent"
|
||||
android:layout_height="match_parent">
|
||||
<ListView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:id="@+id/list"/>
|
||||
<!-- TODO:put in media controls here -->
|
||||
</LinearLayout>
|
||||
Reference in New Issue
Block a user