Hi,
I have a customized list which is extended from AbsSpinner class. It
has 7 items only as background images. I want to implement a touch
state hgihlight feature. Such as when a user touch any specific list
images then its corresponding (image a different) is replaced for few
Milli-Seconds
hi,
can anyone tell me how can we make imagefile like abc,img in android.
(except giving extension while file writing).
regards,
hitendrasinh gohil
--
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to
- Original Message -
From: Miguel Morales
To: android-developers@googlegroups.com
Sent: Friday, April 29, 2011 9:30 PM
Subject: Re: [android-developers] php enviroment
http://www.phpforandroid.net/ first link when googling php + android
On Thu, Apr 28, 2011 at 6:09 AM, Knutsford
On Apr 29, 1:20 pm, lbendlin l...@bendlin.us wrote:
If the touchscreen on the Nexus One acts up there's a simple short term
remedy. Put the device into standby and wake it up again. That seems to
recalibrate the screen.
My N1 has regular touch screen problems that are resolved by turning
the
On 29 April 2011 20:46, TreKing treking...@gmail.com wrote:
Please i need help its urgent any help
WHAT KIND OF RESPONSE DO YOU EXPECT IN 4 MINUTES?
Urgent? :)
Regards,
Marcin Orlowski
*Tray Agenda http://bit.ly/trayagenda* - keep you daily schedule handy...
*Date In Tray*
Why would you need to handle the rotation changed event in the first
place? I have a complex state data as well in some of my activities,
but I have no problems saving it using the normal callbacks.
On Apr 29, 2:54 am, Erik e...@browne.name wrote:
I have an Activity with different layouts for
Hi All,
Hi Chia-CHi Yeh, I cc you since I found your kernel commit which is enable
VPN stuff.
I'm doing enable VPN function in an android froyo/gingerbread porting.
After apply android pppol2tp, pppopptp related patch in android/common.git,
I can success enable PPTP protocol, but I meet problem
Hhhmmm, maybe you should try
newUpdate(ContactsContract.Data.CONTENT_URI)
instead of
newUpdate(ContactsContract.Contacts.CONTENT_URI)
I hope it helps :-)
--
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email
I'm modifying the app Gallery3D on android. Meet an issue about thread.
There have a DataSouce class which child class object hold the datasouce.
MediaFeed is implement the Runnable, and also have a datasouce object.
Now, a create a new thread in the datasouce which i wan't to get other
data
Hello,
I have declared the launch mode of my activity to be singleTask. If I
launch my application, press the home button, go to an email client
(gmail in this case) preview an attachment using my application, I
am experiencing a security exception on Android versions 2.3 later,
which says that
To add, the exception occurs on this line-
mContext.getContentResolver().openInputStream(intent.getData());
where mContext is the activity context.
-Akshay
On Apr 30, 2:14 pm, Akshay Goel xpectro...@gmail.com wrote:
Hello,
I have declared the launch mode of my activity to be singleTask. If
Hi All,
After apply this patch https://lkml.org/lkml/2011/1/2/82
pure l2tp VPN is working.
But I found L2TP+IPSec PSK, and L2TP+IPSec CRT profile is not working.
I can't capture any package in tcpdump, I suspect some crypto related
config.
could you give me some suggestions ?
Thanks.
log is
Hello evebody.
First of all, excuse me for my English, but I'm not English-speaker.
I'm working on a project, and I need to find or develop a VP8 player
by RTP running on Android. That's means an Android application abble
to read VP8 videos by network (RTP protocol).
I found ffplay that can open
paint.measureText(text) return the width, how can i get the height
of the text?
--
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send
In my Android App I send email messages with images attached.
Using the Intent system to send it, I can do one of the following two
things:
1) Specify type as message/rfc822 so that ONLY email applications
are shown in the Chooser.
Inconvenience: I cannot specify the mime type of the image I
What books do you recommend for learning how to develop android apps - I don't
want to relearn Java but I gather you can write them in PHP
Thanks
--
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to
On 30 April 2011 12:40, Yoan yoan.g...@gmail.com wrote:
I found ffplay that can open VP8 videos, and can use RTP protocol. But
now, I have to adapt ffplay (in C language) for Android. Do someone
could help me to do that ? Maybe I have to use NDK ...
Yes, NDK is your way to go. For further
On 30 April 2011 13:34, Knutsford Software i...@knutsford-software.co.ukwrote:
What books do you recommend for learning how to develop android apps -
I don't want to relearn Java but I gather you can write them in PHP
I'd strongly suggest you learn Java.
Regards,
Marcin Orlowski
*Tray
Hi,
I make a app on eclipse , win 7 after this I go on menu export and run
iti export apk file and its seems to be ok for mei published it on
the market...and finish(
https://market.android.com/details?id=com.riosistemas.butecosfeature=search
_result )But the problem goes after
On Sat, Apr 30, 2011 at 7:34 AM, Knutsford Software
i...@knutsford-software.co.uk wrote:
What books do you recommend for learning how to develop android apps -
I don't want to relearn Java but I gather you can write them in PHP
You will find approximately zero books on writing Android apps in
If you are willing to roll your own dialog, you could:
Step #1: Create the message/rfc822 Intent, as if you were going to
send that way, and use it with PackageManager and
queryIntentActivities() to find out who handles it.
Step #2: Create the image/png Intent, as if you were going to send
that
Hi,
I make a app on eclipse , win 7 after this I go on menu export and run
iti export apk file and its seems to be ok for mei published it on
the market...and finish(
https://market.android.com/details?id=com.riosistemas.butecosfeature=search
_result )But the problem goes after
On 30 April 2011 13:47, Igor Nesralla Ribeiro nesra...@gmail.com wrote:
Hi,
I make a app on eclipse , win 7 after this I go on menu export and run
iti export apk file and its seems to be ok for mei published it on
the market...and finish(
On 30 April 2011 12:49, a a harvey.a...@gmail.com wrote:
paint.measureText(text) return the width, how can i get the height
of the text?
value you used in setTextSize() * screendensity factor shall mostly give
what you want.
Regards,
Marcin Orlowski
*Tray Agenda http://bit.ly/trayagenda* -
Hi all,
I'm using Eclipse to develop an Android application. I have a number
of resource files in my project that are used for unit testing. When I
generate an APK file for my app using Android Tools Export Unsigned
Application Package, the generated file includes these data files. I
have not
Sorry, this is probably a bug in 2.3 with trying to grant a URI permission
to an activity instance that is already running. I'll look in to this. In
the mean-time, the only solution may be to not use singleTask for the
activity being launched to a preview an attachment. This is actually the
wrong answer, sorry...
2011/4/30 Marcin Orlowski webnet.andr...@gmail.com:
On 30 April 2011 12:49, a a harvey.a...@gmail.com wrote:
paint.measureText(text) return the width, how can i get the height
of the text?
value you used in setTextSize() * screendensity factor shall mostly give
what
get the text rect, then return the rect height, this is text height.
2011/4/30 a a harvey.a...@gmail.com:
wrong answer, sorry...
2011/4/30 Marcin Orlowski webnet.andr...@gmail.com:
On 30 April 2011 12:49, a a harvey.a...@gmail.com wrote:
paint.measureText(text) return the width, how can i
Re battery levels -- the batteries on these devices don't simply charge to
100%, they will charge up 100%, then drain down some amount (toward 90%),
then charge up again.
The Droid's hardware only reports battery level in 10% increments, so you
wouldn't see the behavior there. Also some
Sorry, this information is not available if your task has has multiple
activities in it.
On Apr 30, 2011 3:18 AM, Manohar Mahapatra androidu...@gmail.com wrote:
Hi Dianne,
I was aware of all these flags. My app has a requirement to know when my
root / secondary activities are brought to focus
I didn't see this group, sorry
Thanks for the link
On 30 avr, 13:36, Marcin Orlowski webnet.andr...@gmail.com wrote:
On 30 April 2011 12:40, Yoan yoan.g...@gmail.com wrote:
I found ffplay that can open VP8 videos, and can use RTP protocol. But
now, I have to adapt ffplay (in C language) for
http://developer.android.com/reference/android/graphics/Paint.html
Take a pick:
- getTextSize()
- getTextBounds()
- ascent() / descent()
- getFontMetrics()
-- Kostya
30.04.2011 17:55, a a пишет:
get the text rect, then return the rect height, this is text height.
2011/4/30 a
Hi Dianne,
Thanks for the reply. I want to let you know the exact dilemma I am in.
My application is a client based financial app and compulsorily it needs to
validate the user token from the server every time it comes to foreground.
This is a security mandate.
Are you aware of any call back( (
On Sat, Apr 30, 2011 at 10:15 AM, Manohar Mahapatra
androidu...@gmail.com wrote:
My application is a client based financial app and compulsorily it needs to
validate the user token from the server every time it comes to foreground.
This is a security mandate.
Then validate the user token in
No ideas? Please, some help here would be really nice!
tnx
On Apr 28, 10:06 pm, Gabriel Simões gsim...@gmail.com wrote:
Hello,
I´ve been trying to figure a way out to search MediaStore.Audio.Albums
and MediaStore.Audio.Media to retrieve onlly albums from mp3 files.
I can list all albums and
Actually on ATT you can't use http or dropbox to install APKs because
ATT block sideloading.
But enabling the phone's System Settings Applications Development
USB debugging and using eclipse or adb is easier anyway.
(And like Mark said you may need the usb driver)
-Kevin
On Apr 30, 12:47 am,
Hi Marcin,
Sorry...my English…
Well….my real problem is : only my application tag in manifest disappeared
and i don’t know if when I change the app description in design view or when
I export to apk file…
That’s it…
Thanks
Igor
From: android-developers@googlegroups.com
Hello,
I want to change the UI(if possible just add an image to the UI) when
i'm well connected to the server(i'm developping a SIP application) by
adding an imaged Connected .
In fact, i've made this but i have a FC:
public void onRegistrationDone(String localProfileUri, long
expiryTime) {
Do they actually need to be in your main .apk? Generally we like to keep
all test related code (and resources) in a separate .apk that has the
Instrumentation components.
On Apr 30, 2011 9:48 AM, Greg Brown gk_br...@verizon.net wrote:
Hi all,
I'm using Eclipse to develop an Android
Hi Mark,
Thanks for the reply. You are right , I could have used onResume in
my secondary(not root activity) activities, but onResume will be called
even when I navigate between the activities in my app once it is launched.
. I dont want to check the user token during this scenario as it would
On Sat, Apr 30, 2011 at 10:51 AM, Manohar Mahapatra
androidu...@gmail.com wrote:
Thanks for the reply. You are right , I could have used onResume in
my secondary(not root activity) activities, but onResume will be called
even when I navigate between the activities in my app once it is
On 30 April 2011 16:42, Igor Nesralla Ribeiro nesra...@gmail.com wrote:
Hi Marcin,
Sorry...my English…
Well….my real problem is : only my application tag in manifest disappeared
and i don’t know if when I change the app description in design view or when
I export to apk file…
Unless
What about just having you all UI elements in one view but simply hide/show
some you want to be visible conditionaly by using setVisibility() on them?
Looks like you do not need anything more complicated anyway.
Regards,
Marcin Orlowski
*Tray Agenda http://bit.ly/trayagenda* - keep you daily
Very good idea. So i add the image in the XMl file and i set its visiblity
to 0, then when i'm connected to the server i set its visibilty(in java
code) to 1 . But, how can i set it in Java ?
Thank you for you help.
2011/4/30 Marcin Orlowski webnet.andr...@gmail.com
What about just having you
setContentView() completely replaces your current UI with a new one. If you
just want to make an image shown, you need to modify the current UI -- for
example have an ImageView containing the image which you change between
View.INVISIBLE and View.VISIBLE.
On Apr 30, 2011 10:48 AM, Alaeddine
I've made this:
public void onRegistrationDone(String localProfileUri, long
expiryTime) {
updateStatus(Registered to server.);
Log.d(SUCCEED,Registration DONE);
ImageView iconView = (ImageView)
findViewById(R.id.connected);
decent()-acent()
On Apr 30, 5:49 am, a a harvey.a...@gmail.com wrote:
paint.measureText(text) return the width, how can i get the height
of the text?
--
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to
First thing is to actually use one of the correct constants in
View.setVisibility() -- such as View.VISIBLE.
On Sat, Apr 30, 2011 at 11:35 AM, Alaeddine Ghribi
alaeddineghr...@gmail.com wrote:
I've made this:
public void onRegistrationDone(String localProfileUri, long
expiryTime) {
Hi can any one give me some code to use Preferences from my
settings.xml Preference file in a BroadcastRecevier?
Thank you
--
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to
I actually don't want them in my .apk file at all. I have been trying to figure
out how to filter them out but I haven't found a way to do so.
Greg
On Apr 30, 2011, at 10:50 AM, Dianne Hackborn wrote:
Do they actually need to be in your main .apk? Generally we like to keep all
test related
Thanks Dianne. I will have to remove singleTask then.
On Apr 30, 6:49 pm, Dianne Hackborn hack...@android.com wrote:
Sorry, this is probably a bug in 2.3 with trying to grant a URI permission
to an activity instance that is already running. I'll look in to this. In
the mean-time, the only
I get this error from LogCat and can't understand why, driving me
crazy: 04-30 13:21:26.388: ERROR/AndroidRuntime(12408): Caused by:
java.lang.RuntimeException: Your content must have a TabHost whose id
attribute is 'android.R.id.tabhost'
import android.app.TabActivity;
import
Better solution: All services should be defined via interface, with nary an
implementation class to be seen. Specifying an implementation class, as the
current spec does, does not add value -- it removes it.
Workaround: Define your own interface class, and your own method that calls
I believe the message means this:
TabHost android:id=*@+id/tabhost*
should be changed to:
TabHost android:id=*@android:id/tabhost*
In other words, referencing the id value defined by Android, rather than
assigning a new id value in your application.
Same with
FrameLayout
Hi,
I'm doing a widget that needs to be update on screen_on or on
user_present. As I'm not hable to register a BroadcastReceiver inside
the widget I'm doing it in a Service that is triggered by the widget
like this:
Widget.java:
@Override
public void onEnabled(Context context) {
Hello, Nikolay!
Thanks for your answer.
I think it is not the code I should blame here.
When I'm launching on my device Admob's examples (BannerEssentials,
Banner-Details) I get exactly the same result.
Also bannrers in other applications I downloaded from the market look
equal.
This makes me
Wow so simple, thanks a lot Kostya, struggled with that for so long.
On Apr 30, 2:01 pm, Kostya Vasilyev kmans...@gmail.com wrote:
I believe the message means this:
TabHost android:id=*@+id/tabhost*
should be changed to:
TabHost android:id=*@android:id/tabhost*
In other
Perhaps you yourself are getting in the way when you offer offense in this
way? I for one am glad that Dianne does not work at the sort of company you
describe, and there's really no way to take your remarks addressing her job
security but as a personal attack. I'm not sure why you're doing
Perhaps you yourself are getting in the way when you offer offense in this
way? I for one am glad that Dianne does not work at the sort of company you
describe, and there's really no way to take your remarks addressing her job
security but as a personal attack. I'm not sure why you're doing
Perhaps you yourself are getting in the way when you offer offense in this
way? I for one am glad that Dianne does not work at the sort of company you
describe, and there's really no way to take your remarks addressing her job
security but as a personal attack. I'm not sure why you're doing
In my app I have a about a dozen of different Activities. These
Activities are connected (can call each other with startActivity()) in
such a way, that the user can theoretically keep running in circles -
always jumping to the next Activity, never going back. Also, I really
need to maintain a
You will perhaps run into stack overflows or oom. Android will try to kill
some of your activities though when it finds necessary
On May 1, 2011 12:01 AM, Scythe scythe...@gmail.com wrote:
In my app I have a about a dozen of different Activities. These
Activities are connected (can call each
I have a problem, the image is not showing even when deleting
visibility ?
Have i a problem with the XML file ?
Thank you.
On 30 avr, 17:06, Dianne Hackborn hack...@android.com wrote:
First thing is to actually use one of the correct constants in
View.setVisibility() -- such as View.VISIBLE.
30.04.2011 23:04, Alaeddine Ghribi пишет:
I have a problem, the image is not showing even when deleting
visibility ?
Have i a problem with the XML file ?
Yes.
The view that's above the ImageView is set to fill_parent height, so it
takes the entire height of the screen, leaving no room for
I know where's the problem - my network operator in Poland (Era, from
T-Mobile) adds a service called 'Compressor mini' (which is in fact
Opera Mini feature), that is to limit data transfer.
Unfortunately it adds as well this toolbars.
Don't even ask - I'm pissed as hell on them, especially they
I am having a layout problem. My tab content is displayed directly
over the tabs instead of underneath the tabs.
?xml version=1.0 encoding=utf-8?
TabHost android:id=@android:id/tabhost xmlns:android=http://
schemas.android.com/apk/res/android
android:layout_width=fill_parent
Excatly that's the problem, i didn't notice it, i just copied it from my
previous project :P !
However, i want to set the image to show after a period, i've maked this:
public void onRegistrationDone(String localProfileUri, long expiryTime) {
updateStatus(Registered to
As was already pointed out by Dianne, View.setVisibility() uses
constants, like View.GONE and View.VISIBLE - not arbitrary values like 0
or 1.
-- Kostya
30.04.2011 23:56, Alaeddine Ghribi пишет:
iconView.setVisibility(1);
--
Kostya Vasilyev --
Hi there,
In the Additional Notes section here:
http://www.devdiv.com/android/docs/guide/topics/fundamentals/bound-services.html#Binding
it says: You should always trap DeadObjectException exceptions, which
are thrown when the connection has broken. This is the only exception
thrown by remote
Sorry but i'm not understanding your point. If i make iconView.VISIBLE i
have an error(sorry for my mis-understood).In the XML file i have to do like
android:visibility=visible and in the JAVA code i normally make
iconView.setVisibility(1);
? As pointed in the doc:
On Sat, Apr 30, 2011 at 4:05 PM, MarcoAndroid marco...@gmail.com wrote:
1) Does that mean that for all calls of the client to the service's
methods you need to try/catch the DeadObjectException? Even
getService() in onServiceConnected() can throw it?
You need to catch them wherever they can
No do iconView.setVisibility(View.VISIBLE). Don't just make up numbers.
On Sat, Apr 30, 2011 at 4:11 PM, Alaeddine Ghribi alaeddineghr...@gmail.com
wrote:
Sorry but i'm not understanding your point. If i make iconView.VISIBLE i
have an error(sorry for my mis-understood).In the XML file i
I have been developing an app I want to share with friends and family for
beta testing before I publish it to the android market. Problem is, since
I've already had them install a previous version of the app, that when I
send them the new .apk to install the installer wants the already
It doesn't. Don't do that. Allowing the user to keep cycling through
activities is fundamentally flawed. Having an application that has more
than a handful of activities on the stack is not correct, both for the way
the system works and the user experience it causes.
On Sat, Apr 30, 2011 at
I assume you have changed the cert. If this is the cause, no there is
nothing you can do about it. The cert is the identity of the author; two
apps with different certs are fundamentally different apps and can't be
installed on top of each other.
On Sat, Apr 30, 2011 at 4:16 PM, Derek Winstead
Where do I change the cert? That doesn't sound like something I've done
(knowingly).
When doing my development on the ADV with eclipse I make my changes and
rerun the program. It reinstalls everything but I don't loose data. Only
when I try to push it to a real phone does it want an uninstall.
The development and release .apk files are signed with different
certificates.
In other words, when you hand out an .apk that was created when you
ran an Eclipse build, you are distributing an .apk that's signed with
a cert different than the .apk which you generate for release (which
you run
Ok, so when I right click my project and Run As - Android Application it
installs on the VM but also creates the .apk file in the bin folder and that
is what I'm coping and sending to friends. Is this incorrect to do?
I'm still a novice with Android.
--
You received this message because you
It is fine to do that, but the Release version has a different signature. So
if they have the Development apk installed, then they have no choice but to
uninstall that to install the Market apk. This is only the case when going
from Development - Market...any subsequent updates will be fine and
I figure that multiple smaller images work better than the '1 large image'
example you have, since DalvikVM won't need to allocate one large contiguous
chunk of memory.
I won't worry about it too much. Don't start solving a problem that may not
exists in your actual app :-)
--
You received
I checked out this:
http://developer.android.com/guide/publishing/app-signing.html#releasemode
I created a keytool as the example shows. I have now Right Click Project -
Export and put in the new keystore and alias on the export. I need to first
write down everything on my phones version. Then
On Sat, Apr 30, 2011 at 11:11 AM, Boozel boozelcl...@gmail.com wrote:
Hi can any one give me some code to use Preferences from my
settings.xml Preference file in a BroadcastRecevier?
You can get preference settings from a Context, just like anywhere else in
your code.
Hello,
when browsing the Android SDK documentation, e.g.
http://developer.android.com/reference/android/preference/PreferenceActivity.html,
then this documentation is for the latest Android version (Android 3.0 r1 at
the time of writing this).
As I am developing for Android 2.2 it is very
I think there's a little option on the page to filter by api level in
the kind of upper right
On Sat, Apr 30, 2011 at 6:38 PM, Stefan at WPF
stefan.at@googlemail.com wrote:
Hello,
when browsing the Android SDK documentation, e.g.
AFAIK, you can't, unless you saved the Android 2.2 SDK when you downloaded
it (you might also find someone on the net who has it).
However, of all my apps that I have, 3 are developed for Android 1.6 and one
is developed for Android 1.5. I don't have too much of a problem reading the
SDK. I
The new contents of FragmentActivity.java are in my earlier post.
The AFragmentActivity.java is a copy of the original FragmentActivity.java
with these additional changes:
- public class AFragmentActivity extends Activity *implements
FragmentActivity*
- Then fix the compiler errors
thank you, i have solve it
2011/4/30 Kostya Vasilyev kmans...@gmail.com:
http://developer.android.com/reference/android/graphics/Paint.html
Take a pick:
- getTextSize()
- getTextBounds()
- ascent() / descent()
- getFontMetrics()
-- Kostya
30.04.2011 17:55, a a пишет:
get the text
On Apr 29, 10:33 pm, Dianne Hackborn hack...@android.com wrote:
On Fri, Apr 29, 2011 at 8:43 PM, Eric e...@alum.mit.edu wrote:
Sorry, I meant to say I'm calling ArrayAdapter.notifyDataSetChanged(),
not ListAdapter.notifyDataSetChanged().
This API tells the list view that the entire data
By the way, this Google I/O video on ListView seems to indicate it is
perfectly acceptable, and in fact required, that you call
notifyDatasetChanged() when anything in your dataset changes (either
individual cell content, or data set size). Nothing in this video
says you should be iterating
Yes, you're right about that. Calling notifyDataSetChanged on the adapter is
the best way to go and you should use it in 99% of cases. However, in some
cases rules should be broken. :)
A call to notifyDataSetChanged redraws all the children in the ListView and
is relatively expensive and you
i think this should say redraws all the *visible* children in the listview
--
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email
On Apr 30, 11:05 pm, Streets Of Boston flyingdutc...@gmail.com
wrote:
Yes, you're right about that. Calling notifyDataSetChanged on the adapter is
the best way to go and you should use it in 99% of cases. However, in some
cases rules should be broken. :)
A call to notifyDataSetChanged
I'm not sure what more to say except that this isn't how
notifyDataSetChanged() is supposed to be used. It is for relatively
infrequent, significant changes to the underlying data. The typical case is
when a new query has been done in a database and the adapter is being
switched to show the data
On Apr 30, 11:05 pm, Streets Of Boston flyingdutc...@gmail.com
wrote:
A call to notifyDataSetChanged redraws all the children in the ListView and
is relatively expensive and you get the side effects you notice in your
example (touch issues).
Nobody has yet explained to me how calling
On Apr 30, 11:29 pm, Dianne Hackborn hack...@android.com wrote:
I'm not sure what more to say except that this isn't how
notifyDataSetChanged() is supposed to be used. It is for relatively
infrequent, significant changes to the underlying data. The typical case is
when a new query has been
Figuring out which items are visible is pretty easy, you can use
ListView.getFirstVisiblePosition() to know what section of your adapter is
visible (getFirstVisiblePosition() + getChildCount() - 1 gives you the last
visible position.)
On Sat, Apr 30, 2011 at 8:35 PM, Eric e...@alum.mit.edu wrote:
On Apr 30, 11:39 pm, Romain Guy romain...@android.com wrote:
Figuring out which items are visible is pretty easy, you can use
ListView.getFirstVisiblePosition() to know what section of your adapter is
visible (getFirstVisiblePosition() + getChildCount() - 1 gives you the last
visible
notifyDatasetChanged() is used to force ListView to invoke Adapter.getView()
again, which may be expensive, depending on what you do in it. ListView does
have many optimizations to make notifyDatasetChanged() calls as efficient as
possible though.
If you are doing *very* frequent updates (several
On May 1, 12:01 am, Romain Guy romain...@android.com wrote:
If you are doing *very* frequent updates (several times per second for
instance, with let's say a progress bar or some sort of animation) you
should indeed modify the Views directly.
OK.
Adaptor should have a
In the Google I/O 2010 - The world of ListView talk shown here:
http://www.youtube.com/watch?v=wDBM6wVEO70t=17m38s
a 'ViewHolder' paradigm is suggested to cache views and avoid the
findViewById lookup. Could the same thing be achieved by using the
setTag(id, Object) method on View, and simply
1 - 100 of 101 matches
Mail list logo