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

The Archive Base Latest Questions

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

I got this piece of code from a book viz. sams teach yourself android

  • 0

I got this piece of code from a book viz. “sams teach yourself android application development in 24 hours.” This is a layout of a main Menu.

   <TextView 
    xmlns:android=”http://schemas.android.com/apk/res/android” 
    android:layout_width=”fill_parent” 
    android:textSize=”@dimen/menu_item_size” 
    android:text=”test string” 
    android:layout_gravity=”center_horizontal” 
    android:layout_height=”wrap_content” 
    android:shadowRadius=”5” 
    android:gravity=”center” 
    android:textColor=”@color/menu_color” 
    android:shadowColor=”@color/menu_glow” 
    android:shadowDy=”3” 
    android:shadowDx=”3” />

I tried this code in Droid draw. It’s showing the error “Open qoute is expected for attribute”{1}” associated with an element type “xmlns:android””.
I am very new to Android and Java. Can anybody please tell me how to solve this error? Thanks in advance.(I am sing eclipse in win 7.)

EDIT : I understood. ” this type of quote was creating problem. I replaced with “. But now it is showing “Error no layout”. Can anybody check the code please?

  • 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-20T15:15:16+00:00Added an answer on May 20, 2026 at 3:15 pm

    Can you post a little more details, perhaps a few lines of the code. I think it is because you may have just copy pasted the code and sometimes the editor would confuse the quote””. Just delete the lines you are getting error in and type it in manually. It may solve the problem. Also check if you have implemented “” properly (open/close). If it doesn’t solve it, then it will be easy if you post the code so I can have a look.

    Edit:
    Okay, The problem is the code you are using. Instead of using

    xmlns:android=”http://schemas.android.com/apk/res/android” 
    

    Use,

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

    Notice the different quote in these two lines. That is the standard quote. Like I said, it happens mainly when you copy paste a code. So, just type it in manually, it will work.

    On the second error: Have you created all the @color, @dimen resources that you are referring to?

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

Sidebar

Related Questions

I got this piece of Assembly code extracted from some piece of software, but
Hey, I've got this nice little piece of code, much like all the other
I got this flash application where you can click a link while watching a
I got this error when I tried to compile an application that includes the
I got this doubt while writing some code. Is 'bool' a basic datatype defined
I got this question from this discussion . A method call like object.m does
Ok so I got this piece of vendor software that they said should be
I got this error today when trying to open a Visual Studio 2008 project
I got this output when running sudo cpan Scalar::Util::Numeric jmm@freekbox:~/bfwsandbox/sa/angel/astroportal/dtu8e/resources$ sudo cpan Scalar::Util::Numeric [sudo]
I got this síngleton cache object and it exposes an IEnumerable property which just

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.