Hello everyone I worked with this tutorial for ExpandableListView with checkboxes: link to tutorial.
Subsequently I needed the same example but instead of checkboxes I have to put the ImageView I got to do it but the problem that I do not want every child will have the same images, so I have not found how to pictures of each child in each group of expandable list!
if anyone can help me!
Related
I have a requirement to design a Horizontalscroll list to show the list of dynamically obtained images in the list.Upon clicking on any item on the list it has to be shown on the Image view above the list.I tried many examples provided in the blogs. But they dont extend thier explanations towards obtaining the index of the Horizontalscrollview or getting resourceid of the image on which user has tapped. Knowledged please guide me on this.
Ps. I tried with galleryview as well But, I am not supposed to work using this as it is deprecated.
Regards,
Gururaj
Elsalam Alykom
you can use ViewPager
try this link
http://android-er.blogspot.com.eg/2014/04/example-of-viewpager-with-custom.html
I am working on an Android application and needs to add HorizontalListView inside ListView. So, the case is, HorizontalListView contains only the images (dynamic) and ListView can contain multiple rows of HorizontalListView. I have succeeded in creating the HorizontalListView but stuck on the part where I need to add dynamic HorizontalListView in the ListView. I tried to google around but couldn't find any help. So, is there any idea or suggestion to do this?
Thanks
You can have a look on this and this. I have used the first one and its working fine.
Hello guys just wanna ask about creating like the image below .. i
search all about it here but fail to see similar on my question .i
know i would use layout_weight but cant do what i want it to be
like.see attachment below .. i wanted to do atleast 3 buttons .any
help please ?
https://fbcdn-sphotos-c-a.akamaihd.net/hphotos-ak-xpa1/v/t1.0-9/149364_1489250518001074_8490520321510060718_n.jpg?oh=647bbe485caabf52ad8de32e5e7412ac&oe=54B27214&__gda__=1424652329_8648e09f0cbd8b85c95ec64ebf14d1b9
I think you can do this pretty easily using a Gridview layout. You would create a gridview with a column number of 3 and just add 6 items to the gridview. You will also have to override the getView method of the adapter for the Gridview and return a imageview that contains the image you want to display.
Follow this guide for more instruction about using layouts, then try and follow the instructions I laid out above.
http://www.mkyong.com/android/android-gridview-example/
I'm planning to add expandablelistview in my activity. I did some researches on the Internet but none of them fits what I want. I read also that expandablelistview has parent and child elements. What I want to do is that the parent would be the categories let's say it's fruits, then its children are Apple, Lemon, Almonds, etc. I'd like to try that by using arrays, but am not so familiar with List and Hash.. Please give me some snippets of codes to start with.. appreciate any help. Thanks.
Expandable List View is quite easy to implement. You can just easily create two arrays with items that you want to add in the list. For more details and insight into the intricacies of the Expandable ListView you can take a look at this link:
Simple Expandable ListView Example
Also, if you need to create a Custom Expandable ListView, then you can find a good tutorial for that on this link:
Custom Expandable ListView
Thanks in advance..
I have a task like creating list of image (Horizontal)galleries in an vertical listview in android.
I spend so much time but i didn't get any idea on that.
For the required screen please check the link as a reference :
http://www.appbrain.com/app/pulse-news/com.alphonso.pulse.
So please help me by providing the logic..
When you create an Adapter for your ListView, you can specify a row layout containing any views you like. I think, you can create a row layout containing a Gallery view too. Hope this helps.