Where do I get the selection color?

by Mariano Kamp » Wed, 11 Mar 2009 20:39:45 GMT


Sponsored Links
 Hi,

  I'd like to use the standard selection color when clicking on a list item.
Where do I get it from?

Cheers,
Mariano

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



Where do I get the selection color?

by Romain Guy » Thu, 12 Mar 2009 00:57:09 GMT


 It's not a single color, but a gradient defined in a 9patch.






-- 
Romain Guy
Android framework engineer
romain...@android.com

Note: please don't send private questions to me, as I don't have time
to provide private support.  All such questions should be posted on
public forums, where I and others can see and answer them

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


Sponsored Links


Where do I get the selection color?

by Mariano Kamp » Thu, 12 Mar 2009 03:47:21 GMT


 Ah, thanks -
where can I find the gradient defined in a 9patch?






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



Other Threads

1. Noser Academy for Android

Hello everybody,

I'd like to invite you to joining the first incarnation of the Noser Academy
for Android. It will take place September 3-4 2009 in Zurich, Switzerland.
The event is meant to be a "Commercialization Boot Camp" and, as the name
implies, mainly targeted at companies that want to use Android in a
commercial context.

Topics include application and service development as well as porting and
customizing Android. The schedule and the list of speakers are not totally
set in stone. We have some additional OHA speakers that we will announce
soon, and we also welcome other companies to contribute talks to the event.

You can find the Academy website here

http://www.noseracademy.com<https://webmail.noser.com/owa/redir.aspx?C=fd1b9862ea9347eaae799113758167dc&URL=http%3a%2f%2fwww.noseracademy.com>

and the official press release here

http://www.nosertomarket.com/press/NoserAcademy09June2009FINAL.pdf<https://webmail.noser.com/owa/redir.aspx?C=fd1b9862ea9347eaae799113758167dc&URL=http%3a%2f%2fwww.nosertomarket.com%2fpress%2fNoserAcademy09June2009FINAL.pdf>

Looking forward to seeing you in Zurich this fall!

Best regards from Switzerland,
Joerg

--
Joerg Pleumann
Head of Android Development
Noser Engineering AG
Switzerland

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

2. when set android:layout_below = "@id/" then margin_bottom is not working for the Button

i want the margin_bottom to work for those Last two Buttons.Botton c
And Botton d
when i set android:layout_below = "@id/answer_a" then margin_Bottom
does not work

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

        <ImageView
                        android:id="@+id/bar"
                        android:layout_width="wrap_content"
                        android:layout_height="wrap_content"
                        android:src="@drawable/bar"
                        android:layout_alignParentTop="true"
                />
        <ImageView
                        android:id="@+id/sound"
                        android:layout_width="wrap_content"
                        android:layout_height="wrap_content"
                        android:src="@drawable/volume"
                        android:layout_alignParentLeft="true"
                        android:paddingTop = "2dip"
                        android:paddingBottom = "2dip"
                        android:paddingLeft = "10dip"

                />

                <TextView
                        android:id="@+id/level"
                        android:layout_width="wrap_content"
                        android:layout_height="wrap_content"
                        android:text="Level: 1"
                        android:paddingTop = "2dip"
                        android:paddingBottom = "2dip"
                        android:paddingLeft = "90dip"
                        android:textColor = "#000000"

                />
                <TextView
                        android:id="@+id/score"
                        android:layout_width="wrap_content"
                        android:layout_height="wrap_content"
                        android:text="Score: "
                        android:layout_toRightOf = "@+id/level"
                        android:paddingTop = "2dip"
                        android:paddingBottom = "2dip"
                        android:paddingLeft = "20dip"
                />

                <TextView
                        android:id="@+id/point"
                        android:layout_width="wrap_content"
                        android:layout_height="wrap_content"
                        android:text="0"
                        android:layout_toRightOf = "@+id/score"
                        android:paddingTop = "2dip"
                        android:paddingBottom = "8dip"
                        android:paddingLeft = "0dip"
                        android:textColor = "#000000"
                />
                <ImageView
                        android:id="@+id/close"
                        android:layout_width="wrap_content"
                        android:layout_height="wrap_content"
                        android:src="@drawable/close"
                        android:layout_alignParentRight="true"
                        android:paddingTop = "2dip"
                        android:paddingBottom = "2dip"
                        android:paddingRight = "10dip"

                />
        <ViewFlipper
                        android:id="@+id/flipper"
                android:layout_width="fill_parent"
                android:layout_height="fill_parent"
            >
                    <ImageView
                        android:id="@+id/error"
                        android:layout_width="fill_parent"
                        android:layout_height="fill_parent"
                        android:background = "@drawable/red_img"
                    />
        </ViewFlipper>
                <ScrollView
                    android:id ="@+id/svScreen1"
                    android:layout_width="fill_parent"
                    android:layout_height="fill_parent"
                    android:scrollbarThumbVertical="@drawable/scrollbar_thumb"
                    
android:scrollbarTrackVertical="@drawable/scrollbar_invisible"
                    android:scrollbarStyle="outsideOverlay"
                    android:layout_below = "@id/bar"
                 >

                <RelativeLayout 
xmlns:android="http://schemas.android.com/apk/res/
android"
                        android:layout_width="fill_parent"
                android:layout_height="fill_parent"
        >

        <TextView
                        android:id="@+id/trick"
                        android:layout_width="fill_parent"
                        android:layout_height="wrap_content"
                        android:text="111111111"
                        android:layout_marginLeft="5px"
                        android:layout_marginRight="5px"
                        android:layout_centerHorizontal="true"
                        android:gravity = "center"
                        android:layout_below = "@id/bar"
                />
                <TextView
                        android:id="@+id/question1"
                        android:layout_width="wrap_content"
                        android:layout_height="wrap_content"
                        android:layout_below="@id/trick"
                        android:text="hi"
                        android:layout_centerHorizontal="true"
                        android:textColor="#243778"
                        android:textSize="20px"
                        android:textStyle="bold"
                        />
                <TextView
                        android:id="@+id/question"
                        android:text=""
                        android:layout_width="fill_parent"
                        android:layout_height="wrap_content"
                        android:layout_marginLeft="5px"
                        android:layout_marginRight="5px"
                        android:layout_below="@id/trick"
                        android:gravity = "center"
                />
                        <Button
                                android:layout_height ="wrap_content"
                                android:layout_width = "wrap_content"
                                android:id="@+id/answer_a"
                        android:text="ans a"
                        android:layout_below = "@id/question"
                        android:layout_marginLeft = "15dip"
                        android:layout_marginTop = "4dip"
                        android:textSize = "20dip"
                        android:background = "@drawable/my_button1"

                        />

                <Button
                        android:layout_height ="wrap_content"
                                android:layout_width = "wrap_content"
                                android:id="@+id/answer_b"
                                android:text="ans b"
                        android:layout_toRightOf = "@id/answer_a"
                        android:layout_below = "@id/question"
                        android:layout_marginTop = "4dip"
                        android:layout_marginLeft = "30dip"
                        android:textSize = "20dip"
                        android:background = "@drawable/my_button1"

                 />

                        <Button
                                android:layout_height ="wrap_content"
                                android:layout_width = "wrap_content"
                                android:text="ans c"
                        android:id="@+id/answer_c"
                        android:layout_below = "@id/answer_a"
                        android:layout_marginTop = "5dip"
                        android:layout_marginLeft = "15dip"

                        android:textSize = "20dip"
                        android:background = "@drawable/my_button1"
                />

               <Button
                        android:layout_height ="wrap_content"
                                android:layout_width = "wrap_content"
                                android:text="ans d"
                        android:id="@+id/answer_d"
                        android:layout_below = "@id/answer_b"
                        android:layout_toRightOf = "@id/answer_c"
                        android:layout_marginTop = "5dip"
                        android:layout_marginLeft = "30dip"
                        android:layout_alignBottom="@+id/next_level"
                        android:textSize = "20dip"


              />

            </RelativeLayout>
        </ScrollView>
         <ImageView
                android:id="@+id/resume"
                android:src = "@drawable/continue_1"
                android:layout_height="wrap_content"
                android:layout_width="wrap_content"
                android:layout_centerVertical = "true"
                android:layout_alignParentRight = "true"
                android:padding = "6dip"
        />
        <Button
                        android:layout_height ="wrap_content"
                                android:layout_width = "wrap_content"
                                android:text=""
                        android:id="@+id/next_level"
                        android:layout_alignParentBottom = "true"
                                android:layout_alignParentRight = "true"
                                android:layout_marginBottom = "5dip"
                                android:layout_marginRight = "10dip"
                                android:background="@drawable/next_level"
              />
              <Button
                        android:layout_height ="wrap_content"
                                android:layout_width = "wrap_content"
                                android:text=""
                        android:id="@+id/last_question"
                        android:visibility="gone"
                        android:layout_alignParentBottom = "true"
                                android:layout_alignParentRight = "true"
                                android:background="@drawable/s_butt_drk"
                                android:layout_marginRight = "5dip"
                                />
              <TextView
              android:id="@+id/congrats_onlevel"
              android:layout_height ="wrap_content"
                  android:layout_width = "wrap_content"
                  android:layout_centerHorizontal="true"
                  android:gravity = "center"
                  android:layout_marginTop="75dip"
                  />
</RelativeLayout>
--~--~---------~--~----~------------~-------~--~----~

3. dont like long presses...he..he...

4. AnalogClock AppWidget dial.

5. how to set intent flags

6. Android Application Framework

7. Sending Email from Android application