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
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
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
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
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
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
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
*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*
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
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?
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
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
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
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
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
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
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
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
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
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.
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
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
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
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 =
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,
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
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);
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
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 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
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,
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
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,
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
*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
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?
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
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
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
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
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
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
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
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.
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
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
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
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
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
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
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
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
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() {
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
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.
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
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
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) {
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...
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
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
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.
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
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
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
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
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
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
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
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
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,
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.
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,
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
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
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
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
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/
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
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
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
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
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
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
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
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
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
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
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
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
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
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:
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
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
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).
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.
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
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,
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
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 - 100 of 804 matches
Mail list logo