want to take the height and width of editText from String file

by Mark Murphy » Mon, 19 May 2008 20:38:13 GMT


Sponsored Links
 > i want to declare the constant value for the  height and width for

Use the android:height and android:width properties:

 http://code.google.com/android/reference/android/widget/TextView.html 

-- 
Mark Murphy (a Commons Guy)
 http://commonsware.com 
The Busy Coder's Guide to Android Development -- coming in June 2008!


--~--~---------~--~----~------------~-------~--~----~



Other Threads

1. can my service still be local if I need to be able to access it from an app and a desktop widget?

Widgets don't run in home, the only code associated with them runs in your
own process.  (And they really don't "run" much at all, what you are
providing is a static view hierarchy of standard view components that are
added to home's window.  No code at all of yours runs there.)






-- 
Dianne Hackborn
Android framework engineer
hack...@android.com

Note: please don't send private questions to me, as I don't have time to
provide private support, and so won't reply to such e-mails.  All such
questions should be posted on public forums, where I and others can see and
answer them.

--~--~---------~--~----~------------~-------~--~----~

2. SDK build fails

With my platform tree I did a "repo sync" and then tried to make and
got a build error:

  (aprox 2100 zulu wed 30 sept 2009)
  $ repo sync
  $ . build/envsetup
  $ lunch
  $ make clean
  $ make sdk

============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=1.6
TARGET_PRODUCT=generic
TARGET_BUILD_VARIANT=eng
TARGET_SIMULATOR=false
TARGET_BUILD_TYPE=release
TARGET_ARCH=arm
HOST_ARCH=x86
HOST_OS=linux
HOST_BUILD_TYPE=release
BUILD_ID=Donut
============================================
build/core/copy_headers.mk:15: warning: overriding commands for target
`out/target/product/generic/obj/include/libpv/getactualaacconfig.h'
build/core/copy_headers.mk:15: warning: ignoring old commands for
target `out/target/product/generic/obj/include/libpv/
getactualaacconfig.h'
Removing from sdk:
: out/target/product/generic/system/bin/dbus-daemon
: out/target/product/generic/system/bin/iptables
: out/target/product/generic/system/lib/libdbus.so
: out/target/product/generic/system/xbin/dbus-monitor
: out/target/product/generic/system/xbin/dbus-send
: out/target/product/generic/system/xbin/opcontrol
: out/target/product/generic/system/xbin/oprofiled
make: *** No rule to make target `out/host/linux-x86/framework/
junit.jar', needed by `out/host/common/obj/JAVA_LIBRARIES/
hosttestlib_intermediates/javalib.jar'.  Stop.

is this a known issue?

--~--~---------~--~----~------------~-------~--~----~

3. List of ports.

4. Java Model Exception when cleaning project

5. SDK 1.6, ADT 0.9.3, Eclipse 3.4.2: Problem with Android Editors

6. Why is Google launching Micello on the iPhone?

7. Why is Google launching Micello on the iPhone?