onItemClick gives index/ po sition of item on visible page 鈥?not actual index of the i tem in list ..problem on enabling setTextFilterEnabled ..

by lbendlin » Sun, 28 Mar 2010 20:20:27 GMT

Sponsored Links
 shouldn't you be able to fetch the value of "id"  from the returned


Other Threads

1. blending layers of Bitmaps

Dear Reader!

Android graphics is new to me and I can't get a solution for this
problem, even though I know the docs very well by now. What I wanna do
is to blend several overlapping bitmaps using a given operation like
xor or multiply. My app has a Spot class which has function to return
a generated Bitmap and a BitmapShader based on the Bitmap, plus an
attribute that stores a PorterDuff.Mode value. Could someone please
explain why the following code doesn't work? All I get is a black
empty screen, but no errors.

parts of the Spot class:

  public final Bitmap toBitmap()
    Bitmap out = Bitmap.createBitmap(width, height,
    Canvas layer = new Canvas(out);
    RoundRectShape rr = new RoundRectShape(new float[]{2, 2, 2, 2, 2,
2, 2, 2}, null, null);
    rr.draw(layer, getPaint());
    return out;

  public BitmapShader getShader()
    return new BitmapShader(toBitmap(), Shader.TileMode.REPEAT,

...and my main View:

  protected void onDraw(Canvas canvas)
    Bitmap screen = Bitmap.createBitmap(canvas.getWidth(),
canvas.getHeight(), Bitmap.Config.ARGB_8888);
    Spot spot;
    Paint paint = new Paint();
    Canvas spotLayers = new Canvas(screen);
    for (int i=0, mi=spots.size(); i<mi; i++)
      spot = getSpot(i);
      if (i > 1)
        paint.setShader(new ComposeShader(getSpot(i-1).getShader(),
spot.getShader(), spot.getXferMode()));
    canvas.drawBitmap(screen, 0, 0, null);

I've already browsed through the API examples and all reference pages
related to graphics, but still dunno what's up. Any help would be


2. Problem with creating SMS folder and copying messages to that folder

  I want to create a new folder for SMS, and copy some messages to
that folders. What should i do?  The Android reference doesnt mention


3. no text displayed on emulator in Hello World program

4. now open all blocked site with our proxy

5. all in one poste for site visite all sites here''

6. Disappointed by poor maps quality of Google Maps

7. Home screen icons disappeared