protected member variable mScrollX not accessible to subclasses of ViewGroup

by Marco Nelissen » Fri, 02 Oct 2009 22:17:54 GMT


Sponsored Links
 


Does it actually fail to build, or are you just talking about the
syntax highlighting?
mScrollX is a protected member of View, so should be accessible to any subclass.

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



protected member variable mScrollX not accessible to subclasses of ViewGroup

by Romain Guy » Fri, 02 Oct 2009 23:36:36 GMT


 mScrollX is not part of the public API. Use getScrollX() and
scrollBy()/scrollTo() to change it.







-- 
Romain Guy
Android framework engineer
romain...@android.com

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

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


Sponsored Links


Other Threads

1. NullPointerException in SmsManager.sendTextMessage

Hello

I got a NullPointerException in SmsManager.java while trying to send
an sms. CallStack:

02-15 07:55:22.646 E/smsETH  (32500): Error while sending message
02-15 07:55:22.646 E/smsETH  (32500): java.lang.NullPointerException
02-15 07:55:22.646 E/smsETH  (32500): at
android.telephony.gsm.SmsManager.sendTextMessage(SmsManager.java:131)
02-15 07:55:22.646 E/smsETH  (32500): at
android.telephony.gsm.SmsManager.sendTextMessage(SmsManager.java:74)
02-15 07:55:22.646 E/smsETH  (32500): at
ch.ethz.smseth.PhoneSender.send(PhoneSender.java:34)
02-15 07:55:22.646 E/smsETH  (32500): at
ch.ethz.smseth.service.SenderService$Sender.run(SenderService.java:
116)
02-15 07:55:22.646 E/smsETH  (32500): at
java.lang.Thread.run(Thread.java:1058)

The exception occured on HTC Hero running Android 1.5 (Cupcake). The
method is invoked as follows:

SmsManager manager = SmsManager.getDefault();
manager.sendTextMessage(destination, null, message, pending, null);

where destination, message and pending is not null.

Normally, the method just works. So I tried to reproduce the error but
it wasn't possible. I had a look at the source code of SmsManager.java
(http://android.git.kernel.org/?p=platform/frameworks/
base.git;a=blob;f=telephony/java/android/telephony/gsm/
SmsManager.java;h=c63b5303309bd1f8adb62ddeb03fbb5187dac089;hb=cupcake-
release) but it seems the line numbering is not the same.

Any ideas? Another hint is that it happened in a car while driving at
120 km/h, maybe the connection wasn't very stable.

-- 

2. ADC3?

I just gotta ask...

Does anyone have any knowledge of an upcoming ADC3?  :)

-- 

3. Getting an Activity object from ActivityManager or ComponentName

4. Getting an Activity object from ActivityManager or ComponentName

5. Getting an Activity object from ActivityManager or ComponentName

6. Getting an Activity object from ActivityManager or ComponentName

7. Force a connection OTA (even if you have a WiFi connection).