Git Product home page Git Product logo

androidexpandingviewlibrary's People

Contributors

diegodobelo avatar rayliverified avatar tamzi avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

androidexpandingviewlibrary's Issues

Couldn't resolve resource

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

How to replace the old data of expandingList?

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

Expanded by default- problem with indicator

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.

Can you please have a look? Thanks
problem

Slow rendering large list

The rendering of a large list is very slow because of items and sub items layout inflation on the main thread

Sub Item not visible

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

How to create another list inside child item

Is it possible to create another list (String array) inside child item on click ? Like in this example

  • Mary
    ----- Dog
    ----------- Has 4 log (how to add this inside Dog on click)

Thanks
Vinit

issue in RTL layout Direction

when i using expanding list in rtl layput direction its not shown items text and add icons and sub items texts. what i do ?

untitled

setname from another activity

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

How to set Icons in every SubItems

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!

Change layout seperator when item expand

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.

Work with fragment problem.

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;
    }

Subview's textViews don't center horizontally all the time

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.
nutellapie1

the sub items slightly lean to the left instead of the center
nutellalist

this is the closest sub item list to the center
yellowcakelist

this one is obviously way to the left
cheesecakelist

List items doesn't expand.

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.