[android-developers] Re: listView get child items in a loop

2016-02-22 Thread Streets Of Boston
I assume your ListView has a ListAdapter (probably a BaseAdapter?). In your Adapter's getView(...) method, you have a position parameter. The position is the index into your array-list of data that you'd like to show in the correct list-item-view. You get your data-item from the Adapter given

[android-developers] Re: ListView won't show up with Retrofit 2.0

2015-12-04 Thread Mihir Raj
On Tuesday, December 1, 2015 at 2:48:53 AM UTC+5:30, AbdulMajeed Mohammad wrote: > > Hi, > > I have json file in my localhost and I want to load it in ListView with > custom adapter by retrofit 2.0 , but nothing show up > > and I don't know if the problem from an adapter or the json file or

[android-developers] Re: ListView getCount is wrong - how do I reset it?

2014-05-19 Thread Rufatet Babakishiyev
After adding each item to listItems I do a notifyDataSetChanged() on the adapter. Why you call adter adding each time. public void updateListItems(){ // TODO clear list // TODO Add element to list // TODO NOTIFY DATA SET CHANGED // TODO try to get list item size (I do not know why

[android-developers] Re: ListView getCount is wrong - how do I reset it?

2014-05-19 Thread plnelson
It's public and static because the method in the ListActivity that calls it is static. So if it wasn't static it would generate a compile-time error that a static method can't refence a non-static object. The ListActivity method is static is that way because that's how the original

[android-developers] Re: ListView getCount is wrong - how do I reset it?

2014-05-19 Thread plnelson
I call if after adding each one mostly for diagnostics - I wanted to see in the debugger what changed and when. That's the same reason I'm getting the list items size - for diagnostics, for debugging this problem. *It's all for the same question *- How do I get ListView to report its

[android-developers] Re: ListView getCount is wrong - how do I reset it?

2014-05-19 Thread Streets Of Boston
It's bad programming practice, but you inherited it, so you need to deal with it.. :-) Question, though, and if this applies to your problem, you'll see why it is bad practices to make it static. Your ListActivity, does it have more than one instance? In other words, are there more than one

[android-developers] Re: ListView getCount is wrong - how do I reset it?

2014-05-19 Thread Streets Of Boston
Debug the listItems (ArrayList of Strings). Monitor its add method(s), i.e. set breakpoints on them, and figure out which code adds to this static list without notifying the ListAdapter(s). On Monday, May 19, 2014 9:53:44 AM UTC-4, plnelson wrote: I call if after adding each one mostly for

[android-developers] Re: ListView getCount is wrong - how do I reset it?

2014-05-19 Thread plnelson
*FIXED:* I fixed the *getCount()* problem. After updating the listItems I now call *setListAdapter()* on the ListActivity. (@Streets of Boston - there is only one ListActivity). After that, when I call the ListView's *getCount()* it returns the correct value. *N.B.* that this does *not*

[android-developers] Re: ListView getCount is wrong - how do I reset it?

2014-05-17 Thread Doug
On Friday, May 16, 2014 11:58:17 AM UTC-7, plnelson wrote: ...In MyListActivity, which is a ListActivity . . . public static ListView lv; // my ListView in the code Why is this public and static? ...the data source is an ArrayList called listItems. The first time around it has 12

Re: [android-developers] Re: ListView getCount is wrong - how do I reset it?

2014-05-17 Thread TreKing
On Sat, May 17, 2014 at 3:11 AM, Doug beafd...@gmail.com wrote: Never change the contents of the data in an adapter after you've given it to the ListView. Come again? How do you update your UI if not by modifying the adapter data and notifying it of the change?

[android-developers] Re: ListView vs. GridView vs. TableLayout

2013-06-17 Thread ankit the OPIUM
Is your designing is something like onClick of an item on First list should change content of rest of the column? If yes,you can try Fragments. It will be a nice to have 2 fragments in tablet and one in phone. Just search for fragment tutorials on google you will get tons. On Tuesday, 2 March

[android-developers] Re: ListView with selected state does not work when list item view has a background

2013-05-20 Thread Miha
Hi! Anybody has a similar experience or ...? How do you otherwise select a listview item in a dual pane layout? Regards, Miha. On Thursday, May 16, 2013 11:14:29 AM UTC+2, Miha wrote: Hi! I'm trying to understand the mechanics behind highlighting the selected list item. I have a list

[android-developers] Re: ListView with selected state does not work when list item view has a background

2013-05-20 Thread lbendlin
I would go with the brute force approach. Yes, you're redrawing the (visible part of the) list but you're only doing it once, not every five milliseconds. On Thursday, May 16, 2013 5:14:29 AM UTC-4, Miha wrote: Hi! I'm trying to understand the mechanics behind highlighting the selected

[android-developers] Re: ListView selection remained after exit from action mode

2013-04-24 Thread yccheok
Side Note Using MultiChoiceModeListener couple with CHOICE_MODE_MULTIPLE_MODAL will make this bug gone. However, for device below API level 11 will not able to use this solution. -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post

[android-developers] Re: Listview items focus change event

2013-03-12 Thread Shashidhar
Found the solution. OnItemSelectedListener on list view gets the position of the current focused list item.| On Tue, Mar 12, 2013 at 6:17 PM, Shashidhar shashi.zep...@gmail.com wrote: Hi, I have an application which has a custom listview. I run it on a smart tv android device and the

[android-developers] Re: ListView background

2013-03-01 Thread Tamilarasi Sivaraj
Hi bob, Try this: Add a attribute on the *ListView* Tag *android:cacheColorHint=# *// setting as a transparent color Regards Android developer Trinay Technology Solutions www.trinaytech.com 5705750475 On Friday, March 1, 2013 1:48:59 AM UTC+5:30, bob wrote: When I'm scrolling my

[android-developers] Re: ListView content thread sync cases

2013-01-27 Thread Bill Michaelson
My confusion has been due to the lack of appreciation that in spite of the fact that the server-obtained updates run asynchronously in a Thread started by the Service, the initial Service logic is part of the main thread which is shared with the Activities. I had coded the Handler in one of

[android-developers] Re: ListView with Editable components

2012-12-12 Thread Piren
any kind of focusable/clickable item causes issues in listviews, but nothing that can't be handled. On Tuesday, December 11, 2012 9:32:58 PM UTC+2, Leossa wrote: Hi, I read on the wild some people saying that it's not a good thing to have EditTexts inside a ListView. Something related to

[android-developers] Re: ListView one item per screen

2012-12-12 Thread Dmitriy F
I've tried using the library - it crushes when in onPause state. If I knew I would be able to achieve something with rewriting the code, I would go for it, but again - not sure if I can - can't waste time really. среда, 12 декабря 2012 г., 11:58:30 UTC+4 пользователь Piren написал: I wouldn't

[android-developers] Re: ListView one item per screen

2012-12-12 Thread Piren
I'm not saying that you should use the library (since its obviously isnt working and you dont want to revert to an older version of it). I did say that at least to me, it be easier to either write your own ViewPager based on their source or make a ViewFlipper (and the likes) work as a pager.

[android-developers] Re: ListView with Editable components

2012-12-12 Thread Leossa
Thanks for answering Piren. That's the point. Those kind of items cause issues though they can be handled in some or other way. So I guess it was a design decision not to make things like that. Em quarta-feira, 12 de dezembro de 2012 06h03min01s UTC-2, Piren escreveu: any kind of

[android-developers] Re: ListView one item per screen

2012-12-11 Thread Piren
I wouldn't go that way...it wont be easy at all to cause the list to behave properly with moving between pages... As i suggested before, you're much better off trying to replicate the source of ViewPager... If you dont want that much work (which i believe will actually be less work than

[android-developers] Re: ListView checked state wrongly shared between 2 views when reorienting screen

2012-11-21 Thread João Paulo Forny
Sorry for asking it here, but i have the same problem and some points were not clear for me. What do you mean by views that don't need to save their state? In my case, the problem is with custom views that don't have the same ids, but its children do, because it is created from a xml file. I

[android-developers] Re: ListView and onItemSelected

2012-11-14 Thread Khunshan Shabbir
listitem = m_adapter.getItem(position); can be listitem = getListAdapter().getItem(position) :P On Thursday, 3 September 2009 02:20:31 UTC+5, danny wrote: Not sure what your issue is...but this is what worked for me. In main activity init... final ListView searchResults =

[android-developers] Re: ListView doesn't refresh when last item is deleted

2012-10-20 Thread Andrew Mackenzie
I've also had problems getting notify to work, and resorted to using invalidate() (I think that's the name, but which from memory maybe deprecated??) and even just detecting that change in my List Activity and doing the query for the cursor again. I'm pretty sure there is a more recommended,

Re: [android-developers] Re: ListView doesn't refresh when last item is deleted

2012-10-20 Thread Jacek Jabłoński
For me, even invalidate() doesn't work. It's strange. 2012/10/20 Andrew Mackenzie and...@mackenzie-serres.net I've also had problems getting notify to work, and resorted to using invalidate() (I think that's the name, but which from memory maybe deprecated??) and even just detecting that

Re: [android-developers] Re: ListView doesn't refresh when last item is deleted

2012-10-20 Thread Jacek Jabłoński
Okay, so after investigating problem a little bit more, I found that this problem only applies to Android 4.0.x. This bug doesn't exist in 2.2, 2.3 or 4.1, only 4.0. The only way for me to solve this bug is to add to onLoadFinished() getListView().setVisibility(View.GONE);

Re: [android-developers] Re: Listview - Header , footer issue

2012-10-11 Thread Jovish P
Thanks for the clarification. Wil give a try this. Regards, Jovish On Wed, Oct 10, 2012 at 6:26 PM, Piren gpi...@gmail.com wrote: Maybe i delivered what i meant wrong... You can still inflate rows predefined using XML, but your the way to create the specific inner layout would have to be

Re: [android-developers] Re: Listview - Header , footer issue

2012-10-10 Thread Piren
Maybe i delivered what i meant wrong... You can still inflate rows predefined using XML, but your the way to create the specific inner layout would have to be created manually. you want to do something like this: scrollview linearlayout textview/ listview/ textview/

[android-developers] Re: Listview - Header , footer issue

2012-10-09 Thread Piren
Android doesn't support putting two scrollable views one inside the other and i assume you dont want to divide the screen area between the listviews and make each take a constant size. You're best (and probably only) choice is to just do everything manually. put a linear layout inside a

Re: [android-developers] Re: Listview - Header , footer issue

2012-10-09 Thread Jovish P
Sorry , we are not able to understand you fully. Wht is the difference between the first approach we explained in the mail and the approach u suggested . Up to our knowledge both are same . Wht difference it is going to make if u inflate every view programmatically instead of using xml ? On Tue,

[android-developers] Re: ListView | Full Code | Cannot capture item click!

2012-09-21 Thread kj
Don't set click listeners directly on the items you are creating in getView(). Use ListView.setOnItemClickListener() and ListView.setOnItemLongClickListener() instead. If you need particular item data, the AdapterView given in those callbacks have methods to get items at positions from the

[android-developers] Re: ListView | Full Code | Cannot capture item click!

2012-09-20 Thread Chance Sanders
I guess I should have left it in there, but I would have only been able to leave one attempt at, anyway, I suppose. I reverted to a 'working' build to demonstrate where I was in a working state. Sorry about that. On Thursday, September 20, 2012 5:13:49 AM UTC-5, Chance Sanders wrote: Guys,

Re: [android-developers] Re: ListView | Full Code | Cannot capture item click!

2012-09-20 Thread Justin Anderson
I reverted to a 'working' build to demonstrate where I was in a working state. Demonstrate to who? Can you please post the working code? Without seeing something that you attempted, whether it is working or not, you're not going to be given much help other than what I've already pointed

[android-developers] Re: ListView | Full Code | Cannot capture item click!

2012-09-20 Thread Chance Sanders
*This officially works. Thanks for the link.* * * *MyGames.java: * package com.lifeofchance.bpt; import org.json.JSONObject; import com.androidquery.AQuery; import android.app.Activity; import android.content.DialogInterface; import android.content.DialogInterface.OnClickListener; import

[android-developers] Re: ListView elements in Dialogs never expand to full width

2012-09-16 Thread Alexander Mikhnin
Thank you for the solution. Linear Layout works as well. среда, 1 апреля 2009 г., 13:50:50 UTC+4 пользователь Matthias написал: Okay, I found (once again), a rather ugly workaround for this: Putting the textview in layout object does the job. Like this: ?xml version=1.0 encoding=utf-8?

[android-developers] Re: ListView simple_list_item_activated_1 behaviour

2012-09-06 Thread Calin Perebiceanu
Did you tried handling the on list item click ? @Override protected void onListItemClick(ListView l, View v, int position, long id) { // Make the newly clicked item the currently selected one. getListView().setItemChecked(position, true); } On Thursday, 6 September 2012

Re: [android-developers] Re: ListView simple_list_item_activated_1 behaviour

2012-09-06 Thread Pankaj Chawla
Yes, I did and this causes the Multiselect mode CAB to show up. CAB shows up as soon as setItemChecked is called programmatically if CHOICE_MODE_MULTIPLE_MODAL is set for the listView. Anyways I went ahead and created a custom ArrayAdapter which keeps all the state information about

[android-developers] Re: ListView problem while scrolling

2012-09-01 Thread LiTTle
It is me again!!! When I select the first item and then I did everything Mr. Mark Murphy said when I scroll down and then come back to the top, the first item is black again instead of pink? Is there any way to store this option (for example selected=true) and repaint the same object as pink

Re: [android-developers] Re: ListView problem while scrolling

2012-09-01 Thread Mark Murphy
On Sat, Sep 1, 2012 at 7:42 AM, LiTTle littlep...@gmail.com wrote: It is me again!!! When I select the first item and then I did everything Mr. Mark Murphy said when I scroll down and then come back to the top, the first item is black again instead of pink? Is there any way to store this option

[android-developers] Re: Listview text size

2012-08-29 Thread Дмитрий Прилуцкий
Ate you need to change the font size programmatically, you need to use your own simplecursoradapter. scAdapter = new simplecursoradapter_textsize(this, com.dim.list_orders.R.layout.row_list, cursor, new String[] { name, count(*) }, new int[] { R.id.text1, R.id.text2 }, 1); public class

[android-developers] Re: Listview text size

2012-08-29 Thread Deep
Use Custom adapter. Implement a class extends BaseAdapter. On Tuesday, August 28, 2012 9:09:37 AM UTC+5:30, RAM wrote: how to resize the font size of a listview/gridview text -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to

Re: [android-developers] Re: Listview text size

2012-08-29 Thread Justin Anderson
Ate you need to change the font size programmatically, you need to use your own simplecursoradapter. 1. If you use your own layout you don't need to set the font size programmatically 2. You don't have to use SimpleCursorAdapter... You can use any adapter you want, and it doesn't

[android-developers] Re: ListView sorting

2012-08-11 Thread Aparna Ks
i hop tis wil help you http://www.ezzylearning.com/tutorial.aspx?tid=6816874 http://www.josecgomez.com/2010/05/03/android-putting-custom-objects-in-listview/ On Friday, 10 August 2012 00:18:41 UTC+5:30, Wolfgang wrote: Hey guys, I'm using a ListView that displays a list of ChartInfo.

[android-developers] Re: Listview in Wifi

2012-08-10 Thread bob
adapter.add(Sample WAP); On Friday, August 10, 2012 6:39:48 AM UTC-5, Meena Rengarajan wrote: Here, this is my code, How do i wanna put all the strings which is scanned and how do i wanna use Array adapter then how do i wanna get all the values from list ? Can anyone help me here

[android-developers] Re: ListView and ListAdapter

2012-08-02 Thread Nicola Blaine
hi John Gaby I have had the same issue. Could you please state what you changed in the end with regurds to handling the custom ViewGroup? Thanks -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to

Re: [android-developers] Re: ListView with custom view item refresh issue

2012-08-01 Thread Justin Anderson
Interesting… I usually just create a new View every time in getView… so I've never run into that. That should be fine if you don't have a lot of items or if your views are kept very simple Otherwise doing this will cause choppiness when scrolling the listview. Thanks, Justin Anderson

[android-developers] Re: ListView with custom view item refresh issue

2012-07-28 Thread Sergio Panico
Hi all, I thank all for your answers. I've understood the strange behaviour that doesn't makes my ListView to refreshes correctly. Here is the link where I've found the solution: https://groups.google.com/forum/?fromgroups#!topic/android-developers/2Ub4yhyKumM This topic clearly explains

[android-developers] Re: ListView with custom view item refresh issue

2012-07-28 Thread bob
Interesting… I usually just create a new View every time in getView… so I've never run into that. On Saturday, July 28, 2012 6:10:50 AM UTC-5, Sergio Panico wrote: Hi all, I thank all for your answers. I've understood the strange behaviour that doesn't makes my ListView to

Re: [android-developers] Re: ListView with custom view item refresh issue

2012-07-28 Thread soynerdito soynerdito
A nice post describing that is here http://lucasr.org/2012/04/05/performance-tips-for-androids-listview/ With an example of what is called a view holder to have a performance improvement. Also in the Google IO 2010 it is well explain from the developer itself

[android-developers] Re: ListView with custom view item refresh issue

2012-07-27 Thread bob
Sure sounds like a bug in getView. Make sure getView works when position==5 and position==6. On Thursday, July 26, 2012 5:59:05 AM UTC-5, Sergio Panico wrote: Hi all, I need your help to understand the refresh behaviour of a ListView where I've defined a my custom view for the

[android-developers] Re: ListView with custom view item refresh issue

2012-07-27 Thread soynerdito soynerdito
Don't quite understands the situation. But here is a short example if you extends from BaseAdapter and implement in the same line. This is using a layout called custom_view (copied bellow). This code is from an Activity and can be on the onCreate (The activity must have a ListView called

[android-developers] Re: ListView - Expandable items and scrolling

2012-07-11 Thread Tolriq
Finally after writing my response I think about better search on google :) And the solution is logical after I put better words on the problem : listView.post(new Runnable() { @Override public void run() {

[android-developers] Re: ListView inside a tabhost not displaying content initially

2012-06-29 Thread Robert Joly
I had the exact same setup in my app (multiple tabs using the same ListView and had the same issue as you observed). My initial work-around was to quickly switch the tab to 1 and then back to 0 but, the way my app handled tab changes, this has some nasty side-effects. What I ended up doing

[android-developers] Re: Listview similar to call logs of 'contacts' app

2012-06-12 Thread Guthyerrz maciel
But how can I create, those tow views, with like that divisor that has between. Em terça-feira, 23 de novembro de 2010 04h44min59s UTC-3, deepak escreveu: Hi manas, I forgot to mention 1 more thing. In the xml also, instead of ImageView give the name of the class which extends ImageView.

[android-developers] Re: ListView with Simple adapter

2012-05-24 Thread imran ali
can you post part of code where your doing visible/invisible of buttons. I think you are doing some mistake in getView(...) method of Adapter. and it is going to mess on scroll of listview. Regards Imran Ali On Thursday, May 24, 2012 2:56:38 PM UTC+5:30, shruthi santosh wrote: My feeds list

[android-developers] Re: ListView with Simple adapter

2012-05-24 Thread kalandar
hi shruthi, I think you are using if condition inside the getView method to visible or invisible some buttons. try if... else condition instead of if , like this if(condition true) { button visible; } else { button false; } it will cure your problem let me know this

Re: [android-developers] Re: ListView with Simple adapter

2012-05-24 Thread shruthi santosh
here is the code for getView(), public View getView(int position, View convertView, ViewGroup parent) { View row=super.getView(position, convertView, parent); ViewHolder holder=(ViewHolder)row.getTag(); if (holder==null) {

Re: [android-developers] Re: ListView with Simple adapter

2012-05-24 Thread shruthi santosh
i had tried if ...else condition.it did not wok.so i changed it to if...else if shruthi On Thu, May 24, 2012 at 4:22 PM, kalandar kasimk...@gmail.com wrote: hi shruthi, I think you are using if condition inside the getView method to visible or invisible some buttons. try if...

Re: [android-developers] Re: ListView with Simple adapter

2012-05-24 Thread imran ali
Hi, why are you doing this View row=super.getView(position, convertView, parent); though you are in getView() Method. so you will get convertView that is same. Ok, follow this, if(convertview==null){ 1. inflate view, 2. check type of data and set visibility 3.set tag

[android-developers] Re: Listview with multiple layout

2012-05-21 Thread Mek Rama
Layout: Two layout xml files: 1)one layout for listview 2)another layout for list items. use two textview widget and arrange it one below other. Layout: 1)linear layout 2)relative layout or use combination of relative and linear application code: use i)SimpleCursorAdapter ii)custom

[android-developers] Re: Listview of programmatically created Drawables

2012-04-02 Thread Gene
Thanks. I ended up wrapping the Drawable in a custom View. It wasn't hard and I can control the appearance with custom attributes, which is very nice. On Mar 25, 3:41 am, Kostya Vasilyev kmans...@gmail.com wrote: Set them as background objects for some views that appear in your item layouts.

Re: [android-developers] Re: Listview of programmatically created Drawables

2012-03-25 Thread Kostya Vasilyev
Set them as background objects for some views that appear in your item layouts. Or use image views and set them as 'src' images (this way you'll have better control over scaling and clipping). 25.03.2012 5:29 пользователь Gene gene.ress...@gmail.com написал: How can you get programmed stroked

[android-developers] Re: Listview of programmatically created Drawables

2012-03-25 Thread tomc_apadmi
I haven't done anyting like what you are trying before but my best guess would be to create your own custom view overriding onDraw(). The below link might be useful. http://stackoverflow.com/questions/2763572/override-ondraw-to-change-how-the-drawing-occurs-android -- You received this message

[android-developers] Re: Listview of programmatically created Drawables

2012-03-24 Thread Gene
How can you get programmed stroked Drawables (not bitmaps) to appear in the lines of a ListView? On Mar 23, 1:36 am, TreKing treking...@gmail.com wrote: On Thu, Mar 22, 2012 at 9:42 PM, Gene gene.ress...@gmail.com wrote: ListView seems to be the way to go, but I can't grok how to make

[android-developers] Re: ListView header/footer problem

2012-03-22 Thread Jason Tian
I've had a similar problem. And here is my solution: Put the header/footer in another wrapper layout (e.g. a FrameLayout maybe), and set this wrapper to be the header/footer. Hope it works. 在 2012年3月19日星期一UTC+8下午2时56分31秒,gropapa写道: hello guys, I have an expandableListView in wich i add a

[android-developers] Re: listview populate from external url

2012-02-21 Thread moktarul anam
Hi Abu, http://ofertaweb.ro/android/sleepandlovemusic/list_files.php api output is one string u can do this way , 1. get the content of that url in string format String output = Crickets_near_a_River:::Waterfall:::rainforest_sound:::Quick_Rain:::Atlantic_Ocean..; 2. string split of ::: and

[android-developers] Re: listview search improve performance

2012-02-09 Thread skink
On 9 Lut, 12:43, vani reddy vani.reddy.bl...@gmail.com wrote: I am not able to avoid creating a new adapter after every search. see AbsListView.html#attr_android:textFilterEnabled AbsListView already supports all you need to perform row filtering: it creates temp TextView that displays

Re: [android-developers] Re: ListView item into ListView

2012-01-31 Thread Narendra Singh Rathore
On Tue, Jan 31, 2012 at 1:46 AM, fala70 fal...@gmail.com wrote: then ? what is the best solution to use a list variable items into an item listview ? Hey, what about ExpandableListView? Try that, may be helpful for you. With Regards, NSR -- You received this message because you are

Re: [android-developers] Re: ListView item into ListView

2012-01-31 Thread Narendra Singh Rathore
On Tue, Jan 31, 2012 at 1:46 AM, fala70 fal...@gmail.com wrote: then ? what is the best solution to use a list variable items into an item listview ? Hey, What about ExpandableListView? Try that, may be helpful for you. -- You received this message because you are subscribed to the Google

[android-developers] Re: ListView item into ListView

2012-01-30 Thread fala70
then ? what is the best solution to use a list variable items into an item listview ? On 30 Gen, 18:01, TreKing treking...@gmail.com wrote: On Mon, Jan 30, 2012 at 10:25 AM, fala70 fal...@gmail.com wrote: Any Idea ? Don't use ListViews within ListViews. That doesn't really make sense. Also,

Re: [android-developers] Re: ListView item into ListView

2012-01-30 Thread TreKing
On Mon, Jan 30, 2012 at 2:16 PM, fala70 fal...@gmail.com wrote: what is the best solution to use a list variable items into an item listview ? Best is debatable. If you just need a list of items, one after another, a LinearLayout should suffice.

[android-developers] Re: Listview and expandablelistview

2012-01-13 Thread FiltrSoft
well the profit part may be a little tricky, with Android. ;) On Jan 13, 10:10 am, TreKing treking...@gmail.com wrote: On Fri, Jan 13, 2012 at 3:28 AM, Uday Gokhale gokhale.u...@gmail.comwrote: How can i achieve this. Learn to program, read the docs, read the samples, write some code, fail,

[android-developers] Re: ListView + EditText

2011-11-01 Thread Kumar Bibek
I think it's possible. But I have never tried though. But what I have learnt is that ListView aren't the best way to handle such an UI. This link would perhaps give you some more insights. http://groups.google.com/group/android-developers/browse_thread/thread/50f0fc185da8fe4d On Nov 1, 7:23 

[android-developers] Re: Listview based on CursorAdapter, how to skip displaying a row?

2011-10-20 Thread lbendlin
instead of skipping the row can you set the row height to zero? -- 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 to

Re: [android-developers] Re: Listview based on CursorAdapter, how to skip displaying a row?

2011-10-20 Thread Kostya Vasilyev
That should work, provided that item separators are disabled in the list view and added instead to layouts for the visible items. 20.10.2011 21:00, lbendlin пишет: instead of skipping the row can you set the row height to zero? -- You received this message because you are subscribed to the

[android-developers] Re: listview adapter. Recycle bitmap

2011-10-17 Thread emanuele
Putting the bitmap reference in the convertview tag and retrieve the tag when The getview is called could be a solution? On 17 Ott, 04:41, IcedNet d...@icednet.info wrote: You should look into Romain Guy's 2009/10 Google I/O presentations on UI -- he is the whip with ListViews/UI. If you're

[android-developers] Re: ListView disappears after return from activity

2011-10-16 Thread Ali Chousein
My first wild guess is that you might a problem in your onStart or onResume of the activity which hosts your ListView. - Ali Chousein Weather-Buddy http://weatherbuddy.blogspot.com/ Geo-Filtered Assistant http://geo-filtered-assistant.blogspot.com/

[android-developers] Re: listview adapter. Recycle bitmap

2011-10-16 Thread Studio LFP
Based on the code there, you wouldn't have the chance to recycle the bitmap as you don't keep a handle to it anywhere. Then again, if the ListView discards that particular row and you aren't retaining any handles to the bitmap, then the bitmap should be scheduled for collection by the GC. If

[android-developers] Re: listview adapter. Recycle bitmap

2011-10-16 Thread IcedNet
You should look into Romain Guy's 2009/10 Google I/O presentations on UI -- he is the whip with ListViews/UI. If you're looking for what I think you're looking to do -- which is speed up that list view -- he has a view holder pattern that will do just that. Peace, Dan On Oct 16, 10:08 pm, Studio

Re: [android-developers] Re: ListView Row not firing the click event

2011-10-07 Thread NaveenShrivastva
Thanks very i have resolved the issue, i want to share you issue resign is layout handling in frame layout need liner layout with button On Fri, Oct 7, 2011 at 9:56 AM, NaveenShrivastva kumarnaveen.si...@gmail.com wrote: Now i am trying thanks very much for this kind of precious information

Re: [android-developers] Re: ListView Row not firing the click event

2011-10-07 Thread NaveenShrivastva
Now expandable listview child click work fine but listview row child click not working. On Fri, Oct 7, 2011 at 12:25 PM, NaveenShrivastva kumarnaveen.si...@gmail.com wrote: Thanks very i have resolved the issue, i want to share you issue resign is layout handling in frame layout need liner

Re: [android-developers] Re: ListView Row not firing the click event

2011-10-07 Thread NaveenShrivastva
Now expandable listview child click work fine but listview row child click not working. On Fri, Oct 7, 2011 at 12:47 PM, NaveenShrivastva kumarnaveen.si...@gmail.com wrote: Now expandable listview child click work fine but listview row child click not working. On Fri, Oct 7, 2011 at 12:25

[android-developers] Re: ListView Row not firing the click event

2011-10-06 Thread dilo.mt
Hi, There is nothing wrong with the code above. You have said when the image button clicks, it works. And you need to make the whole entry clickable. all the buttons by default clickable. I think you have image button and text or what ever inside a linear layout or relative layout. make sure the

Re: [android-developers] Re: ListView Row not firing the click event

2011-10-06 Thread NaveenShrivastva
Now i am trying thanks very much for this kind of precious information On Thu, Oct 6, 2011 at 9:42 PM, dilo.mt dassanayake.dila...@gmail.com wrote: Hi, There is nothing wrong with the code above. You have said when the image button clicks, it works. And you need to make the whole entry

Re: [android-developers] Re: ListView and MotionEvent

2011-10-03 Thread John Goche
On Mon, Oct 3, 2011 at 3:57 AM, Studio LFP studio@gmail.com wrote: The HTC Hero is fairly old. I keep one around because it's quite slow and if I can make something function fast on it, it will run exceptionally well on new hardware. As a curiosity does it have two way na vigation (just

Re: [android-developers] Re: ListView and MotionEvent

2011-10-03 Thread John Goche
I also noticed that a disabled button can be focused, which could require having to design a separate icon. I don't understand the point of this combination: if a button is disabled why does android make it possible for it to receive the focus? Regards, John Goche On Mon, Oct 3, 2011 at 12:00

Re: [android-developers] Re: ListView and MotionEvent

2011-10-03 Thread Studio LFP
The HTC Hero has a little ball that can go any direction. So it will work left/right and up/down. With the keyboard, you should be getting onKeyEvents. Override that and watch for different keycodes and events. http://developer.android.com/reference/android/view/KeyEvent.html I think disable

[android-developers] Re: listview with images: postInvalidate problems

2011-10-02 Thread skink
John Goche wrote: Hello, I am overriding SimpleAdapter to add an image to a listview. When I call postInvalidate() inside my onClickListener it is only when the views are scrolled off the screen and then back on screen that the images are updated. The images in the rows which are not off

Re: [android-developers] Re: listview with images: postInvalidate problems

2011-10-02 Thread John Goche
Thanks, that works! ((SimpleAdapter) FooActivity.this.listView.getAdapter()).notifyDataSetChanged(); The other function (postInvalidate()) was only refreshing stuff off the list. Makes me wonder what use it may have. Best Regards, John Goche On Sun, Oct 2, 2011 at 10:07 AM, skink

[android-developers] Re: ListView and MotionEvent

2011-10-02 Thread Studio LFP
You've got it right. Just make sure you are catching MotionEvent.ACTION_CANCEL and MotionEvent.ACTION_OUTSIDE. Return false in onTouch to allow it to pass to the Click and LongClick, but change your colors in the onTouch. Steven Studio LFP http://www.studio-lfp.com -- You received this

Re: [android-developers] Re: ListView and MotionEvent

2011-10-02 Thread John Goche
Thank you Steven for your reply, Would you be able to provide some insight on the difference between ACTION_CANCEL and ACTION_UP. I am somewhat fuzzy on the concept. Anyways, I'm going to give it a go. Thanks, John Goche On Sun, Oct 2, 2011 at 11:36 PM, Studio LFP studio@gmail.com wrote:

Re: [android-developers] Re: ListView and MotionEvent

2011-10-02 Thread Studio LFP
An ACTION_CANCEL is sent in the case where the user puts their finger down on a ListView item (or similar) and then starts to scroll. Since the ListView is using it as a scroll command and your finger may stay inside the view, it sends this to cancel the touch on your view. The ACTION_OUTSIDE

Re: [android-developers] Re: ListView and MotionEvent

2011-10-02 Thread John Goche
Thanks, apparently I was able to get it to work perfectly following your advice. What I have not implemented is the code for trackball and joystick devices which seem to generate their own events as described at: http://developer.android.com/reference/android/view/MotionEvent.html Just how old

Re: [android-developers] Re: ListView and MotionEvent

2011-10-02 Thread Studio LFP
The HTC Hero is fairly old. I keep one around because it's quite slow and if I can make something function fast on it, it will run exceptionally well on new hardware. On the tablet you can use both a wired and a Bluetooth mouse (I've used a wired mouse and Bluetooth keyboard simultaneously).

Re: [android-developers] Re: ListView: responding to item clicks via a listener

2011-09-21 Thread Streets Of Boston
Try not to do this. It will break the UI model that Android users expect on their phones. However, if you really need it: 1. Modify the data items that are handled by your ListView's adapter. Add an field that could tell how many times a list-item has been clicked (e.g. numberOfClicks). 2.

Re: [android-developers] Re: ListView: responding to item clicks via a listener

2011-09-20 Thread John Goche
Hello, I am having a slight problem with my approach. When a row is highlighted orange and I click on it the orange highlighting goes away. But I want it to stay as I want taps to 1. highlight the row on the first tap 2. take to a second screen on the second tap Is this possible? Thanks, John

[android-developers] Re: ListView: responding to item clicks via a listener

2011-09-19 Thread John Goche
Hello, The solution was to attach an onItemClick listener to each list item rather than to the ListView itself like so: SimpleAdapter adapter = new SimpleAdapter(this, maps, R.layout.alarmgroups_item, from, to) { @Override public View getView(int position, View convertView,

[android-developers] Re: ListView: responding to item clicks via a listener

2011-09-19 Thread Streets Of Boston
The solution you have may work, but it's not the best... keyboard/dpad navigation of your list won't work well. My question is: What about R.layout.alarmgroups_item. Could you show the alarmgroups_item.xml contents? Maybe one of the items in there is clickable and/or focusable. -- You

Re: [android-developers] Re: ListView: responding to item clicks via a listener

2011-09-19 Thread John Goche
On Mon, Sep 19, 2011 at 5:32 PM, Streets Of Boston flyingdutc...@gmail.comwrote: The solution you have may work, but it's not the best... keyboard/dpad navigation of your list won't work well. My question is: What about R.layout.alarmgroups_item. Could you show the alarmgroups_item.xml

  1   2   3   4   5   6   7   8   9   >