Commit 32ce94a80ed4c3d7623e6710cd52b6e60a43deea

  • avatar
  • Kevin James Purdy <pountaar @mo…a.sandbenders.org>
  • Tue Sep 08 22:32:45 CEST 2009
  • Tree SHA1: 30c50d5
  • Parent SHA1: 06194ae (Implemented tag view, and removed songs view (we don't really want to see a huge list of songs). Started working on search stuff a wee bit.)
  • raw diff | raw patch
Updated playlist layout definitions and added landscape.
build.xml
(1 / 1)
  
11<?xml version="1.0" encoding="UTF-8"?>
2<project name="Amdroid" default="help">
2<project name="amdroid" default="help">
33
44 <!-- The local.properties file is created and updated by the 'android' tool.
55 It contain the path to the SDK. It should *NOT* be checked in in Version
  
1<?xml version="1.0" encoding="utf-8"?>
2<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
3 android:orientation="vertical"
4 android:layout_width="fill_parent"
5 android:layout_height="fill_parent">
6
7 <ListView android:id="@+id/list"
8 android:layout_alignParentTop="true"
9 android:layout_width="fill_parent"
10 android:layout_height="180sp" />
11
12</LinearLayout>
  
3333
3434 <ImageButton android:id="@+id/prev" style="@android:style/MediaButton.Previous" />
3535 <ImageButton android:id="@+id/pause" style="@android:style/MediaButton.Play" />
36 <ImageButton android:id="@+id/next" style="@android:style/MediaButton.Next" />
36 <ImageButton android:id="@+id/next" style="@android:style/MediaButton.Next" />
3737
3838 </LinearLayout>
3939
  
88 android:layout_alignParentTop="true"
99 android:layout_width="fill_parent"
1010 android:layout_height="340sp" />
11
11
1212</LinearLayout>
  
4242 setContentView(R.layout.dash);
4343
4444 /* We need a listener for all of the buttons */
45
4645 Button temp;
4746 temp = (Button) findViewById(R.id.artists);
4847 temp.setOnClickListener(this);
5151 temp.setOnClickListener(this);
5252 temp = (Button) findViewById(R.id.playlists);
5353 temp.setOnClickListener(this);
54
55 //If they tap the "Now Playing" section, take them to the playlist.
54
55 //If they tap the "Now Playing" section, take them to the playlist.
5656 findViewById(R.id.nowplaying).setOnClickListener(this);
5757
5858 /* Verify a valid session */
  
1package com.sound.amdriod;
2
3import android.app.Service;
4
5import android.content.Intent;
6
7import android.os.Handler;
8import android.os.IBinder;
9import android.os.Message;
10
11public class playerService extends Service {
12 private IBinder mBinder;
13 private boolean mServiceInUse = false;
14
15 @Override
16 public IBinder onBind(Intent intent) {
17 //mDelayedStopHandler.removeCallbacksAndMessages(null);
18 mServiceInUse = true;
19 return mBinder;
20 }
21
22 @Override
23 public void onRebind(Intent intent) {
24 //mDelayedStopHandler.removeCallbacksAndMessages(null);
25 mServiceInUse = true;
26 }
27
28}