Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how to pass multiple datas? #1

Open
droidwithme opened this issue Sep 24, 2015 · 0 comments
Open

how to pass multiple datas? #1

droidwithme opened this issue Sep 24, 2015 · 0 comments

Comments

@droidwithme
Copy link

How to add multiple views like textview and imageview etc in the layouts? and how to bind the data accordingly? and is enough capable to load images let say of 250-300 kb. and the images can be a couple of hundred. also i want to know that the normal listview swipes the views while scrolling so is it free of that?
plus what does that

                                                                         public class WallData<T> {
                                                                        @Retention(RetentionPolicy.SOURCE)
                                                                           @IntDef({IMAGE, VIDEO,TEXT,AUDIO})
                                                                            public @interface ViewType {
                                                                                          }
                                                                               public static final int IMAGE = 0;
                                                                             public static final int VIDEO = 1;
                                                                               public static final int TEXT = 2;
                                                                              public static final int AUDIO = 3;


                                                            public T object;
                                                           @ViewType
                                                            public int viewType;

                                                   public WallData(T object, int viewType) {
                                                   this.object = object;
                                                this.viewType = viewType;
                                            }
                                           }

means even my app will contain 5 views (2Texviews,2ImageViews,and 1 progressbar) and 4types of layout item. i need your help. Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant