expandablelistview

how to display current expanded group at top of screen

穿精又带淫゛_ 提交于 2021-02-19 08:44:06
问题 I have a expandable listview with textviews as rows and a webview as a child of each row (group). when user cliked on a group (row) webview with html loaded. after scrolling the webview towards end and then clicking another row doesnot show the group at top. it automatically scrolls down. I want to scroll upwards so till currently selected group is at top. thanks 回答1: You need to implement OnGroupClickListener with return value true to prevent event flow. In the OnGroupClick you can use

Expandable list view with HorizontalScroll View for child view

廉价感情. 提交于 2021-02-11 12:11:00
问题 I'm working on Expandable ListView and used this tutorial. https://www.androidhive.info/2013/07/android-expandable-list-view-tutorial/ But what I'm looking for is that I want a child view with horizontal scroll view. I have an image and a text view inside for my child view. It is working vertically but I want it to work as horizontally. I've seen some other tutorials but none of them works. Can anyone tell me how can I make it work horizontally? child_view: <?xml version="1.0" encoding="utf-8

Expandable list view with HorizontalScroll View for child view

Deadly 提交于 2021-02-11 12:04:53
问题 I'm working on Expandable ListView and used this tutorial. https://www.androidhive.info/2013/07/android-expandable-list-view-tutorial/ But what I'm looking for is that I want a child view with horizontal scroll view. I have an image and a text view inside for my child view. It is working vertically but I want it to work as horizontally. I've seen some other tutorials but none of them works. Can anyone tell me how can I make it work horizontally? child_view: <?xml version="1.0" encoding="utf-8

ExpandableListViewAdapter with List containing nested List

て烟熏妆下的殇ゞ 提交于 2021-02-11 06:48:28
问题 I am trying to write ExpandableListViewAdapter for model like this: This is my GetCheapestResponseType.class : public class GetCheapestResponseType { List<Fares> fares; } This is what I have already done, I don't know how to expand Constructor of ExpandableListViewAdapter to pass only List<GetCheapestResponseType> : public class ExpandableListViewAdapter extends BaseExpandableListAdapter { private Context context; // group titles private List<GetCheapestResponseType> listDataGroup; // child

How made two or three textviews in ExpandableListView?

浪尽此生 提交于 2021-01-29 08:32:51
问题 I'm creating a program for android, in the app, I used ExpandableListview with BaseExpandableListViewAdapter, on default this adapter uses one TextView, I want to create some (two or three) TextViews on child listItem, please help me with code, what do write in the activity? XML layout listitem child file: <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="wrap_content"

Adding different options for Expandable listview

南笙酒味 提交于 2021-01-29 07:36:56
问题 I have an expandable list View that has a check button, but the problem is I can only add one child item. dataItem.setSubCategory(arSubCategory); arCategory.add(dataItem); dataItem = new DataItem(); dataItem.setCategoryName("Art"); arSubCategory = new ArrayList<>(); for(int j = 1; j < 6; j++) { SubCategoryItem subCategoryItem = newSubCategoryItem(); subCategoryItem.setIsChecked(ConstantManager.CHECK_BOX_CHECKED_FALSE); subCategoryItem.setSubCategoryName("Art: "+j); arSubCategory.add

Adding different options for Expandable listview

十年热恋 提交于 2021-01-29 07:31:21
问题 I have an expandable list View that has a check button, but the problem is I can only add one child item. dataItem.setSubCategory(arSubCategory); arCategory.add(dataItem); dataItem = new DataItem(); dataItem.setCategoryName("Art"); arSubCategory = new ArrayList<>(); for(int j = 1; j < 6; j++) { SubCategoryItem subCategoryItem = newSubCategoryItem(); subCategoryItem.setIsChecked(ConstantManager.CHECK_BOX_CHECKED_FALSE); subCategoryItem.setSubCategoryName("Art: "+j); arSubCategory.add

how do I make my whole display to be scrollable

◇◆丶佛笑我妖孽 提交于 2021-01-27 17:58:33
问题 I am making an App for my restaurant, there when the user enters the restaurant page, he or she will be able to see all the selectable Item here is the image below: Here you can see that I have highlighted a portion and that portion is Expandable listView. The thing is that when I scroll the expandable list VIew I want the whole page to scroll up not just the Expandable List the whole page to be a scroll when I scroll in either direction. here is my XML code: <LinearLayout xmlns:android="http

Need to show Expandable list view inside navigation drawer

拥有回忆 提交于 2021-01-25 07:22:05
问题 I am an Android Application Developer. I have started working on React-Native. I am unable to find a way to show expandable list inside navigation drawer. Suggest a library if this functionality can be done in that. navigationOptions does not have a way to provide a list (refer code below). I want to show expandable view like item 4 My Code is :- import {DrawerNavigator} from 'react-navigation'; import React, {Component} from 'react'; import { Platform, StyleSheet, Text, Image, View,

Groupie RecyclerView All Items Added To The Same Expandable Item

不羁的心 提交于 2020-12-06 06:29:30
问题 I'm using the Groupie library for showing expandable items and my issue is that instead of the items retrieved through an api call being shown under each of their parent expandable header, they're all shown together under the last item on the list. I would like to have this: Header 1 Child header 1 Child header 1 Child header 1 Header 2 Child header 2 Child header 2 I have this instead: Header 1 header 2 Child header 1 Child header 1 Child header 1 Child header 2 Child header 2 This is my