ERROR No resource identifier found for attribute 'textAlign' in package 'android'

by rajesh » Mon, 15 Sep 2008 15:57:41 GMT


Sponsored Links
 How to align text in android;

<TextView
android:id="@+id/mTitle"
android:textAlign="center" //Does not work ....
android:layout_width="317px"
android:layout_height="wrap_content"
android:text="GeoPepper"
android:textSize="16sp"
android:textStyle="bold"
android:layout_x="2px"
android:layout_y="1px"

Please help,

Cheers,
Shashank
--~--~---------~--~----~------------~-------~--~----~



Other Threads

1. How do you add sound to web application?

Hi Everyone!

I have just started developing Android apps. I have all the support
software running and I have uploaded my{*filter*}app to my Android phone.

I am developing using eclipse and the phoneGap plug-in to allow me to
compile and run the web app as a native application. My problem is
that I can not get embedded audio files to play on the android phone.
My phone is running the 2.2 platform.

So I am thinking that the android platform does not yet support html5
<audio> tag yet.

So, My question is how do I write java code that will allow me to play
a .wav file but be called with javascript from my web app? I have no
java experience at this time. Am I bitting off more than I am reedy
for by not knowing Java; or is there just a couple lines that I need
to add to my .java file and javascript files?

I thank you for any advice.

Thank you, Krispy1001

-- 

2. Code coverage report: "no metadata found in any of the data files"

Hi folks,

I'm trying to generate code coverage reports from the junit tests on my
project, but I keep running into this message:

"nothing to do: no metadata found in any of the data files"

I am running tests using the build script with:

ant -buildfile ...build.xml coverage

It "seems" to be executing correctly.. that is I see all the tests executing
in the console, and I see the following:

[exec] Generated code coverage data to /data/data/<package path>/files/
coverage.ec
[echo] Downloading coverage file into project directory...
[exec] 570 KB/s (14952 bytes in 0.025s)
[echo] Extracting coverage report...
[report] nothing to do: no metadata found in any of the data files
[echo] Cleaning up temporary files...
[delete] Deleting directory /<workspace path>/instrumented
[delete] Deleting: /<workspace path>/coverage.ec
[echo] Saving the report file in /<workspace path>/coverage/coverage.html

But as you can see, EMMA is reporting "no metadata found in any of the data
files"

So I don't get an HTML file at all.  There IS a coverage.ec file on the
device (emulator) but I haven't bothered trying to extract this manually.

I also see the following messages:

Duplicated project name in import. Project android_rules defined first in
/android/tools/ant/main_rules.xml and again in
/android-sdk-mac_x86/tools/ant/main_rules.xml
Trying to override old definition of task aapt
Trying to override old definition of task aidl
Trying to override old definition of task renderscript
Trying to override old definition of task apkbuilder
Trying to override old definition of task xpath
Trying to override old definition of task if
Trying to override old definition of task emmajava
Trying to override old definition of task emma

Maybe this is related??

Anyone been successful generating coverage reports?

I'm using the latest build tools (Tools rev. 10, Platform Tools rev. 3),
running on an emulated 2.1-update1 device

Thanks,

Jason.

-- 

3. Scan for wifi networks when connected to 3G

4. who invoke PhoneApp.

5. No Activity found to handle Intent

6. WebView : Prevent autocorrect on textarea

7. Supported Widget-Sizes