Hello
I've a ListActivity with a ListView, onItemClick i start an Intent,
Oncreate of this Intent i make a getParent but it's null. if i do this.isChild() it's false.
mPostList.setOnItemClickListener(new OnItemClickListener() {
public void onItemClick(AdapterView<?> parent, View v, int position, long id) {
Intent IntentDiscuti...
Hi,
I've got a ListActivity with a ListView in it. I need to draw a repeating image around the border ("on top of it (I guess after the listview is renderered))
How can I hook in my own drawing code for this?
...
I have a POJO, and a (currently not-yet-built) class that will return Lists of it. I'd like to automatically generate the code necessary for the POJO to be accessed as a Map. Is this a good idea, is it possible to do automatically, and do I need to do this manually for every POJO I want to treat this way?
Thanks,
Andy
...
When I call intent
public class TInfo extends ListActivity
implements OnSharedPreferenceChangeListener{
@Override
public void onCreate(Bundle icicle) {
super.onCreate(icicle);
prefs = PreferenceManager.getDefaultSharedPreferences(this);
initvars();
setListAdapter(new TAdapter()); // class TAdapter extends ArrayAd...
Is it possible to call listactivity through tab activity? Basically, I am developing an app with 3 tabs, for which I am using tabactivity. Furthermore, in one of the tabs I want a listview, so I have derived from listactivity.
Now I want the click event to be determined in the listview. Am i missing something?
public class Tabissue ext...
Hi,
I've made a ListActivity. I have an xml file that defines the layout for this Activity. I also have an xml file that defines the layout for an item in that list. This item layout has 3 TextViews inside of it. If I add the inputType="text" property to one of these TextViews, the onListItemClick handler no longer executes when I r...
Hi,
I've created an inbox Activity and I'm mirroring some functionality of the default Mail application that comes with Android.
In Mail, the background color of a message that has not been read is a lighter color than the rest of the items in the list. I've mirrored this by setting calling setBackgroundResource in the getView method ...
Hi,
I have a ListView that I'm trying to add a footer to. For some reason, it won't show up. My footer is defined in a separate XML layout called layout_footer.
View v = getLayoutInflater().inflate(R.layout.layout_footer, getListView(), false);
getListView().addFooterView(v);
Here is the code in my ListActivity's onCreate method. ...
I have a ListActivity. Each item in the ListView contains a RatingBar. When the user manipulates the RatingBar, I want to update the corresponding data attached to the Adapter.
Unfortunately, inside my RatingBar handler, I can't refer to the position variable. I understand why. I'm just having trouble finding a way around it.
How w...
I have a ListActivity which lists a bunch of "things." If you click on one of these "things," you're taken to another ListActivity which lists a bunch of "stuff" for that "thing."
Say I want to give the user the ability to edit the name of some of the "stuff"; or even delete some of the "stuff." At what point should I actually perform...
I need to display results from a SQL join in a ListView/ListActivity.
I've created a cursor:
Cursor cursor = db.rawQuery(LIST_JOIN_SQL, null);
and if I iterate through the cursor, the results are exactly what I expect. However when I try and use a SimpleCursorAdapter to display these results in a ListView I get a runtime exception b...
Im opening a ListActivity with an xml called list with a ListView named list. I have an array adapter set up and working in another activity (not a list activity though, just a normal activity) and it all works fine. When I try to open this list activity though, I get an error saying that I need a ListView with the id android.R.id.list. ...
Hello,
I'd like to know how to implement gestures recognition in a ListActivity, so without a Layout in XML. I know how to do it with an XML so I'd like to create this gestureOverlay from java code :
<android.gesture.GestureOverlayView
android:id="@+id/gesturesMain"
android:layout_width="fill_parent"
android:layout_height="fill_paren...
I'm having a problem with a ListActivity. I've extended ArrayAdapter and Overridden getView to fill in the data for each row. I throw some data from my Adapter's ArrayList into a TextView.
My problem is, when I scroll, the TextView of each row populates with text that is not in its corresponding data in the ArrayList. What I mean is:...
I have a ListView with different layouts for different items. Some items are separators. Some items are different because they hold different kinds of data, etc.
I want to implement ViewHolders to speed up the getView process, but I'm not quite sure how to go about it. Different layouts have different pieces of data (which makes nami...
I need to be able to use an external XML file in place of the string below. How do I go about adding that in?
package com.HelloListView;
import android.app.Activity;
import android.os.Bundle;
import android.app.ListActivity;
import android.view.View;
import android.widget.ArrayAdapter;
import android.widget.ListView;
import android.wi...
I have a ListActivity whose ArrayAdapter-subclass creates a (droid-fu) WebImageView. The problem is that whenever the list grows longer than can be displayed on a single page, whatever it is that calls getView() always starts from 0 and counts to 4 or 5 (depending on whether or not partial rows are visible), even when it's actually displ...
I have a ListActivity that was originally using an ArrayAdapter. Each item in my ListView contains a checkbox.
I changed Adapters to a CursorAdapter. Everything is working fine except checkboxes are out of control. For example: When I click the checkbox in position 1, the checkbox in position 4 gets checked. If I click the checkbox ...
I am new to android, and ended up (have to) ask a question here,
Let's make it simple, I simply want to make my own TextView-like
(MyView extends View),
this is my code:
public class MyView extends View {
private Paint mPaint;
private String mText;
private Bitmap mBitmap1;
private Bitmap mBitmap2;
public MyView(Con...
I have a ListView populated via a CursorAdapter. I give my user the ability to alter the data in the list. For example, the user can mark a row as being unread (the data are messages).
Suppose my user marked a row unread. Would a proper implementation mark the row in the database as read and then requery the Cursor?
...