diegodobelo / androidexpandingviewlibrary Goto Github PK
View Code? Open in Web Editor NEWThis is a library to help creating expanding views with animation in Android
This is a library to help creating expanding views with animation in Android
How to store the subitems in internal storage?
How to replace the old data of expandingList? I called method expandingList.removeAllViews(),it doesn't work.That's not like listview cuz the view was extended from scrollview,so I can't find a good idea to replace the old data.Can you help me ? Thanx
Hi! @diegodobelo thanks for this useful et sweet library. I tried it and get this error message in my preview: Couldn't resolve resource @id/icon_indicator_top in the expanding_layout.xml file. I can debug and the app is running but i just want to understand why i got this message.
thanks
Hi
how can get data (json) from server and show in expandView to this Libery???
Sorry for writing litte english me :(
I want to add an icon to every subItem..how to do that? and I want to reduce the padding between the two SubItem and between the Maine Item and next SubItem.
Thanks in Advance!
Can I do this?
Title-1
>Title 1.1
>Title 1.1.1
>Title 1.2
>Title 1.2.1
Title-2
>Title 2.1
>Title 2.1.1
I want to set the icon of the item or subitem from another activity that opens when I click on the subitem.
so:
1-click subitem
2-open activity
3-give input
4-set item and subitem icons according to input
if icons are impossible to change from another activity then please help me do it as textview
Error:No service of type Factory available in ProjectScopeServices
How to add OnclickListener to subitem ?
Hi i need to update data in Item, after view is created. How could i do it?
Is there any get and set method to update item runtime?
Thanks for your awesome code ^^
i need to expand and collapse the item from the indicator icon only and handle a different event from the text click
If the ExpandingListVisbility is set to gone at activities oncreate() and later set to visible on certain event the list item doesn't exapnd and doesn't show sub items.
The SAME sub-item layout is inflating slightly differently depending on the item clicked and I can't figure out why. I want the subitems to be centered horizontally. ( like the Yellow Cake example)
here's the GitHub project link: https://github.com/joelc1225/MyBakingApp-UDACITY.git
Screen shots below...
'Ingredient List' is the expandable item and below are the ingredients for that specific recipe.
the sub items slightly lean to the left instead of the center
I need to locate the icon at the right side of the screen and locate the text at the left side of the icon. is this possible?
I have a problem. I set the start_collapsed with false and the indicator is not showing on the subitem length.
<com.diegodobelo.expandingview.ExpandingItem
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:item_layout="@layout/layout_parent"
app:sub_item_layout="@layout/sub_item"
app:indicator_size="42dp"
app:indicator_margin_left="16dp"
app:indicator_margin_right="16dp"
app:show_indicator="true"
app:show_animation="true"
app:start_collapsed="false"
app:animation_duration="250"/>
subitem ->
ExpandingItem item = expandingList.createNewItem(layoutId);
item.createSubItems(1);
item.setIndicatorColorRes(R.color.colorAccent);
item.setIndicatorIconRes(R.drawable.ic_arrow_down);
On the first view the indicator is not on full lenght, after I click it does go to the full length.
I want to display the parent-> child->sub child
Example
Parent 1
Child P1
Sub child p1
Sub child p1
Child P2
Sub child p2
Sub child p2
Sub child p2
Is there any way to update the list after it is created?
I want to use this library in Fragment, not FragmentActivity. But not understand what data i must send to adapter. Because we can not use it without adapter. And i do not now, when insert item creation,
final ExpandingItem item = mExpandingList.createNewItem(R.layout.expanding_layout),
in fragment or in adapter.
Maybe someone have any ideas?
Does not work.
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
rootView = inflater.inflate(R.layout.fragment_mov, container, false);
mExpandingList = (ExpandingList) rootView.findViewById(R.id.expanding_list_main);
createItems();
return rootView;
}
Hi,
I have implemented this library for my application and its working fine. But the last item of the sub list is not visible. For the first main item I can see my sub list with last item being cut out and in any subsequent item last sub item is always not visible. I checked my code and it does call the create sub list method for the number of count which I expect. Do you have any idea if I am missing something
I am able to pass data of subItem but i am not able to pass title data. I have to assign it in a String Variable but it catches the last data from addItem i.e Bart. Sorry for the noob question i am new to the android development @diegodobelo
The rendering of a large list is very slow because of items and sub items layout inflation on the main thread
Can create SubExpandingList inside ExpandingList?
Or ExpandingItem inside ExpandingItem?
I think it'd be better if you would embed the YouTube video to the readme or add screenshots instead of just having a link to the YouTube video.
Whenever I look over libraries, I like to be able to quickly see what the library looks like before using it.
Is it possible to create another list (String array) inside child item on click ? Like in this example
Thanks
Vinit
The expanding layout.xml
<?xml version="1.0" encoding="utf-8"?>
<com.diegodobelo.expandingview.ExpandingItem
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:item_layout="@layout/expanding_item"
app:sub_item_layout="@layout/expanding_sub_item"
**app:separator_layout="@layout/item_separate**"
app:show_animation="true"
app:start_collapsed="true"
app:animation_duration="250"/>
item_separate layout
<?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"
android:orientation="vertical">
<View
android:layout_width="match_parent"
android:layout_height="1dp"
android:layout_marginBottom="20dp"
android:layout_marginTop="20dp"
android:background="@color/white_opacity_35" />
</LinearLayout>
Now, I want to change the layout separate when an item expands but I can't find the method to do this. Please help. Thanks.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.