Giter Club home page Giter Club logo

android-statefullayout's People

Contributors

arthufimtcev avatar jakubkinst avatar prochazkajp 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

android-statefullayout's Issues

If you don't initialize the state you get null pointer

If you don't create at all a reference of the StatefulLayout on your activity but just specify the layout in your xml then you receive a crash on the onSavedInstanceState where is trying to access the value of the state. A null check should be nice to have.

在viewpager会出现失效的情况

我一个viewpager,有4个fragment,每个fragment都是用同一个布局文件,都含有StatefulLayout,现在出现一个情况,比如我4个fragment都有一个网络访问,我全部滑过了(PagerAdapter里的destroyItem我注释了,所以不会销毁掉),然后这时4个fragment中,调用了showOffline,发现只有当前页跟上一页才会正常显示offlineView,而其他的fragment不会显示,直接变成空白页了。。。

SimpleStatefulLayout设置offline 重试button的style

app:offlineRetryText无效
因为
// setState custom offline retry text if(a.hasValue(R.styleable.SflStatefulLayout_offlineRetryText)) { setOfflineText(a.getString(R.styleable.SflStatefulLayout_offlineRetryText)); }

希望能够增加SimpleStatefulLayout中retry button的style的api

Not compatible with SwipeRefreshLayout

Hey, I probbably found an issue.
When I set empty view visible, then wrapping SwipeRefreshLayout's indicator is not visible, but it's actually triggers refresh. There is visible indicator leaving animation, but not progress animation.

Layouts hierarchy:

<android.support.v4.widget.SwipeRefreshLayout
        android:id="@+id/refresh_layout"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        >
        <cz.kinst.jakub.view.StatefulLayout
            android:id="@+id/state_layout"
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            app:progressLayout="@layout/view_progress"
            >
            <android.support.v7.widget.RecyclerView
                android:id="@+id/recycler"
                android:layout_width="match_parent"
                android:layout_height="match_parent"
                tools:listitem="@layout/item_conversation"
                />
        </cz.kinst.jakub.view.StatefulLayout>
    </android.support.v4.widget.SwipeRefreshLayout>

Any idea?

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.