绛斿: fillpolygon for Ca nvas?

by 瀛欏叾楣 » Wed, 22 Jul 2009 01:25:22 GMT


Sponsored Links
 -----  -----



 monsoon 





<steve...@unimelb.edu.au>
€ 2009018:45
 Android Beginners <android-beginners@googlegroups.com>
: [android-beginners] fillpolygon for Canvas?


It seems a bit odd to me that there is no fillpolygon(...) method in
the Canvas class?

I'm a bit new to graphics on Android, but it seems I must be missing
something here?

I.e. The best I can make out is that I'll have to write my own version
of a fillpolygon (which is a very standard sort of need), using a Path
and moveto and lineto and drawPath???

Am I heading down the right track, or have I missed some 'really
obvious' method that named something entirely different from
fillpolygon but does the same thing?

Thanks in advance for any help:)



[


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



Other Threads

1. Android creating sound

Is there any example source that shows how to create Android sound? I
am interested in pitch and duration of sounds. Any advice is
appreciated.

--

2. RelativeLayout with items inside a TableLayout

I am trying to align a label with an item inside a TableLayout. The
attributes for layout have no effect in relation to the item in the
table (it aligns with the table itself properly). Everything is id'd
properly and there are no syntax errors. Is this a bug or is this by
design? Is there a way around it (while still using the table)? I do
not want to insert it in a row, I want the real table to be centered
vertically on the screen as it is and then the label above it. Thank
you.

<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout
        xmlns:android="http://schemas.android.com/apk/res/android"
        android:id="@+id/tree_information_screen"
        android:layout_width="fill_parent"
        android:layout_height="fill_parent">

        <TableLayout
                android:id="@+id/information_table"
                android:layout_width="fill_parent"
                android:layout_height="wrap_content">

                <TableRow>
                <TextView
                    android:text="Species:"
                    android:padding="3dip"
                    android:layout_gravity="left"/>
                <Spinner
                                android:id="@+id/species_spinner"
                                android:layout_width="85dip"
                                android:layout_height="wrap_content"
                                
android:prompt="@string/species_spinner_prompt"/>
                </TableRow>
        </TableLayout>

        <TextView
                android:id="@+id/arbor_link_label"
                android:layout_width="fill_parent"
                android:layout_height="wrap_content"
                android:layout_marginBottom="3dip"
                android:layout_above="@id/information_table"
                android:layout_alignLeft="@id/species_spinner"
                android:text="Arbor Day Tree Identification Help"/>

</RelativeLayout>

--

3. adb won't start

4. Getting getViewTypeCount() to fire?

5. Filtering efficiently a Listview and make items clickable

6. having trouble to use network speed emulation in android emulator

7. more explanation