Android :: Programmatically Expanding - Collapsing Items Of An ExpandableListView

Aug 6, 2010

This should be a very simple thing, but it's driving me crazy and currently one of the older bugs of my app. Given an ExpandableListView I want to collapse all the groups but the last one and expand the last one. The code below doesn't work (basically seems to do things at random).

CODE:................

Android :: Programmatically expanding - collapsing items of an ExpandableListView


Android :: ExpandableListView Not Expanding/collapsing When Using A Group View With A Checkbox

Jun 10, 2009

I'm trying to implement an expandable list view where the group view contains a label and a checkbox, visually represented below (the v and > are the expand/collapse icons, the [x]/[ ] a checked/unchecked.

View 2 Replies View Related

Android :: Disable Collapsing Of ExpandableListView

Aug 11, 2010

The default behavior of ExpandableListView is to collapse a group when its header is clicked. Is it possible to prevent this from happening?

I've tried: Setting OnTouchListener on the list. This interferes with scrolling. Setting an OnGroupClickListener on the list (in onCreate()). This works for all clicks after the first.

Why might the OnGroupClickListener miss the first click?

View 2 Replies View Related

Android :: How Do I Remove Expandable Arrow From Some Items In ExpandableListView?

Feb 22, 2010

How do I remove expandable arrow from some of the items in ExpandableListView? Also is there way to customize this arrow, move it to another place in the item?

View 5 Replies View Related

Android :: Can Put A ListView Into A ScrollView Without It Collapsing

Aug 16, 2010

I've searched around for solutions to this problem, and the only answer I can find seems to be "don't put a ListView into a ScrollView". I have yet to see any real explanation for why though. The only reason I can seem to find is that Google doesn't think you should want to do that. Well I do, so I did.

So the question is: How can you place a ListView into a ScrollView without it collapsing to its minimum height?

View 3 Replies View Related

Android :: TextView Height Not Collapsing

Sep 30, 2010

I have TextViews in a View that are dynamically populated. But even when there's no text in them they still seem to take up space, specifically height, even though the TextView and the parent have layout_height set to wrap_content. Coming from HTML land, I would expect them to collapse. Even if I set them to invisible, they still take up room. I've tried a LinearLayout and a RelativeLayout. How exactly do you get them to go away without removing them altogether?

View 3 Replies View Related

Android :: Expanding The Status Bar

Oct 1, 2010

I am creating an android app, and in the app I would like to have a button that expands the status bar. When I was thinking up the design for the app it seemed like a simple task like that would be, well, simple. But I come to find out that the StatusBarManager is not part of the public API? I can now not add functionality to an app that is clearly available just not in the public api. Is there another abstract way of expanding the status bar?

View 2 Replies View Related

Android :: ListView Is Not Expanding As Intended

Sep 9, 2010

My scenario is like this:

CODE:........

The problem I have is that I can't get my ListView to get the right height that I want. I'll add a couple of components with my custom BaseAdapter class and everything there works as intended. But when i then debug my application i can only see 1,5 out of 3 components in the list and the rest is hidden futher down in the ListView. But how can i make my ListView calculate how many components i have and get it to show all my components direcly without having too scroll down.

Another thought is if i could populate any other kind of View with my BaseAdapter? Because the only reason I'am using ListView is because of the setAdapter() method.

View 2 Replies View Related

Android :: Expanding The Size Of Virtual Device

Dec 17, 2009

On a relatively new emulator image (AVD) I have about 40mb of free space. How can I expand this? I tried setting the disk.cachePartition.size option, but it didn't seem to have any effect.Just to be clear.I'm talking about the "Internal phone storage" size, not the SD Card size.

View 3 Replies View Related

Android :: LinearLayout Not Expanding Inside A ScrollView

Apr 8, 2010

I have a LinearLayout inside a ScrollView that has android:layout_height="fill_parent", but it doesn't expand to the full height of the ScrollView. My layout looks something like:

CODE:........

I can see that the LinearLayout doesn't expand the full height of the ScrollView because in Eclipse in Android Layout Editor, if I select the ScrollView (in the Outline panel) it is highlighted with a red border that fills the screen to the bottom but when I select the LinearLayout its highlight doesn't expand to the bottom of the screen. How can I get it to do so?

The effect I'm trying to achieve is to have some text and a button below it (inside the LinearLayout in level 4 there's just a button). The text can be big enough to need a scrollbar, in which case I want the user to have to scroll down in order to see the button. In case the text is not big enough for a scroll bar, I want the LinearLayout containing the button to stick to the bottom of the screen.

At first I thought I shouldn't post the full XML because it's usually a turn-down to see a huge chunk of code in a question. However, it seems it might be necessary, so here's the full layout.

CODE:........

At the moment I have resorted to android:layout_gravity="bottom" on the problematic LinearLayout, which makes the button stick to the bottom of the screen no matter what. But that also makes the text stick to the bottom of the screen, which is not exactly what I was after.

Update: scratch that, android:layout_gravity="bottom" makes the ScrollView unable to, well, scroll.

View 2 Replies View Related

Android :: Expanding The Status Bar From An App - Permission EXPAND_STATUS_BAR?

Feb 19, 2010

For good usability in an app that I'm developing I would like to expand the status bar to show the user the first time that there is more information to be found on the expanded status bar. (The user will run several apps at the same time, and background services will post notifications. The expanded notifications link back to several the apps/activities that the user is running. )

I've been searching for a while now, but the only thing I could find was: http://developer.android.com/reference/android/Manifest.permission.ht....

I'm looking for a code example on how to expand the status bar.

View 3 Replies View Related

Samsung Captivate :: Way To Have Single Folder Show Received Items / Sent Items Combined?

Jul 21, 2010

Had no problem getting my phone to play nice with our exchange server at work and emails are coming/going fine.

However, there are some configuration items I have a big issue with as it relates to the 'look' of the email (coming from a BlackBerry).

1. Is there any way to have a single folder show my received items and sent items combined? My BB had this and it was very useful.

2. How can I edit the way my folders are displayed at the top horizontal bar? The sidescrolling folder display is awkward, it puts my inbox first (good) but then all subsequent folders are listed alphabetically; it pays no attention to their order on my desktop and also shows sub-folders of other files. Any way to change this?

3. Is there a way to change the way emails show as unread? The difference b/n read and unread is only a shade of grey, and difficult to see outside.

View 1 Replies View Related

Android :: Displaying Virtual Keyboard Without Expanding EditText

Jan 28, 2010

I want to display keyboard when my app gets started. I know we can get Virtual Keyboard when clicked on EditText field, but I want to show Virtual Keyboard without clicking on EditText.

View 3 Replies View Related

Android :: Expanding Overlay Marker On Google Maps?

Jul 20, 2010

I can draw overlay items onto google maps just fine, an image that looks like:
_____
| |
______
/

Where the "/" part is the "pin" that marks the lat/lon on the map and a picture in the middle of it. My question is, is there any way to expand this when the user clicks on it? I'll of course have to change this to some kind of dialog or layout and change it when it gets clicked.

I want to have it smaller like that with just an image when not clicked on, but when it is clicked on it expands over like a second to:

--------------------------------------
| <image> <buttons> |
| <buttons> |
| <some info here> |
| |
--------------------------------------
/

Is this possible?

View 2 Replies View Related

Android :: Expanding ListView Custom Component With Button Click

Nov 5, 2010

I'm developing a small application in with a list view filled with a compound component. This component has two text view and one button inside. One of the text view is invisible and when the button is clicked it should appear. I can show the list but i can't make the textview visible when the button is clicked. Here is the xml of the component: And this is the ArrayAdapter that fills the list:

public class AddressAdapter extends ArrayAdapter { int resource;
RelativeLayout placeView;
EditText addressText;
public AddressAdapter(Context _context, int _resource, List _items) {
super(_context, _resource, _items);
resource = _resource;
} private OnClickListener buttonClick = new OnClickListener() {
public void onClick (View v) {
int i = placeView.findViewById(R.id.stub_import).getVisibility();
visibility(i);
} };
private void visibility(int i) {
// TODO Auto-generated method stub switch(i) {
case(View.GONE): { addressText.setVisibility(View.VISIBLE);
} case(View.VISIBLE): { addressText.setVisibility(View.GONE);
} } }
@Override public View getView(int position, View convertView, ViewGroup parent) {
Item item = getItem(position);
String name = item.getName();
String address = item.getAddress();
if (convertView == null) {
placeView = new RelativeLayout(getContext());
String inflater = Context.LAYOUT_INFLATER_SERVICE;
LayoutInflater vi = (LayoutInflater)getContext().getSystemService(inflater);
vi.inflate(resource, placeView, true);
} else { placeView = (RelativeLayout) convertView;
} TextView nameText = (TextView)placeView.findViewById(R.id.placeNamwView);
Button button = (Button)placeView.findViewById(R.id.Button01);
addressText = (EditText)placeView.findViewById(R.id.placeAddressText);
button.setOnClickListener(buttonClick);
nameText.setText(name);
addressText.setText(address);
return placeView;
} }

View 2 Replies View Related

Android :: How To Find Culprit File In Droid Project Even After Expanding Main Folder

Jul 9, 2010

The side bar in eclipse shows a red cross on the title of my project folder but there are no such signs in the directories below it in hierarchy. In which particular file does error exist? How can I know that

View 3 Replies View Related

Sprint HTC Hero :: Expanding Weather Database

May 1, 2010

The Hero's native weather widget contains a pretty limited number of cities. On my old WinMo phone, there was a way to expand the database of cities by modifying some Manila files. Is there a similar course of action for Android phones? I perused the files on the Hero (ROM and SD) but didn't see any obvious candidates to change.

View 10 Replies View Related

Sprint HTC Hero :: Expanding Micro SD Storage ?

Apr 21, 2010

Looking at greatly expanding my SD storage. It is clear that the Sprint Hero requires an SD device that meets the SD 2.0 specification. That is a given.

The question I have is about SD speed (class) and size (up to 32GB max).

I am wondering if there is noticable speed difference between Class 2 and Class 6 cards on internal or external transfers? Where do we see any difference? Internal - such as photo or file transfers between folders on the card? External - file transfers to and from the SD card set up as a USB device?

Then the possible variable (if it is) of card size? I am still running the stock 2GB card that came with my Hero. I want to go to 16GB. Does "size matter"? ---

Anybody run any experiments to measure speed and function? Photos, files, etc?

View 9 Replies View Related

General :: Gmail Expanding Conversation Samsung Galaxy

Jul 8, 2013

My parents have recently started using a Samsung Galaxy tablet. I believe it is a tab 1. They have created a gmail account for their email and are getting on fine with the gmail app except that they can't figure out how to access the earlier conversations that are grouped together in a thread. I'm an Apple MacBook user. I have googled 'expand conversations.

View 4 Replies View Related

General :: Shrinking Hard Drive Or Expanding Programs?

Jul 16, 2012

A couple of weeks ago I kept getting a low disc space error message on my Droid (the original). I have already moved everything I can to the SD card with App 2 SD Pro and I haven't loaded any new software to the internal hard drive, but I still had to delete a program to free up space.

Two days ago I started getting the message again, and I haven't installed anything. But I think several system programs have updated and gotten bigger. I've had to take off more programs to free space.

Is this normal, or is there a problem? I've cleared up any caches that I can get to without rooting the phone, but I'm starting to think I need to do that. I never use the Facebook app and it eats a lot of space, but I can't delete it without rooting.

View 3 Replies View Related

General :: Expanding Internal Storage Onto External / SDCard?

May 8, 2013

I finally upgraded to android, i got the cheapest phone possible(kyocera milano) which seems to be a mistake. The phone has only about 300mb internal storage and can barely handle its own updates(because of the limited storage). so i would like to know if its possible to make the phone "think" that some of the sd card is part of its internal memory? I found an adb driver for it(dont ask me where or which one because i had no idea and started messing with one until it worked) i have not tried rooting but can if i need to.

View 5 Replies View Related

Android :: Xml Parser With Expandablelistview

Oct 27, 2010

I need to implement an xml parser and the parsed result into an expandablelistview.

View 1 Replies View Related

Android :: ExpandableListView Won't Redraw

Jul 29, 2009

I have an expandable list view with a static array for the group data and an SQLite database for the child data. It is implemented with the BaseExpandableListAdapter and works great, except, when I edit the database to delete or add children to the list I do not see the changes onscreen. It looks like I can use the registerDataSetObserver method to notify the adapter and expandable list of a data change. What I have to do in the callback to make Android redraw the list after data changes is what I need to know. Can I do it? Documentation on this part of the SDK is a bit sparse and expandable list view example code is not a good match. Can anyone offer advice on how to use a DataSetObserver? It feels like I have to switch over to a Cursor type adapter.

View 2 Replies View Related

Android :: Set ChlidDivider In ExpandableListView?

Dec 15, 2009

This is my ExpandableListView

CODE:..............

When I execute this in emulator, green(childDivider color) is all over the place.

It seems if childDivider is ColorDrawable, it has no bound.

View 2 Replies View Related

Android :: Filter In ExpandableListView?

Mar 18, 2010

I have an ExpandableListView with several groups and each group contains several children. I want to make this list searchable, just like a regular list view. I have a SimpleCursorTreeAdapter (mAdapter) for this expandlable list.

I tried to use the built in list filter using:

CODE:.......

The above code does not work for filtering.

How can I implement the search/filter functionality?

View 2 Replies View Related

Android :: Animating The ExpandableListView?

Sep 17, 2010

Is it possible to animate the expanding and collapsing of the groups in a ExpandableListView.

View 3 Replies View Related

Android :: Onchildclick In ExpandableListView?

Jun 17, 2009

I need a solution how to get the OnChildClick working for my ExpanableListActivity.

when starting of this project the Listener was working, but now i get nothing out of it?

i tried setting the listener through: "getExpandableListView().setOnChildClickListener(this);" at several point, but it isn't responding.

Here's the source code:

CODE:............

View 3 Replies View Related

Android :: LinearLayout In ExpandableListView

Jul 18, 2010

I want to inflate a childView of ExpandableChildView component.

Code:.............

Where linearOpt is a vector that contains a lot of LinearLayout objects that I have instantiated.

CODE:..

This is R.layout.itemrow xml:

But I received this error:

CODE:.................

View 1 Replies View Related

Android :: Expandablelistview Can Not Use NotifyDataSetChanged()?

Oct 20, 2010

I want to refresh my expandablelistview, but it seems there is no way to use notifyDataSetChanged()? how can i refresh my expandablelistview?

View 2 Replies View Related

Android :: ExpandableListView Context Menu

May 14, 2010

I'm trying to add a context menu to my ExpandableListView. I've implemented onCreateContextMenu() and onContextItemSelected() but if I hold my finger on a menu item context menu doesn't appear. What's my mistake?

View 1 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved