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

2016-02-19 Thread NIWEWE David
Hi! I have been working on something for more than 2 days, but only met roadblocks all around. I have a listView that is updated by a JSON array from the server, Each item is composed by 3 TextViews where one is not visible to the user and a EditText that is to be updated by the user. What I

[android-developers] ListView Switch

2016-01-10 Thread Javier Delgado
Hi! I´m working on an activity which shows all the apps installed on the phone, with its photo, name, and a switch. For showing the apps, photo and name I´ve used this example: http://javatechig.com/android/how-to-get-list-of-installed-apps-in-android For the switch I added to the

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

2015-12-01 Thread AbdulMajeed Mohammad
Could you please tell me how to do it in right way because I'm beginner ? On Tuesday, December 1, 2015 at 6:15:32 PM UTC+3, richarth wrote: > > You create the adapter with TelAdapter adapter = new TelAdapter > (MainActivity.this, R.layout.list_item, data); > > Data is empty so you aren't seeing

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

2015-12-01 Thread Richard Thompson
You create the adapter with TelAdapter adapter = new TelAdapter (MainActivity.this, R.layout.list_item, data); Data is empty so you aren't seeing anything. You need to get the data out of response instead. On 1 December 2015 at 12:16, AbdulMajeed Mohammad wrote: > Any

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

2015-12-01 Thread AbdulMajeed Mohammad
Any reply please?? -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. To post to this group, send email to

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

2015-11-30 Thread AbdulMajeed Mohammad
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 retrofit call, here the classes MainActivity.java public class MainActivity extends

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

2014-05-16 Thread plnelson
I have a listView in an android app which works fine when I first populate it - it displays and scrolls with no problem. But if I load in a new, smaller dataset and call notifyDataSetChanged() the app crashes because getView() gets called with a position value that's bigger than the dataset,

[android-developers] listview item layout change in SDK 18?

2014-01-30 Thread Jay Howard
The layout of ListView items seems to have changed in SDK 18. I've created an example project that highlights the different behavior when targetSdkVersio = 17 vs. 18: https://drive.google.com/file/d/0B6DvDY2BvxUTZHUxTHkzNUZvVDg Additionally I've started a thread on StackOverflow (with screen

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

2013-05-21 Thread Miha Valencic
On Tue, May 21, 2013 at 12:11 AM, Miha Valencic miha.valen...@gmail.com wrote: In this case, which is the correct state? I now see that state_activated works as expected, though as Kostya mentions, it is API Level 11 and beyond. Is there an alternatvive for API level 10? So... I've implemented

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

2013-05-21 Thread Kostya Vasilyev
Miha, On Tuesday, May 21, 2013 12:57:38 PM UTC+4, Miha wrote: Kostya, how do you handle checked states then? I see two possible solutions: 1) in OnItemClickListener, call adapter.setChecked(position), which sets the checked item position and then calls notifyDataSetChanged() 2) in

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

2013-05-21 Thread Miha Valencic
Hi Kostya! On Tue, May 21, 2013 at 8:37 PM, Kostya Vasilyev kmans...@gmail.com wrote: I call setChecked directly, because my checkbox tracking is in the same layout (although it's not a checkbox) To track selected items (for getView to do the right thing during scrolling, and to know what

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

2013-05-20 Thread Justin Anderson
On Thu, May 16, 2013 at 3:14 AM, Miha miha.valen...@gmail.com wrote: One possible solution I see is modifying the backing adapter implementation and providing a different view based on the state of the item, but that seems like wrong approach -- I would have to update the adapter with

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

2013-05-20 Thread Kostya Vasilyev
Maybe it's just me, but... On Monday, May 20, 2013 6:39:14 PM UTC+4, MagouyaWare wrote: On Thu, May 16, 2013 at 3:14 AM, Miha miha.v...@gmail.com javascript:wrote: One possible solution I see is modifying the backing adapter implementation and providing a different view based on the

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

2013-05-20 Thread Justin Anderson
That is actually more along the lines of what I was talking about, now that I think about it... Changing the background color or drawable for a selected item rather than inflating a completely different view. I didn't use a selector to do that, but I like that approach better. I was simply

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

2013-05-20 Thread Miha Valencic
Hi Kostja et al! On Mon, May 20, 2013 at 5:01 PM, Kostya Vasilyev kmans...@gmail.com wrote: Maybe it's just me, but... No, it's not just you. I also expect that framework should handle this. And it does, as long as list item layout does not have a background set. Let me prepare a demo, and

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

2013-05-20 Thread Romain Guy
The list selector is drawn by default under list items. You can either change it to draw on top (but you'll have to use custom drawables so the items are visible underneath) or use a background on your list items with a selected state. On Mon, May 20, 2013 at 11:19 AM, Miha Valencic

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

2013-05-20 Thread Miha Valencic
Hi everybody! On Mon, May 20, 2013 at 8:46 PM, Romain Guy romain...@android.com wrote: The list selector is drawn by default under list items. You can either change it to draw on top (but you'll have to use custom drawables so the items are visible underneath) or use a background on your

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

2013-05-20 Thread Miha Valencic
On Mon, May 20, 2013 at 9:23 PM, Miha Valencic miha.valen...@gmail.com wrote: Am I misunderstanding this statement: ...or use a background on your list items with a selected state.? Also, one more thing: does it even makes sense to use listselector (setSelector) if the background is a state

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

2013-05-20 Thread Romain Guy
The selected state is used when the item is focused using a keyboard. It has nothing to do with the choice mode. On May 20, 2013 12:32 PM, Miha Valencic miha.valen...@gmail.com wrote: On Mon, May 20, 2013 at 9:23 PM, Miha Valencic miha.valen...@gmail.com wrote: Am I misunderstanding this

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

2013-05-20 Thread Miha Valencic
On Mon, May 20, 2013 at 10:15 PM, Romain Guy romain...@android.com wrote: The selected state is used when the item is focused using a keyboard. It has nothing to do with the choice mode. In this case, which is the correct state? I now see that state_activated works as expected, though as Kostya

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

2013-05-16 Thread Miha
Hi! I'm trying to understand the mechanics behind highlighting the selected list item. I have a list fragment, which might display with a secondary details fragment if the screen width allows it. In that case, I want to highlight the selected list item. In order to do so, the listview has

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

2013-04-24 Thread yccheok
The following scenario is not uncommon under activity with list view. 1) Long pressed an item to enter multi-selection mode. 2) Select the desired item, then press an action button. For example, delete button. 3) Exit from multi-selection mode (CHOICE_MODE_MULTIPLE) to none-selection mode

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

2013-04-24 Thread yccheok
The following scenario is not uncommon under activity with list view. 1) Long pressed an item to enter multi-selection mode. 2) Select the desired item, then press an action button. For example, delete button. 3) Exit from multi-selection mode (CHOICE_MODE_MULTIPLE) to none-selection mode

[android-developers] ListView Navigation

2013-03-12 Thread arazlam101
I have a basic question. On my main screen there is a listview which should navigates to another listview. It is like a category and then subcategory choice screen. For each subcategory view, should I create new activity or can I pass the position value from first listview to create second

[android-developers] Listview items focus change event

2013-03-12 Thread Shashidhar
Hi, I have an application which has a custom listview. I run it on a smart tv android device and the whole navigation is based on the standard keyboard arrow buttons. I am able to scroll up and down through the list items using up and down arrow keys. When I scroll using keys, the list selector

Re: [android-developers] ListView Navigation

2013-03-12 Thread Nirav Parmar
In my opinion creating new activity or fragment will be better choice. If you will just change the content in list.I am afraid how you will return back from that subcategory to category as back will end that activity. On Sun, Mar 10, 2013 at 12:19 AM, arazlam...@gmail.com wrote: I have a basic

[android-developers] ListView background

2013-02-28 Thread bob
When I'm scrolling my white ListView, for some reason, the background turns black. Any ideas what could cause this? 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] ListView background

2013-02-28 Thread Romain Guy
Hey bob, Here's a blog post I wrote on the topic a while back: http://android-developers.blogspot.com/2009/01/why-is-my-list-black-android.html On Thu, Feb 28, 2013 at 12:18 PM, bob b...@coolfone.comze.com wrote: When I'm scrolling my white ListView, for some reason, the background turns

[android-developers] ListView and SimpleAdapter: how to set different background image.

2013-02-11 Thread Summer
Here is the part of the code: I am trying to set different background image based on another text view field. How to access another text view content in *setViewValue*? Many thanks! protected void onPostExecute(Voucher result) { final ListAdapter adapter = new SimpleAdapter(list.getContext(),

[android-developers] ListView content thread sync cases

2013-01-25 Thread Bill Michaelson
I have a Service that runs a distinct Thread to update a list based on external events. This list is simultaneously used to back ListViews in associated Activities. The Activities may also update the list based on UI events. I need to provide appropriate synchronization. I have coded a

[android-developers] ListView select a row

2013-01-25 Thread dashman
I have a ListView with a ListAdapter. When the user clicks on a row - i'd like to show that row as selected (i.e. hilighted). actually make it a toggle. how do i do that. -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this

Re: [android-developers] ListView select a row

2013-01-25 Thread TreKing
On Fri, Jan 25, 2013 at 11:53 AM, dashman erjdri...@gmail.com wrote: I have a ListView with a ListAdapter. When the user clicks on a row - i'd like to show that row as selected (i.e. hilighted). actually make it a toggle. how do i do that. Keep the selection state as part of your data

Re: [android-developers] ListView select a row

2013-01-25 Thread dashman
Thanks I will do that. There seems to be api for selectedIndex etc - but not sure what they're for?? How can I find the hi-light color (based on the current active theme). On Friday, January 25, 2013 1:46:06 PM UTC-5, TreKing wrote: On Fri, Jan 25, 2013 at 11:53 AM, dashman

Re: [android-developers] ListView select a row

2013-01-25 Thread Kostya Vasilyev
On Friday, January 25, 2013 11:57:17 PM UTC+4, dashman wrote: Thanks I will do that. There seems to be api for selectedIndex etc - but not sure what they're for?? They're for keeping track of user selected items. For example, listView.setChoiceMode(ListView.CHOICE_MODE_SINGLE) will

Re: [android-developers] ListView select a row

2013-01-25 Thread dashman
having trouble setting it. ListView android:id=@+id/listView android:listSelector=@android:drawable/activatedBackgroundIndicator android:layout_width=match_parent android:layout_height=match_parent /ListView not working - what am i doign wrong -- --

Re: [android-developers] ListView select a row

2013-01-25 Thread Kostya Vasilyev
You need to set this on list items as the background, not on the list view. And the syntax is ?android:attr/blahblah, you want to reference a theme attribute. -- K 2013/1/26 dashman erjdri...@gmail.com: having trouble setting it. ListView android:id=@+id/listView

Re: [android-developers] ListView select a row

2013-01-25 Thread dashman
here's what i'm trying now - in my theme file style name=AppBaseTheme parent=android:Theme.Holo.Light !-- API 11 theme customizations can go here. -- item name=my_color?android:attr/selectableItemBackground/item /style where my_color is defined in attrs.xml as

[android-developers] listview layout shows huge gap in space between each items

2013-01-23 Thread John Merlino
I have an xml layout with a listview item in it that looks like this: LinearLayout xmlns:android=http://schemas.android.com/apk/res/ android android:layout_width=fill_parent android:layout_height=fill_parent android:background=#F7681D android:clickable=false

Re: [android-developers] listview layout shows huge gap in space between each items

2013-01-23 Thread Boyd Speer
Try removing the paddingTop=10 lines On 2013-01-23, at 7:03 PM, John Merlino stoici...@aol.com wrote: I have an xml layout with a listview item in it that looks like this: LinearLayout xmlns:android=http://schemas.android.com/apk/res/ android android:layout_width=fill_parent

[android-developers] [ListView] How can I animate one single ListView item (entry) dynamically ?

2013-01-07 Thread Maruen
Hi dear Engineers, Here's the issue: I have this main ListView (retrieved using this.getListView() ) in a ListActivity properly populated from a SQLite database. A click on one of its items (entries) calls another activity A2 using startActivityForResult(). I would like to animate that SINGLE

[android-developers] listview inside gridview

2013-01-07 Thread louis
這是一個樣品的日曆使用 GridView控件 ,現在我想在日曆的“天”添加新的東西,所以我想我可以使用 ListView的 佈局,在一個月的一天,現在我有一個問題,我的listview not scrolling ! -- 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

[android-developers] ListView with Editable components

2012-12-11 Thread Leonardo Aramaki
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 focus issues. That being said, what I would like to know is if it's a design issue of the engineers not to do things this way, or just some devs personal opinions?

[android-developers] ListView one item per screen

2012-12-11 Thread Dmitriy F
Since DirectionalViewPagerhttps://github.com/JakeWharton/Android-DirectionalViewPager is deprecated now, I need some way to mimic its' vertical paging functionlity. First thing that comes to my mind is ListView, but I'd like some tips for implementing row per screen funcitonality - where do

[android-developers] ListView: row content independent clickable areas

2012-10-29 Thread Marcin Orlowski
Hi, I am trying to achieve listview row layout that would let me use click areas (views i could bind OnClickListener to) no matter on real row content. I do not want to use OnTouchListener, so my attempt is based on using RelativeLayout and overlay real row content with click areas. But for some

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

2012-10-19 Thread Jacek Jabłoński
Hi, I have problem in my app. I have CursorLoader in conjcution with CursorAdapter. Everything works as expected, except one condition: when I have some items on ListView and I swap cursor in adapter for cursor that is empty, visible items aren't deleted (only dividers between rows disappear).

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

2012-10-19 Thread Justin Anderson
I've never used a cursor with an adapter, but in general, when your adapter changes you need to call notifyDataSetChanged() on your adapter to let it know that the data needs to be refreshed... The adapter will then tell the listview it needs to update itself. Also, you shouldn't have to set the

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

2012-10-19 Thread Jacek Jabłoński
Thanks for your reply. I've tried notifyDataSetChanged() previously, but it doesn't do the work. The only situation with refreshing ListView problem is only when I swap cursor for cursor that doesn't contain any elements. I think, I need toswap out the data because I am using CursorLoader.

[android-developers] Listview with Scrollbar

2012-10-17 Thread gd
I have an activity containig an imageview and a listview below imageview within a scrollbar. The problem is when i scroll up to see the listview items and just after that when i go to back or home screen and returns again to that screen the listview has seen in the front of the screen instead

[android-developers] Listview - Header , footer issue

2012-10-09 Thread Jovish P
In one of screen we want to come up with a desing like this Textview Listview Textview Listview First we thought of putting everything inside a linear layout with vertical orientation and put that layout inside a scroll view. Then we come to know that it is not a good idea. So right now what we

[android-developers] listview row button click

2012-10-05 Thread vani reddy
HI, I have a listview which has a button in each row of listview,What I am doing is on click of 2 nd row button I am disabling it, after scrolling the listview whe i come back to 2nd row of listview , even buttons in the 3rd and 4th row are also disabled, though i did not disable them. How

Re: [android-developers] listview row button click

2012-10-05 Thread rambabu mareedu
Here the problem is you inflating only one xml file in each view , so if your disabling button in one view it will effect in all views. -- 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] listview row button click

2012-10-05 Thread Justin Anderson
Here the problem is you inflating only one xml file in each view , so if your disabling button in one view it will effect in all views. This is not the reason for the problem... I have a listview which has a button in each row of listview,What I am doing is on click of 2 nd row button I am

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

2012-09-20 Thread Chance Sanders
Guys, I'm having one hell of a time here trying to listen for the 'on click' for this ListView. Every single thing I've seen when searching Google, I've tried (or at least think I've tried). I've even set the TextView and ImageView in the XML to not be clickable or focusable, but that didn't

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

2012-09-20 Thread Justin Anderson
Maybe I missed it, but I don't see anywhere in your code that you are even trying to capture a click event for the items in the listview... https://developer.android.com/reference/android/widget/AdapterView.html#setOnItemClickListener%28android.widget.AdapterView.OnItemClickListener%29 Thanks,

[android-developers] Listview Selector

2012-09-12 Thread Lars
Hi i got a problem with a listview, how can i get to change the state when my listview item is selected (in the use of multipane view) i only need to change that state the other states like pressed and things i like to keep default Thanks -- You received this message because you are

Re: [android-developers] Listview Selector

2012-09-12 Thread Kostya Vasilyev
Here is how I do it: ?xml version=1.0 encoding=utf-8? selector xmlns:android=http://schemas.android.com/apk/res/android; item android:drawable=@android:color/transparent android:state_pressed=true/ item android:drawable=@android:color/transparent android:state_selected=true/ item

[android-developers] ListView simple_list_item_activated_1 behaviour

2012-09-05 Thread Pankaj Chawla
Hi So ListView has a item layout 'simple_list_item_activated_1' which when used with ListView.CHOICE_MODE_SINGLE causes the item to stay activated causing a background highlight. ApiDemos has a sample under Lists/List17. The same item layout when used with

[android-developers] ListView problem while scrolling

2012-09-01 Thread LiTTle
Hi everyone, I am trying 4 days to solve this problem. I am trying to create the following feature: I have a ListView that the user can select an item. When the user selects the item the text will turn to pink. The ListView shows 6 items at once. You have to scroll to see other 6 and go on.

Re: [android-developers] ListView problem while scrolling

2012-09-01 Thread Mark Murphy
You only ever setting the color to be pink. You need to set the color to be not-pink as well, for cases where the row is recycled, was pink, and now no longer is supposed to be pink. On Sat, Sep 1, 2012 at 7:10 AM, LiTTle littlep...@gmail.com wrote: Hi everyone, I am trying 4 days to solve

Re: [android-developers] ListView problem while scrolling

2012-09-01 Thread LiTTle
I cannot believe it that is was a simple line! Thank you very much. I feel much more relaxed now. -- 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

[android-developers] Listview text size

2012-08-28 Thread RAM
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 this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to

Re: [android-developers] Listview text size

2012-08-28 Thread Justin Anderson
Use your own layout... Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Mon, Aug 27, 2012 at 9:39 PM, RAM ramon26c...@gmail.com wrote: how to resize the font size of a listview/gridview text -- You received this message because you are subscribed to

Re: [android-developers] Listview text size

2012-08-28 Thread Felipe Silveira
Just complementing... use your own layout for the list itens. On Tue, Aug 28, 2012 at 7:15 PM, Justin Anderson magouyaw...@gmail.comwrote: Use your own layout... Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Mon, Aug 27, 2012 at 9:39 PM, RAM

Re: [android-developers] listview hashmap checkbox

2012-08-24 Thread Justin Anderson
im working on a customized listview(hashmap) I can't think of a scenario where you would want to use a hashmap for a ListView. ListView requires index positions for everything and a hashmap doesn't provide that functionality. the isue is that i can't use the values of some textviews when the

[android-developers] listview hashmap checkbox

2012-08-16 Thread anasKun
hello everyone im a beginner at android and im working on a customized listview(hashmap) with images, textviews and checkboxes the isue is that i can't use the values of some textviews when the checkbox is checked if anyone'zs familliar with this i can post the code plzz help -- You received

[android-developers] ListView in home screen widget (ICS) shows old (cached?) data sometimes

2012-08-16 Thread qkx
I've home screen widget with ListView inside (Android 4.x - ICS), and after some change the listed items are not correctly displayed - I mean, the old data are displayed. Its always in this way: 1. visible part of listview has ALWAYS good (= new) data displayed 2. invisible part of

[android-developers] Listview in Wifi

2012-08-10 Thread Meena Rengarajan
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 please ? wifi.startScan(); int length = 10; String[] str1 =new String[length];

Re: [android-developers] ListView sorting

2012-08-10 Thread Wolfgang
Thanks for the reply. I figured it out. I sorted in the ArrayAdapter. -- 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] Listview in Wifi

2012-08-10 Thread TreKing
On Fri, Aug 10, 2012 at 6:39 AM, Meena Rengarajan meenasoft...@gmail.comwrote: 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 ? How you wanna do anything is really up to you.

[android-developers] ListView sorting

2012-08-09 Thread Wolfgang
Hey guys, I'm using a ListView that displays a list of ChartInfo. ChartInfo is a class I wrote that contains two strings: name, type; and a boolean: notification. The ListView is sorting the charts based on name. I would prefer that it sorts first based on the boolean, notification, and then

Re: [android-developers] ListView sorting

2012-08-09 Thread Mark Murphy
You need to either sort the data before you hand it to the adapter, or teach the adapter how to do the sorting. On Thu, Aug 9, 2012 at 2:48 PM, Wolfgang wolfgangemm...@yahoo.com wrote: Hey guys, I'm using a ListView that displays a list of ChartInfo. ChartInfo is a class I wrote that

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

2012-07-27 Thread Sergio Panico
Hi all, I need your help to understand the refresh behaviour of a ListView where I've defined a my custom view for the ListView's items. I think It's better explain it with an example: my adapter contains 7 items: A, B, C, D, E, F, G correctly initialized, filled and working. The associated

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

2012-07-27 Thread Justin Anderson
Look at and implement these methods: http://developer.android.com/reference/android/widget/Adapter.html#getItemViewType(int) http://developer.android.com/reference/android/widget/Adapter.html#getViewTypeCount() Thanks, Justin Anderson MagouyaWare Developer

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

2012-07-27 Thread Kostya Vasilyev
I'm not seeing any evidence why getViewTypeCount() or getItemViewType() would be needed. Based on the description, the items views appear to be homogeneous. It looks weird to me that public void refreshView does not take an int position parameter. How does it know that it needs to set the views

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

2012-07-27 Thread Justin Anderson
I'm not seeing any evidence why getViewTypeCount() or getItemViewType() would be needed. Based on the description, the items views appear to be homogeneous. I misunderstood his post... I thought A,B,C,D,E,F, and G were each different custom view types... Thanks, Justin Anderson MagouyaWare

Re: [android-developers] ListView and check box.

2012-07-26 Thread Justin Anderson
You might also want to set focusableInTouchMode to false as well... Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Wed, Jul 25, 2012 at 11:11 PM, TreKing treking...@gmail.com wrote: On Wed, Jul 25, 2012 at 10:59 PM, Put_tiMe putt...@gmail.com wrote:

[android-developers] ListView and check box.

2012-07-25 Thread Put_tiMe
I'm using a list view with a custom adapter. And the row contains a check box. Without the check box, everything works fine. If I use a check box inside a list-view row, then I basically don't get a on-item-click callback. The other side effect is, the click or press visual feedback is also

Re: [android-developers] ListView and check box.

2012-07-25 Thread TreKing
On Wed, Jul 25, 2012 at 10:59 PM, Put_tiMe putt...@gmail.com wrote: But I couldn't figure out any way of getting the visual feedback to work. Is there anyway I can get the visual feedback to work? The Checkbox is stealing focus. Set focusable=false on it.

Re: [android-developers] Listview or Table Layout- For Items with a Header and display some dynamic data rows with style

2012-07-12 Thread maccoy
Thanks for pointing to that. On Wednesday, July 11, 2012 10:55:57 AM UTC+5:30, TreKing wrote: On Wed, Jul 11, 2012 at 12:03 AM, maccoy maccoy2...@gmail.com wrote: What would be the best case: Considering we have the formatting in XML and the data rows are just dynamic display of content.

[android-developers] ListView - Expandable items and scrolling

2012-07-11 Thread Tolriq
Hello, I'm currently facing a problem and the solution I use does not satisfy me. I'm pretty sure there's a correct way to handle this case so I ask here :) My problem is simple I have a listview with items that have a gone part that I show on the last clicked item. This part works well, I also

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

2012-07-11 Thread Justin Anderson
I'm not sure I understand exactly what you are trying to do... But from the code you posted, it looks like you are wanting to change the view of the last clicked item somehow. This should really be handled by the getView() method of your adapter. You would need to write a custom adapter to do

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

2012-07-11 Thread Tolriq
Thanks for answer. Changing the view is not the problem it's more telling the listview that the item have changed. I already have a custom Cursor adapter but the getview is not called for click only for select. The need is to get sure that the listview scroll enough for the entire row to be

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

2012-07-11 Thread Justin Anderson
You are not looking at it from the right perspective... I promise that if you do it the way that I explained it will work. The listview is nothing more than a visual representation of your data model. The fact that one item in this list needs to be displayed differently from the rest is

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

2012-07-11 Thread Tolriq
Well must I admit this is the correct way to handle the item row change. (Never thought of using *notifyDataSetChanged *on a non changed data to force refresh :p) This will cause 10 or more lines to redraw instead of just a change of visibility of one view but since only happening on item

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

2012-07-11 Thread Justin Anderson
(Never thought of using *notifyDataSetChanged *on a non changed data to force refresh :p) Except that the data is changed... remember, you are now keeping track of the last clicked position as part of your data model. Thanks, Justin Anderson MagouyaWare Developer

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

2012-07-11 Thread Justin Anderson
(Never thought of using *notifyDataSetChanged *on a non changed data to force refresh :p) Except that the data is changed... remember, you are now keeping track of the last clicked position as part of your data model. And you not only have to change the view for the last clicked item, but

[android-developers] Listview with data from webservice

2012-07-11 Thread Jorge Padilla
Hi, I'm a new android developer. How I can create a listview that will be loaded with data from a webservice as I scroll through the list? -- 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] Listview with data from webservice

2012-07-11 Thread Justin Anderson
So what are you needing help with? Creating a list view? Getting data from a Web server? On Jul 11, 2012 5:46 PM, Jorge Padilla jorge.esteban.padi...@gmail.com wrote: Hi, I'm a new android developer. How I can create a listview that will be loaded with data from a webservice as I scroll through

[android-developers] Listview or Table Layout- For Items with a Header and display some dynamic data rows with style

2012-07-10 Thread maccoy
The formatting of the header and detail row is defined in layout.XML. In this case, is it good to use 1. Table Layout and create details views by inflating the layout.xml(so that formatting is available) 2. Or Create a Listview for the details and a Linear layout representing the

Re: [android-developers] Listview or Table Layout- For Items with a Header and display some dynamic data rows with style

2012-07-10 Thread TreKing
On Wed, Jul 11, 2012 at 12:03 AM, maccoy maccoy2...@gmail.com wrote: What would be the best case: Considering we have the formatting in XML and the data rows are just dynamic display of content. Probably ListView.

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

2012-06-20 Thread Simon Giddings
I have a TabActivity containing a series of four tabs and a listview. Each of the tabs reference the same listview. When the activity is initially displayed, the listview is not displayed. However, clicking on another tab will display it correctly and clicking back on the first tab will also

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

2012-06-20 Thread Mark Murphy
On Wed, Jun 20, 2012 at 11:41 AM, Simon Giddings mr.s.giddi...@gmail.com wrote: I have a TabActivity containing a series of four tabs and a listview. Each of the tabs reference the same listview. I have no idea if this is supported. What is the solution ? Try using separate ListViews, one

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

2012-06-20 Thread Justin Anderson
Just out of curiosity, try doing this: *tabhost.setCurrentTab(1); tabhost.setCurrentTab(0); * Does your list show up at that point? Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Wed, Jun 20, 2012 at 9:41 AM, Simon Giddings

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

2012-06-20 Thread Justin Anderson
Also, what does your OnTabChangedListener code do? Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Wed, Jun 20, 2012 at 9:46 AM, Justin Anderson magouyaw...@gmail.comwrote: Just out of curiosity, try doing this: *tabhost.setCurrentTab(1);

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

2012-06-20 Thread Simon Giddings
Wow, I hadn't expected replies so quickly ! @MagouyaWare - To answer your question, the OnTabChangedListener code rebuilds the listview content. I have indeed stepped through this to ensure that it does this correctly before the first display. If I call tabhost.setCurrentTab(1) instead of

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

2012-06-20 Thread Justin Anderson
If I call tabhost.setCurrentTab(1) instead of tabhost.setCurrentTab(0), then the initial display is correct. I think you misunderstood me... I wanted you to call both of them... First, set the current tab to 1 and then to 0... Does the listview display correctly on tab 0 if you do this? My

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

2012-06-20 Thread Simon Giddings
Hi Justin, Yes, you are right. I went too fast in my reply. I did indeed make the two calls and it did indeed work. I was wanting to limit the number of resources needed in this activity - where in my use of one unique ListView. After this short discussion, I think I will try to use a single

[android-developers] ListView not rendering completely in certain animation conditions

2012-06-19 Thread Richard Nelson
When an animation plays on a ListView which is placed on top of a VideoView in a RelativeLayout (this happens when the ListView is placed above some other view types as well, but not for example, ImageView), the ListView is not rendered entirely. If requestLayout() is called on the listview on

[android-developers] ListView HighLight when clicking the itemView

2012-06-18 Thread Raphael
I just wonder how to cancel the highlighting effects of the sub-item of the ListView,when pressing mouse down on it. -- 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

Re: [android-developers] ListView HighLight when clicking the itemView

2012-06-18 Thread Justin Anderson
If I understand your question correctly, just override the listview's selector... You can do this with the the android:listSelector property. Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Mon, Jun 18, 2012 at 4:24 AM, Raphael raphael.li...@gmail.com

  1   2   3   4   5   6   7   8   >