is it possible to implement Expandable Listview in AlertDialog?
I'm using customize data adapter and multi-selection.
in my customize data adapter I don't have a child or header list or arraylist.
if code is required just tell me.
thanks in advance.
This may help you out
Related
Hi all,
I want to know if it is possible to make a list control, or any control for that matter, transparent?
I have placed a bitmap as a background of one of my apps dialogs. I can write text to it transparently but i cant get the list control to be transparent..
Can anyone help me with this?
Cheers
Hi,
I'm new to android. I'm trying to create a widget which has an ImageView along with other stuff.
I want to know how can i access that ImageView in my widget class, not the activity, because in activity its easy.
thanks
What do you have so far? Do you have a loop over the appWidgetIds and get the remote views of the widget?
If not then check out http://developer.android.com/guide/topics/appwidgets/index.html for the basic widget setup.
But specifically what you are looking for I think is:
views.setImageViewResource(R.id.widget_image, R.drawable.new_image);
is it possible? I have created a unique sort of clock as an AppWidget that has horizontal bars that should indicate minutes and hours. How could I change the width of the LinearLayout used as a bar from the onUpdate() method? I tried RemoteViews but that Views seems to lack a setWidth() method...
appwidgets are unlike anything else in android. they cannot directly alter, add, or remove items from a layout. the only thing that can be altered is text in a textView, the visibility of a view inside the layout, and the value of any of the views inside the layout, like int, bool, float, images, progress bars.
you can however change the view entirely, as in change to another layout.xml
you'll have to be creative to be able to find a way for your widget to change. i think the setViewVisibility() method could help. if you layout every piece that you need and selectively set their visibility based on the state of your widget.
here is a kinda related topic
http://stackoverflow.com/questions/...-dynamically-in-an-android-widget-api-level-3
Hmm, so if I would do 60 linearlayouts and place them next to each other, and say the clock is 13:30, I set the first 30 layouts visible? How would that many views affect performance???
Not sure. Probably wouldn't be good with that many.
This is where you'll have to be creative. Might be good to have one image view and have a bunch of images of the bar at different stages. Though that would require alot of images.
Just remember you can change the content of a view but you cant add another view "on the fly". Its a tricky thing to deal with in an appwidget. Ive been trying to make a widget that displays a tag cloud of your gmail inbox and ive had to use a textView as a wrapper to display the generated html for the cloud instead of adding new textViews for each tag.
From something awesome
ListViewAnimations is an Open Source Android library that allows developers to easily create ListViews with animations. Feel free to use it all you want in your Android apps provided that you cite the project and include the license in your app.
You can start animating your ListViews using a bare minimum of 2 lines of code!
It currently supports:
Appearance animations
Swipe-To-Dismiss
GridView animations
Animate dismiss
Expandable rows
And more
For more information see the site, or view a demo in the Play Store.
Niekfct said:
ListViewAnimations is an Open Source Android library that allows developers to easily create ListViews with animations. Feel free to use it all you want in your Android apps provided that you cite the project and include the license in your app.
You can start animating your ListViews using a bare minimum of 2 lines of code!
It currently supports:
Appearance animations
Swipe-To-Dismiss
GridView animations
Animate dismiss
Expandable rows
And more
For more information see the site, or view a demo in the Play Store.
Click to expand...
Click to collapse
Nice work mate.
Highly useful.
That's awesome, I will use it for sure. Great work!
Nice work
Finally working ListView animations, thank you. Works nice
I have a listview that for various reasons act more like a gridView . Each row actually holds multiple cells.
How can I add swiping (of cells) and insertion/deletion (of cells) animations for it?
:good: Good control, collecting
Good animation
Espically swipe to dismiss
Hi,
I'm new to android, and i have to implement a dynamic calendar in my app , so the user can edit and add events.
I've never implement such thing before , so i'd like to know where should i start from ?
Should i use grid view or grid layout?
Thanks in advance
sharon182 said:
Hi,
I'm new to android, and i have to implement a dynamic calendar in my app , so the user can edit and add events.
I've never implement such thing before , so i'd like to know where should i start from ?
Should i use grid view or grid layout?
Thanks in advance
Click to expand...
Click to collapse
Use a gridview as it will be easier for u to position any other views within your layout.