Private
Public Access
1
0

Start getting playlist UI done so player service can be tested for it's basics.

This commit is contained in:
Kevin Whitaker
2016-01-16 23:21:30 -05:00
parent 14ae1a478b
commit 55d189f95c
2 changed files with 39 additions and 0 deletions

View File

@@ -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.
}

View 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>