Music Player?

by cwj » Wed, 11 Nov 2009 23:06:31 GMT


Sponsored Links
 I'm working on a music player in android phone, is there any source
code i can refer? For example, simple coding to play a music? Thanks.

--



Other Threads

1. Customizing layout of CHOICE_MODE_MULTIPLE lists

Hi!
I've been fiddling around with the android lists trying to customize
the layout of the items I put in my choice-multiple list.

The default layout for this is the following:

myItem    [ ]
myItem    [x]
myItem    [ ]

but I want to put the checked/unchecked item in front of myItem like
this:

[ ] myItem
[x] myItem
[ ] myItem

I have "sort-of" solved it but I feel it is a bit of a hack. Here is
what I did:

1. Copied the simple_list_item_multiple_choice.xml to my project
2. Modified it to this:
<CheckedTextView xmlns:android="http://schemas.android.com/apk/res/
android"
    android:id="@android:id/text1"
    android:layout_width="fill_parent"
    android:layout_height="?android:attr/listPreferredItemHeight"
    android:textAppearance="?android:attr/textAppearanceLarge"
    android:gravity="center_vertical"
    <!-- android:checkMark="?android:attr/
listChoiceIndicatorMultiple"  Removed-->
    android:paddingLeft="6dip"
    android:paddingRight="6dip"
    android:drawableLeft="?android:attr/listChoiceIndicatorMultiple"
<!-- Added by me-->
/>
3. set it to my listadapter (arrayadapter).

This creates the look I want for my multiple choice list but I feel
this is sort of a hack since I no longer set the "android:checkmark"-
attribute. The icon I added appears and reacts to clicks in the
correct way.

So, to sum up: Is there a corrrect way move the checkbox or is this
it?

Br
Grindah

--~--~---------~--~----~------------~-------~--~----~

2. Adding icon to a contextMenu

Hi,

While Contextmenu items support calling setIcon :

               menu.add(0, ....).setIcon( R.drawable.xxx);

the icon never gets displayed.

Is this a bug? a feature?

Is there a reasonably priced workaround for getting icons onto context
menus?

TIA,
GiladH
--~--~---------~--~----~------------~-------~--~----~

3. Confused about system services / processes / applications

4. Android SDK 1.0 Port to PXA270 Init Seg Fault

5. How to rotate my view

6. Why is the market listing my app as exactly twice the size of the APK I uploaded?

7. Long click on Button