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 8489687
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T21:53:50+00:00 2026-06-10T21:53:50+00:00

I have styles <resources xmlns:android=http://schemas.android.com/apk/res/android> <style name=TextStyle > <item name=android:textSize>8sp</item> <item name=android:textColor>#0A0A0A</item> <item name=android:typeface>serif</item>

  • 0

I have styles

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

<style name="TextStyle" > 
        <item name="android:textSize">8sp</item> 
        <item name="android:textColor">#0A0A0A</item> 
        <item name="android:typeface">serif</item> 

</style>

 <style name="TextStylePressed" > 
        <item name="android:textSize">18sp</item> 
        <item name="android:textColor">#0A0A0A</item> 
        <item name="android:typeface">serif</item> 
        <item name="android:textStyle">bold</item> 
        <item name="android:background">#C2C2C2</item>   
</style>

</resources>

and I use selector arrow.xml

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

    <item android:drawable="@style/TextStylePressed" android:state_selected="true"/>
    <item android:drawable="@style/TextStylePressed" android:state_pressed="true"/>
    <item android:drawable="@style/TextStylePressed" android:state_focused="true"/>
    <item android:drawable="@style/TextStyle" />

</selector>

The problem is that I can not understand – if it works?

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    style="@drawable/arrow"               //  <---- Framed here
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:background="@drawable/arrow" //  <---- then here
    android:orientation="vertical" > 

</LinearLayout>

Consequently, after all attempts nothing happens

  • 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-10T21:53:51+00:00Added an answer on June 10, 2026 at 9:53 pm

    AFAIK selectors can only be defined to select a drawable and not any other attribute. If you check the doc , it compiles to StatelistDrawable, So i believe it can only be used for drawables

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

Sidebar

Related Questions

I have a LinearLayout : <LinearLayout xmlns:android=http://schemas.android.com/apk/res/android android:layout_width=match_parent android:layout_height=wrap_content style=@style/activated_item/> with style/activated_item: <style name=activated_item
i have a custom adapter for an arraylist. <?xml version=1.0 encoding=utf-8?> <LinearLayout xmlns:android=http://schemas.android.com/apk/res/android android:layout_width=wrap_content
I have the following code: <Window x:Class=kkk.MainWindow xmlns=http://schemas.microsoft.com/winfx/2006/xaml/presentation xmlns:x=http://schemas.microsoft.com/winfx/2006/xaml Title=MainWindow Height=350 Width=525> <Window.Resources> <Style
I have the following App.xaml file: <Application x:Class=MiniDeviceConfig.App xmlns=http://schemas.microsoft.com/winfx/2006/xaml/presentation xmlns:x=http://schemas.microsoft.com/winfx/2006/xaml StartupUri=MiniDeviceConfig.xaml> <Application.Resources> <ResourceDictionary> <ResourceDictionary.MergedDictionaries>
I have the below block of XAML 'BaseStyles.xaml <ResourceDictionary xmlns=http://schemas.microsoft.com/winfx/2006/xaml/presentation xmlns:x=http://schemas.microsoft.com/winfx/2006/xaml> <ResourceDictionary.MergedDictionaries> <ResourceDictionary Source=ShinyBlue.xaml/>
I have the following XAML defined. <Popup x:Class=EMS.Controls.Dictionary.MapTip xmlns=http://schemas.microsoft.com/winfx/2006/xaml/presentation xmlns:x=http://schemas.microsoft.com/winfx/2006/xaml PopupAnimation=Slide AllowsTransparency=True Placement=Mouse x:Name=root
Right, what I have is: <Window x:Class=WpfGettingThingsDone.View.MainWindow xmlns=http://schemas.microsoft.com/winfx/2006/xaml/presentation xmlns:x=http://schemas.microsoft.com/winfx/2006/xaml AllowsTransparency=True Background=Transparent WindowStyle=None Title={Binding Title}
I have a style sheet like this <?xml version=1.0 encoding=utf-8?> <xsl:stylesheet version=1.0 xmlns:xsl=http://www.w3.org/1999/XSL/Transform> <xsl:param
Device: Samsung Galaxy Tab I followed this guide: http://developer.android.com/resources/articles/window-bg-speed.html I put the background image
I have this XAML structure: <wft:Dialog x:Class=WFT.PumpSvc.Bench.Parts.PartsPullListDialog xmlns=http://schemas.microsoft.com/winfx/2006/xaml/presentation xmlns:x=http://schemas.microsoft.com/winfx/2006/xaml xmlns:wft=http://schemas.Weatherford.com> <wft:Dialog.Resources> <ResourceDictionary Source=../Resources.xaml />

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.