[android-developers] Re: List View View Replicated when scrolling down and movie the stroller towards to up.

2012-08-16 Thread Sergio Panico
Try to take a look here. https://groups.google.com/forum/?fromgroups#!starred/android-developers/NZ_pCPs0evM%5B1-25%5D HTH Sergio Il giorno lunedì 13 agosto 2012 15:47:23 UTC+2, Gourab Singha ha scritto: > > List View View Replicated when scrolling down and movie the stroller > towards to up.

[android-developers] Re: List View with Check box multiselection

2012-01-11 Thread skink
On 11 Sty, 07:52, Mukesh Srivastav wrote: > Hi Chander, > > That's it. as i said, i have done this earlier, it requries the whole > process. it doesnt. it's as simple as: --- package some.test.package; import android.app.ListActivity;

[android-developers] Re: List View Focus Problem!

2011-10-16 Thread Studio LFP
This might be helpful: http://developer.android.com/reference/android/view/View.html#setOnFocusChangeListener%28android.view.View.OnFocusChangeListener%29 You can create one or implement it on your activity and link as many views to it as you want. You should receive an event for focus gained an

[android-developers] Re: List View based on Database Cursor Not Showing Full Screen and Scrolling

2011-08-03 Thread usafrmajor
OK, as usually after I post I end up finding the answer myself. :-) This nugget got me close "Your vertical scroll view can only have one child, which means you need to envelop your gallery view and the linear view "chart" with another linerLayout which then should be enveloped with a scrollV

[android-developers] Re: List View based on Database Cursor Not Showing Full Screen and Scrolling

2011-08-03 Thread usafrmajor
OK, I figured out what is causing the problem but I cannot figure out what the solution is. My problem is being caused by the ScrollView tag in the layout that creates the Tabs. Since ListViews already have scrolling it is messing things up. Once I remove the ScrollView tag from the tab layou

[android-developers] Re: List View based on Database Cursor Not Showing Full Screen and Scrolling

2011-08-03 Thread usafrmajor
I thought maybe a picture of what is happening may help. As you can see on the attached image the second entry on the list is only showing the first line. I masked out the lat long and address information on the first entry I have been looking every where to find a solution and cannot. Someo

Re: [android-developers] Re: List View and Simple Cursor Adapter

2011-07-16 Thread Kostya Vasilyev
It's called as many times as ListView sees fit. FWIW, I've also seen getView called more times than the number of visible list items (about 2X the number). Don't worry about it - just make sure your getView does the right thing, based on the item's "position". Also don't assume a one to one

Re: [android-developers] Re: List View and Simple Cursor Adapter

2011-07-16 Thread ΙΟΥΛΙΑ ΓΡΗΓΟΡΙΑΔΟΥ
Ok Thanks for the explanation, but when I start the app , for example I have 1 list item,(with 2 textviews, a button and an imageview in the list_item.xml) I see that the getView() is called 3 times. ...? Thank you! -- You received this message because you are subscribed to the Google Groups

[android-developers] Re: List View and Simple Cursor Adapter

2011-07-16 Thread NikolaMKD
The getView() is called everytime the listview is populating data, what is meant by this, getView() is called everytime when there is need views to be recycled. Let's say if you have 20 elements in your listview, the maximum items visible is 8, the first time you view the listview, getView() is ca

Re: [android-developers] Re: list view with alpha transparency effect

2011-06-19 Thread Fred Niggle
Hello, Try: setBackgroundColor(Color.argb(125, 0, 0, 255)); the 1st set of digits (125) is the translucency. Hope this helps, Fred On 18/06/2011, Greg Donald wrote: > On Sat, Jun 18, 2011 at 12:27 PM, Greg Donald wrote: >> I have a list view using a layout that has a background color of >> #80

[android-developers] Re: list view with alpha transparency effect

2011-06-18 Thread Greg Donald
On Sat, Jun 18, 2011 at 12:27 PM, Greg Donald wrote: > I have a list view using a layout that has a background color of #8000. > > When I scroll the list, the list item background color change to a > solid color, in this case black.  Seems it's ignoring the alpha > transparency value on scroll

[android-developers] Re: List View Item Strange Behavior

2010-04-10 Thread Binesy
I update the tag on the button after the else and it works. Thanks TreKing :) On Apr 9, 1:31 pm, Agus wrote: > You are using convertView object which is a recycled view. > > > > On Thu, Apr 8, 2010 at 2:42 AM, Binesy wrote: > > Hi, > > > I have been having some strange behavior when refreshing a

[android-developers] Re: List View Item Strange Behavior

2010-04-09 Thread Binesy
Ok thanks. I'll give that a try and see if it works On Apr 8, 6:57 pm, "~ TreKing" wrote: > On Thu, Apr 8, 2010 at 4:42 AM, Binesy wrote: > > Why is this happening and how can I fix it? > > The ListView will re-use views it uses, as you see by the convertView. These > are not guaranteed to be in

[android-developers] Re: List View Item Strange Behavior

2010-04-08 Thread Binesy
> Refresh the list how? adapter.notifyDataSetChanged(); You notify the adapter the data has changed and therefore should redraw itself. > Also, what's the point of the Container class? AFAICT, it's completely > redundant and unnecessary. Its so you can keep a reference to the views within the l

[android-developers] Re: List view with textviews and imageview, best practices

2009-12-10 Thread Matt Kanninen
I did something similar, but the textView is populated from SQLLite. I'm still having issues with the SQLLite cursor. I tried: http://developer.android.com/reference/android/app/Activity.html#startManagingCursor%28android.database.Cursor%29 but at best it throws ugly log messages. So I'm implen

[android-developers] Re: List view with textviews and imageview, best practices

2009-12-10 Thread Samuh
1. you can look at the video from Google IO conference 2009, called Turbo charging your UI's by Romain Guy; he discussed some of the optimizations you can do when working with ListViews. 2. You can read Mark Murphy's series of ListView tutorials at android guys titled Fancy ListViews: http://www.go

[android-developers] Re: List view with textviews and imageview, best practices

2009-12-10 Thread theSmith
Patrick, I would suggest using a custom ArrayAdapter that uses the 'view holder' concept to manage the child views. Also instead of using a linearlayout I would use a relative layout as it will render faster because your layout tree won't be as deep. Im not use how you are 'lazy loading' now, but

[android-developers] Re: list view

2009-09-07 Thread Sasi Kumar
Thanks for your reply. I can't understand your words. Can you plz... reply for me one more time.. Thanks in advance. On Sep 7, 4:04 pm, Mark Murphy wrote: > Sasi Kumar wrote: > > I have a list view with 2300 items. > > > When i'm using settextfilterenabled=true. > > > It is very slow to g

[android-developers] Re: list view

2009-09-07 Thread Mark Murphy
Sasi Kumar wrote: > I have a list view with 2300 items. > > When i'm using settextfilterenabled=true. > > It is very slow to get the data. > there is any way to get the data very fast.. > any one can suggess some idea for this. Put fewer than 2300 items in the list. Design a UI that presents fe

[android-developers] Re: List View not properly updated from AsyncTask

2009-07-14 Thread Streets Of Boston
First: You directly modify the activity's attribute 'items' (that serves as your data in your list-adapter) in your background thread, without any proper synchronization with the main GUI-thread. This is bad news. It may work for a while, but it's bound to fail at some point. Second (and i assume

[android-developers] Re: List View not properly updated from AsyncTask

2009-07-14 Thread pperotti
Hi Romain, I am actually using in List3 adapter.notifyDatasetChanged(). This do not freeze the app but do not allow the user to scroll perfectly as in List1. For some reason (the amount of operations probably in the AsyncTask) the ListView is not entirely independent from the data set affecting t

[android-developers] Re: List View not properly updated from AsyncTask

2009-07-13 Thread Romain Guy
Do NOT call invalidateViews(), it calls ListView to throw everything away. Use Adapter.notifyDatasetChanged() instead. On Mon, Jul 13, 2009 at 10:15 PM, pperotti wrote: > > Hi Everyone, > > After digging with the APIs I still cannot figure out how the > AsyncTask properly works and why some behav

[android-developers] Re: List View scrolling issue

2009-03-03 Thread Muthu Kumar K.
Romain Guy, I have done the change in my list view. Its working fine now :) Thanks, Muthu Kumar K. On Mar 4, 10:01 am, Romain Guy wrote: > android:cacheColorHint="#" > > On Tue, Mar 3, 2009 at 8:52 PM, Muthu Kumar K. wrote: > > > > > Hi All, > > I have problem with the List view scrol

[android-developers] Re: List View scrolling issue

2009-03-03 Thread Romain Guy
android:cacheColorHint="#" On Tue, Mar 3, 2009 at 8:52 PM, Muthu Kumar K. wrote: > > Hi All, > I have problem with the List view scrolling. Here I have a list view > contains more 50 items. I am setting the list view background as > transparent. While scrolling the list view it is showin

[android-developers] Re: List View

2009-01-08 Thread Rajendrakumar C
Hi, I think you need to set the Onclik Listner for the ListView in the Ocreate Method. And also I need a help from you..! CAn you tell me how to display Array of Strings to List. On Jan 5, 3:08 am, flashfreakmx wrote: > Right now I am extending Activity and populating 2 list views > dyna

[android-developers] Re: List View + downloading image in a background thread

2008-12-12 Thread DanG
Thanks, Romain. I'll try to refactor my code so that that the ListView is being populated by a datastructure which I can update from that background thread On Dec 12, 6:30 pm, Romain Guy wrote: > All your message need to tell the UI thread is that a new image is > available. You don't have

[android-developers] Re: List View + downloading image in a background thread

2008-12-12 Thread Romain Guy
All your message need to tell the UI thread is that a new image is available. You don't have to pass the image as part of the message. Usually, the background thread would download the image and put it in memory (in a list or map for instance) and then simply tell the UI thread to refresh the UI.

[android-developers] Re: List View Issue

2008-10-19 Thread gymshoe
(I assume you are using the Eclipse IDE with android.) I am a novice too, so of limited help. But I do know that your "Log.w() "statements don't print in the console "view", they print in the LogCat "view" within the DDMS "perspective". (Console is also a view within the DDMS perspective.) To s

[android-developers] Re: List View- onClickListener?

2008-04-13 Thread Dan U.
The answer was in my last post. On Apr 13, 6:50 pm, SQLserver <[EMAIL PROTECTED]> wrote: > No, I'm just really learning Java and Android... Too bad the ADC is > due tomorrow though, if I had a few more months I'd probably have a > submission. > > It appears that arg1 is the text in the item, but

[android-developers] Re: List View- onClickListener?

2008-04-13 Thread SQLserver
No, I'm just really learning Java and Android... Too bad the ADC is due tomorrow though, if I had a few more months I'd probably have a submission. It appears that arg1 is the text in the item, but it returns in a cryptic kind of: [EMAIL PROTECTED] How can I get the nice text from this textview

[android-developers] Re: List View- onClickListener?

2008-04-13 Thread Dan U.
I take it you don't code java very much :-). I don't see why you are trying to get the selected item with VList.getSelectedItem(). I think you want to just use the arg1 in my example. The toString() probably won't give you what you want and it would work, but apparently o is null since you got a

[android-developers] Re: List View- onClickListener?

2008-04-13 Thread SQLserver
Does anybody know whether that conversion from the object to string works right? --~--~-~--~~~---~--~~ 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@googl

[android-developers] Re: List View- onClickListener?

2008-04-13 Thread SQLserver
Is there another widget that you are supposed to use here besides 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@google

[android-developers] Re: List View- onClickListener?

2008-04-13 Thread SQLserver
I'm trying: Object o = VList.getSelectedItem(); String keyword = o.toString(); But this gives me another NullPointerError. What could be wrong? --~--~-~--~~~---~--~~ You received this message because you are subscribed to t

[android-developers] Re: List View- onClickListener?

2008-04-13 Thread SQLserver
1 last thing- How would you get the Name/Text of the item clicked? thanks, SQlserver --~--~-~--~~~---~--~~ 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@g

[android-developers] Re: List View- onClickListener?

2008-04-13 Thread SQLserver
Thanks that works great :) --~--~-~--~~~---~--~~ 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 emai

[android-developers] Re: List View- onClickListener?

2008-04-13 Thread Dan U.
ListView lv = (ListView)findViewById(R.id.list2); lv.setOnItemClickListener(new OnItemClickListener() { public void onItemClick(AdapterView arg0, View arg1, int arg2, long arg3) {

[android-developers] Re: List View- onClickListener?

2008-04-13 Thread SQLserver
On trying to set a setOnClickListener, I get a popup that suggests setting an setOnItemListener. However, I keep getting syntax errors for such. Can you provide a quick example with a setOnItemClickListener? thanks. --~--~-~--~~~---~--~~ You received this message be

[android-developers] Re: List View- onClickListener?

2008-04-13 Thread Dan U.
I think it'd be KKList.setOnClickListener. But perhaps you want setOnItemClickListener? On Apr 13, 2:38 pm, SQLserver <[EMAIL PROTECTED]> wrote: > Hello- > Here's the code I'm connecting to a ListView with: > > String[] Strings = String.split(",", 100); > KKList = (ListView) findV