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

  • SEARCH
  • Home
  • 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 4072194
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T16:51:15+00:00 2026-05-20T16:51:15+00:00

I have a few custom views in my Android project and I’ve added the

  • 0

I have a few custom views in my Android project and I’ve added the relevant details to the attrs.xml file. And now I can implement my objects through XML. This works fine.

How do I style these elements? When I try to use my custom attributes in the styles.xml is get an error “No resource found that matches the given name:”

For using the custom views in normal xml developement I use xmlns:app=”http://schemas.android.com/apk/res/bla.bla.bla”. What is the correct for use in styles?

This is what my style looks like currently

<style name="Journey_DaySelect_Sunday">
    <item name="app:onImage">@drawable/day_sunday_selected</item>
    <item name="app:offImage">@drawable/day_sunday</item>
</style>
  • 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-05-20T16:51:15+00:00Added an answer on May 20, 2026 at 4:51 pm

    After more intensive searching on Google I gave up finding it answered elsewhere, and by chance tried using the absolute namespace of my generated R file it worked. May this solve all your problems.

    USE THE NAMESPACE CONTAINING YOUR R FILE

    <style name="Journey_DaySelect_Sunday" parent="Journey_DaySelect">
        <item name="AppZappy.NIRailAndBus:onImage">@drawable/day_sunday_selected</item>
        <item name="AppZappy.NIRailAndBus:offImage">@drawable/day_sunday</item>
    </style>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have few custom controls (image views) added programmatically to table cell. I want
I have created a small flash CS4 project that has a few custom components
I have a solution with many projects. One project contain few custom components. One
I am new to Android development and I have a question regarding custom views
I have written a few MSBuild custom tasks that work well and are use
I have a simple C++ DLL that implements a few custom actions for a
I have a few models that need to have custom find conditions placed on
I wrote few custom view helpers but I have a little trouble using them.
I have a custom class that I've written that extends ImageView (for Android Java).
I have few asynchronous tasks running and I need to wait until at least

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.