[android-beginners] listview single resizeable button

2010-07-27 Thread calmchess
I have a list view witch is instantiated through the XML document what i would like to do is add a single button at the top of the list.I've accomplished this by adding a coded button to oncreate and using addheaerview to add it to the top of the list the problem is the button extends the full

Re: [android-beginners] listview dropdown

2010-07-21 Thread Raul Martinez
i was looking through the reference on the android site and found what i was looking for http://developer.android.com/reference/android/widget/ExpandableListAdapter.html :) thanks for the help On Thu, Jul 22, 2010 at 12:23 AM, Justin Anderson wrote: > Have you done any research yourself on this?

Re: [android-beginners] listview dropdown

2010-07-21 Thread Raul Martinez
I tried but I guess I was using the wrong terms, thanks On Jul 22, 2010 12:25 AM, "Justin Anderson" wrote: I was wrong about my search terms becaues I realized that "onclick" might be something that only a more seasoned android developer would think of searching. The search terms for the links

Re: [android-beginners] listview dropdown

2010-07-21 Thread Justin Anderson
I was wrong about my search terms becaues I realized that "onclick" might be something that only a more seasoned android developer would think of searching. The search terms for the links I posted in my last message were simply: android listview click Hope that helps, Justin

Re: [android-beginners] listview dropdown

2010-07-21 Thread Justin Anderson
Have you done any research yourself on this? Just doing a simple search for "android listview onclick" gave me several results: *Searching Google: *http://www.androidpeople.com/android-listview-onclick/* * http://www.softwarepassion.com/android-series-custom-listview-items-and-adapters/ * Search

[android-beginners] listview dropdown

2010-07-21 Thread Raul Martinez
i have a list and when i click it i want it to open up with a drowdown of the description of the item, is there a tutorial on that? -- You received this message because you are subscribed to the Google Groups "Android Beginners" group. NEW! Try asking and tagging your question on Stack Overflow

[android-beginners] ListView TextFilter..Broken?

2010-06-22 Thread HeyYouThere
Hi everyone, My issue is simplebelow is the code. When the list filters, and the person clicks, no matter what the position is on 0...Can I do it by the string name in the listview instead of the position? public void onListItemClick(ListView l, View v, int position, long id) {

Re: [android-beginners] ListView refresh in ListActivity

2010-06-22 Thread Mark Murphy
On Tue, Jun 22, 2010 at 9:26 AM, beedaddy wrote: > But I also tried to trigger this with a requery() on > the cursor. That technique works fine: http://github.com/commonsguy/cw-android/tree/master/Database/Constants/ -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/com

[android-beginners] ListView refresh in ListActivity

2010-06-22 Thread beedaddy
Hello, I have a ListActivity with a custom CursorAdapter. Using a ContextMenu I delete a row from the database. My problem is, that after deleting the row, the ListView is not updated. IIRC the ListView should refresh automatically. But I also tried to trigger this with a requery() on the cursor.

Re: [android-beginners] ListView

2010-06-15 Thread Nam Ngo
Hi, I should also note that there are just many ways to implements the layout you specify, you can also try other methods, such as: a row of list view is a scroll view with dynamically populated LI in it (by code) Regards, Nam PS: I will post another method if I can figure out more, contact me i

Re: [android-beginners] ListView

2010-06-15 Thread Nam Ngo
Hi, >From my point of view, you may want to try 1. GridView 2. Expanable list view 3. ListView with each row is a Gallery. That should serve your purpose with simple steps. Regards, Nam Because you may not want a scroll bar in the horizontal list On Tue, 2010-06-08 at 12:24 -0700, Sandy wrote

[android-beginners] ListView

2010-06-08 Thread Sandy
Is it possible to have a horizontal list view with an vertical list view? I would like to horizontal list scroll within a vertical list scroll. Any suggestions please? |-| | ListItem | |--| | ListItem

Re: [android-beginners] ListView Selection Help

2010-05-24 Thread TreKing
On Mon, May 24, 2010 at 4:06 PM, chris_green1...@yahoo.com < chris_green1...@yahoo.com> wrote: > Anyone know how to fix this? Since you are using setListAdapter, I assume you're using a ListActivity, which has onListItemClick(). --

[android-beginners] ListView Selection Help

2010-05-24 Thread chris_green1...@yahoo.com
Hello I have, ArrayAdapter MainList = new ArrayAdapter(this,android.R.layout.simple_list_item_1, types); MainList.setItemOnClickListener(//...); setListAdapter(MainList); I have a Basic List and when I click on a list element I want to display a Toast of what was clicked but the only method I f

[android-beginners] ListView items cut off in 1.5, but not 1.6+

2010-04-26 Thread Stormtap Studios
Hi folks, I have the following layout which defines a "cell" for my list view. http://schemas.android.com/apk/res/android"; android:layout_width="fill_parent" android:layout_height="wrap_content" android:id="@+id/CellRLayout" android:background="@drawable/cellselector" android:minHeigh

Re: [android-beginners] ListView with RadioButton losing its state

2010-03-29 Thread Justin Anderson
Are you taking advantage of view recycling? That may be the cause of your problem... -- There are only 10 types of people in the world... Those who know binary and those who don't.

[android-beginners] ListView with RadioButton losing its state

2010-03-29 Thread Gustavo
Hi all, I'm building a list with a radio button on each row. Everything seemed to be working just fine until I found that after I selected a radio button and scroll down the list the states of my radio buttons got messed up. Can anybody help me? -- You received this message because you are subs

Re: [android-beginners] listview item get invisible

2010-03-24 Thread Mark Murphy
manigault wrote: > How can i find when an item in listview get out of screen during > scroll. I am using resources for each item in listview and i want when > the item get invisible to free the resources. Thanks Extend your adapter to override bindView() (CursorAdapter) or getView (ArrayAdapter).

[android-beginners] listview item get invisible

2010-03-24 Thread manigault
How can i find when an item in listview get out of screen during scroll. I am using resources for each item in listview and i want when the item get invisible to free the resources. Thanks -- You received this message because you are subscribed to the Google Groups "Android Beginners" group. NEW

[android-beginners] listview selector problem with g1

2010-03-22 Thread manigault
Hi all, I have listview with custom selector for it. On nexus 1 is working fine but on g1 when i am scrolling it set the default background for all items during scroll. The strange thing is that on nexus is working but this is happening only on g1. Here is the code of the selector - http://schemas

[android-beginners] listview fill parent

2010-03-05 Thread manigault
Hi all i have a listview with small number of items but they are still fetched dynamically. How can i make my list view to fill to whole screen no not depending on number of items -- You received this message because you are subscribed to the Google Groups "Android Beginners" group. NEW! Try ask

Re: [android-beginners] listview is getting me mad plase help

2010-02-02 Thread David Fire
SOLVED all the items in the row must be facusable="false" 2010/2/2 Yousuf Faheem > Hi, > > try writting onClick event within getView method of the adapter > > > Thanks & Regards, > Yousuf > > > > On Sat, Jan 30, 2010 at 11:08 AM, David Fire wrote: > >> hi >> i cant press any item on my listview

Re: [android-beginners] listview is getting me mad plase help

2010-02-02 Thread Yousuf Faheem
Hi, try writting onClick event within getView method of the adapter Thanks & Regards, Yousuf On Sat, Jan 30, 2010 at 11:08 AM, David Fire wrote: > hi > i cant press any item on my listview nor in the emulator nor in a real > phone. > > > item layout > > http://schemas.android.com/apk/res/a

[android-beginners] listview is getting me mad plase help

2010-02-02 Thread David Fire
hi i cant press any item on my listview nor in the emulator nor in a real phone. item layout http://schemas.android.com/apk/res/android"; android:id="@+id/LinearLayout01" android:layout_width="wrap_content" android:layout_height="wrap_content" android:orientation="horizontal"> l

[android-beginners] ListView

2009-12-24 Thread sabs
Hi all I have a list view with scroll bar, now i would like to remove the scroll bar in that list view. I am not sure whether it is possible to disable the scroll bar or not. If it is possible please guide me how to disable the scroll bar in the list view.. Happy X-mas Thanks in adavance sabs --

[android-beginners] ListView rendering issue

2009-11-29 Thread Vranckaert Dirk
During my development I wanted to fill a ListView in my Android app (Android 1.5 compatible) with info I retreive from he internet (some xml file which provides me the info I want). Now retreiving this info is no problem but displaying it in a ListView is. My ListView activity code can be found her

Re: [android-beginners] Listview item Click

2009-11-18 Thread Justin Anderson
I don't really understand what you are wanting to accomplish... Could you clarify a bit? -- There are only 10 types of people in the world... Those who know binary and those who don't. --

Re: [android-beginners] listview item click

2009-11-18 Thread Justin Anderson
Please don't double-post your question -- There are only 10 types of people in the world... Those who know binary and those who don't. -- On Wed, Nov 18, 2009 a

[android-beginners] Listview item Click

2009-11-18 Thread jaimin mehta
hi. i want a Click event of Listview Item means i have Listview in that one TextView and ImagView is there so i want to know Click event of the ImageView . But right now i When i click in ImagView than First listview is selected and aftare second Click i get Click Event of Imgaview.But i want a C

[android-beginners] listview item click

2009-11-18 Thread jaimin mehta
hi. i have a ListView and in that i have ImagView now i want i Click event of ImageView when i Click First time on the image. But right now i get Click event of Imagview when in get clicked second time on the imagView On first time listview is selected . But i want a Click event of Imageview whe

Re: [android-beginners] ListView "Header"

2009-11-05 Thread Justin Anderson
Try setting the height of your header TextView to "wrap_content" -- There are only 10 types of people in the world... Those who know binary and those who don't. -

[android-beginners] ListView "Header"

2009-11-05 Thread tatman
Is is possible to setup a listview that has a header? I tried this (below) and the list doesn't display. If I take out the TextView above the listview, then the list shows http://schemas.android.com/apk/res/android"; android:layout_width="fill_parent" android:layout_height="fill_parent">

[android-beginners] Listview allocates too many objects

2009-11-03 Thread manigault
Hi, I have an activity with simple ListView with about 2500 items, a SimpleCursorAdapter i used to populate the view. Each item of the list view contains about 5-6 simple widgets everything is pretty standard for now but when i start scrolling the ListView i got this on the LogCat 11-03 14:31:49.2

[android-beginners] ListView with multiple TextView

2009-10-28 Thread Ash
Hi, I need to create a ListView with two TextView items. Please help with some example code for implementing this. Thanks, ash. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Beginners" group. To post to

[android-beginners] listview height

2009-10-22 Thread Jeffrey Blattman
i have a listview that is enclosed in a few other views. the view height of the listview is only about the size of one entry. i can't seem to figure how to make the listview expand to show more entries at a time. i'd like to be able to set the max height of the listview, or something like that.

[android-beginners] listview kml

2009-10-16 Thread android
I have read the KML files in a listview how can I do thanks --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Beginners" group. To post to this group, send email to android-beginners@googlegroups.com To unsubscr

[android-beginners] listview

2009-10-14 Thread frederic glouzon
hello, I am looking for a way to display the 200+ images of the countries of my listview. The problem is that my listview datas come from a sqlite database with the name of the countries and the name of the images files of the countries flags. I have an issue to get the ressources for the images f

[android-beginners] listview

2009-10-14 Thread frederic glouzon
hello, I am looking for --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Beginners" group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to

[android-beginners] listview disable items

2009-10-09 Thread manigault
Hi all, I have a listview and when an item is selected a new activity is started. I want when an item is selected to disable the entire listview so no other items can be selected before the activity is displayed. I tried setEnabled(false),setChoiseMode(1) but it didn't help, so how can i disable i

[android-beginners] Listview help

2009-09-28 Thread Alok
Hi guys, I am developing a music application where there will be almost 30 to 35 lists . Example .. A list on page one say albums , artists etc etc Then if you select one list item say Albums , you go on a new page with Album list, when u click on one album listitem , u enter song list.. that way

[android-beginners] ListView Urgent Help Req :)

2009-09-27 Thread Alok
Hi guys, I am developing a music application where there will be almost 30 to 35 lists . Example .. A list on page one say albums , artists etc etc Then if you select one list item say Albums , you go on a new page with Album list, when u click on one album listitem , u enter song list.. that way

[android-beginners] listview scroll position

2009-09-11 Thread manigault
I have a listview and when i select an item a new activity is started, but when i go back the listview's scroll is positioned at the beginning the list. How can i save the scroll position and when i go back to the listview the scroll to be positioned in the same place. --~--~-~--~~

[android-beginners] Listview onListItemClick(), position

2009-09-09 Thread Maarten_BE
Hello, I am trying to get the value of a selected item in a listview. The listview consists of the names of all the countries. The problem that I encouter when running the app is that when the listview is showed, a country can be selected by typing in it's first letters. But the problem is that t

[android-beginners] listview orientation

2009-09-08 Thread manigault
How to orient listview items horizontal. Thanks --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Beginners" group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from thi

[android-beginners] ListView Add an image as well as 2 line text to a single list item

2009-09-01 Thread Alok
Hi guys, I want to have a listview of songs where on the left of each list item i can have a musical image or image of album and then the actual song name on the right. The song name , with some other details fits in two lines on the right side. I hv gone through the Android sdk example where i ca

[android-beginners] ListView item stay selected

2009-08-25 Thread manigault
I have a listview and i want when i select a row to stay selected after googling i came to this solution: @Override protected void onListItemClick(ListView l, View v, int position, long id) { // ... rest of the code v.setSelected(true); } I just manually set the selected view to stay selec

[android-beginners] ListView with addHeaderView Example?

2009-08-16 Thread chinchin
Hello, I'm trying to modify the HelloListView example to use addHeaderView or addFooterView. Unfortunately I am unable to get this working. Is anyone able to provide any help? Here is my code, thanks in advance. http://schemas.android.com/apk/res/ android" android:orientation="vertical"

[android-beginners] ListView selection problems.

2009-08-12 Thread GH
Okay, so it's apparent through all the posts I've read that a ListView object registered to a ContextMenu object can't use the ListView's getSelectedItemPosition() method. Or more accurately, ListView's don't allow clicks to 'select' ListView items, and for good reasons I'm sure. But that doesn't

[android-beginners] ListView Item lost focus event

2009-08-06 Thread Martin Obreshkov
Hi when i select item in listview and then scroll it the selected item in no more highlighted. Can e register listener for this event ( when the item come unselected ). -- When I raise my flashing sword, and my hand takes hold on judgment, I will take vengeance upon mine enemies, and I will repa

[android-beginners] listview activity not stopping

2009-07-29 Thread ranjit
i have face this error,i cant found the solution please help.Application is based on listview Activity.when u click on one listview item then it ll go to another listview.second activity start but ther is some error please help yr...this error .. ---

[android-beginners] ListView: Default highlight the item

2009-07-07 Thread pdesai
Hello I am using ListView in my application. When My application gets launched, it displays Listview with some items in the list. I want the first item to be highlighted by default without any user action. How can i do that ? I tried listview.setSelection(0) method but it is not actually highlig

[android-beginners] ListView vs ScrollView

2009-06-12 Thread frodo
Greetings All, I would like to get to the bottom of the differences between ListView and ScrollView. I was hoping to figure out when to use each. Could a kind person please address the following queries: In what manner, exactly, is ListView 'optimized'? Why would one use a ListView, instead o

[android-beginners] ListView

2009-05-24 Thread Liviu Ungureanu
Hi all! Is posible to remove/hide the ListView separator? thanks! -- Trimis de pe dispozitivul meu mobil --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Beginners" group. To post to this group, send email

[android-beginners] Listview with multiple coulmns

2009-05-19 Thread uttampawar
Hi, I'm completely new to the android development or mobile programming for that matter. I do not have any gui building experience. I did try 'HelloAndroid' example and understand the directory layout very well. But I'm not able to get the following to work... I'm trying to build one applicatio

[android-beginners] Listview again

2009-05-09 Thread Kevin J. Brooks
Hey People, I am at a loss. I have tried multiple ways to get this done. I have tried setListAdapter also with the same results. The ListView is always blank. What am I doing wrong? ListView lvDrinks = (ListView)this.findViewById(android.R.id.list);

[android-beginners] ListView Entries

2009-05-08 Thread Kevin J. Brooks
Is there a way to set the Entries of a ListView through the program code? Something like ListView.setEntries(R.layout.stringarray); --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Beginners" group. To post

[android-beginners] ListView and Buttons on Screen

2009-05-04 Thread Junior Einsfeld
Hello people, I have a problem and need your help. I have a class that extends the class ListActivity and in this class I have a ListView. I must add two buttons after the ListView, but I am not getting. The layout I don’t have defined into XML file. How can I do to display the two buttons on

[android-beginners] ListView Activity, fill space

2009-04-28 Thread Ventrix Kostis P.
I have this xml layout for a ListActivity. ?xml version="1.0" encoding="utf-8"?> http://schemas.android.com/apk/res/android"; android:layout_width="fill_parent" android:layout_height="fill_parent" android:orientation="vertical">

[android-beginners] ListView item's text is cut on divider's place

2009-04-04 Thread borghild.hedda
Hi, I'm having a few items in a list view and the listview does show well on screen. 1. The divider is like on the text (yes divider actually on top, or runs over the text in my list view item!!) (this mainly happens if the text in a single item my list view has more than one line). 2. I have a

[android-beginners] ListView and TextView in a LinearLayout - issue

2009-03-31 Thread rch
I am trying to render a ListView and a TextView within a LinearLayout. That activity is inherited from ListActivity. The problem I am running into is Listview and TextView are not getting arranged properly one below the other in the layout. basically they getting rendered side by side. Need help..

[android-beginners] ListView onListItemClick

2009-02-24 Thread Vijay
Hi, I am creating an application which parses an XML from the web and displays the items of a tag in another ListView. Basically i want to know an effecient way of using ListView all throughout the application. Ex: Part 1 Part 2Part 3 My Bookshelf -

[android-beginners] listview focusing issue

2009-02-09 Thread Selmi
i already asked about this but got no reply and it probably got lost with other question which was solved...so i write it again when i have listview and i use some listadapter provided by android api then when you touch item in list it flashes with orange colour and then action is processed if

[android-beginners] ListView focus problem

2009-02-03 Thread Selmi
hi its probably extremely stupid question, but i can't move with it and when i searched i didn't found anything relevant... problem: if you look to any listview api demos from samples you will see that 1) when orange focus is over any item in list then its text changes to black automatically 2)

[android-beginners] ListView BaseAdapter...

2008-12-17 Thread Stephen
I understand that there are many threads about these cases, but when I try to follow them.. it crashes. public class BuddyPage extends ListActivity{ setContentView(r.layout.xview); setlistadapter(new buddyadapter(this)); } public class BuddyAdapter extends BaseAdapter { privat

[android-beginners] ListView Selector

2008-11-23 Thread Viroscope
I'm trying to make it so that when i select an item from a listview it will cause an alert window to display with text in it. But first i need to know how to make the item selected do anything. I do not understand where the listen code for when a key is prssed nor do i know exactly where it goes

[android-beginners] ListView id R.java application crash

2008-11-02 Thread alexdonnini
Hello, Could someone explain to me why the entry of a ListView id (list) defined in the layout files used by my application is not among the entries in the "id class" in R.java? (In spite of this) The application works as expected. However, if I try to generate a layout file and associate a Lis

[android-beginners] ListView Scrolling for small listviews

2008-04-09 Thread _glook
The application my group is working on an application involving a ListView underneath a picture. The ListView can display two lines at a time but we may have more than that in the ListView. We already know that the ListView will already scroll once the user attempts to access text off of the scree