Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8537751
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T10:58:30+00:00 2026-06-11T10:58:30+00:00

my source selector <selector xmlns:android=http://schemas.android.com/apk/res/android> <item android:drawable=@drawable/button_pressed android:state_focused=true android:state_pressed=true></item> <item android:drawable=@drawable/button_selected android:state_activated=true></item> <item android:drawable=@drawable/button_normal></item>

  • 0

my source selector

<selector xmlns:android="http://schemas.android.com/apk/res/android">

    <item android:drawable="@drawable/button_pressed"  android:state_focused="true" android:state_pressed="true"></item>
    <item android:drawable="@drawable/button_selected" android:state_activated="true"></item>
    <item android:drawable="@drawable/button_normal"></item>

</selector>

an example of how I set the style – button_normal.xml

<shape xmlns:android="http://schemas.android.com/apk/res/android" >

    <solid android:color="#F1F4F2" />

    <corners
        android:bottomLeftRadius="7dip"
        android:topLeftRadius="7dip" />

</shape>

how in the “shape” set the size and color of the text?
maybe there is another way to set the size and color for the selector?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T10:58:31+00:00Added an answer on June 11, 2026 at 10:58 am

    This way is just for the background of the button.

    You should use another selector on the
    android:textColor="@color/your_color_selector" and put this file under the res/color folder

    Here is an example:

    your_color_selector.xml

    <item android:state_pressed="true" android:color="@android:color/blue"/>
    <item android:state_enabled="true" android:state_selected="true" android:color="@android:color/white"/>
    <item android:color="@android:color/black"/>
    

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am using Knockout JS in combination with this combobox extension for jQuery: http://source.dellsala.com/jquery-combobox/demo/
Having some trouble with an ImageButton with a Selector.xml as the drawable source, keep
Possible Duplicate: -[__NSCFDictionary JSONRepresentation]: unrecognized selector sent to instance I use SBJson ( http://stig.github.com/json-framework/
var _thumb = $('.galleria img[@rel='+_src+']'); Full source here Is it a deprecated selector?
(source: flickr.com ) Hi again everyone :) So today I'm trying to basically create
I need to customize the combobox widget build from the jQuery UI Autocomplete http://jqueryui.com/demos/autocomplete/#combobox
I downloaded the script from emposha.com/javascript/fcbklistselection-like-facebook-friends-selector.html and made a few modifications, as the source
I used this source http://www.cats.rwth-aachen.de/library/programming/cocoa to create my custom sheet. I created a NSPanel
How many times have we seen this type of selector: List Box Selector http://geekswithblogs.net/images/geekswithblogs_net/dotNETvinz/MoveItemsListBox.jpg
-(void)invokeMethod { NSMethodSignature * sig = [[source class] instanceMethodSignatureForSelector:@selector(mySelector:)]; NSInvocation * invocation = [NSInvocation

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.