Coder Social home page Coder Social logo

heba-al-hindi / daily-shopping-list Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 136 KB

I have developed this project which it's core is the use of android firebase to manage app authentication and database, the app save your daily shopping list and manipulate it with (Update,Delete)..

Java 100.00%
android firebase firebase-auth firebase-realtime-database firebase-ui cardview java

daily-shopping-list's People

Contributors

heba-al-hindi avatar

Stargazers

 avatar

Watchers

 avatar

daily-shopping-list's Issues

FirebaseRecyclerAdapter<Data, myViewHolder> adapter = new FirebaseRecyclerAdapter<Data, myViewHolder>(Data.class, R.layout.data_item, myViewHolder.class, databaseReference) {

First,
THANK YOU for AMAZING app !

its really great project.

since I tried to implement the same code on my project, i got error in FirebaseRecyclerAdapter line(172). I couldn't use populateViewHolder, because firebase already asked me to implement the methods, and once i implemet them, it asking me to return something or it will stay as error line.

may you help me please?

Thanks
`public void createRecycler() {

    FirebaseRecyclerAdapter<Events, myViewHolder> adapter = new FirebaseRecyclerAdapter<Events, myViewHolder>(Events.class, R.layout.data_item, myViewHolder.class, databaseReference) {


        @NonNull
        @Override
        public myViewHolder onCreateViewHolder(@NonNull ViewGroup parent, int viewType) {
            return null;
        }

        @Override
        protected void onBindViewHolder(@NonNull myViewHolder holder, int position, @NonNull Events model) {

        }

        protected void populateViewHolder(myViewHolder myViewHolder, final Events data, final int i) {

            myViewHolder.setDate(data.getEventDate());
            myViewHolder.setType(data.getEventName());
      //      myViewHolder.setAmount(model.getmAmount());
            myViewHolder.setNote("note: " + data.getEventDesc());

            myViewHolder.view.setOnClickListener(new View.OnClickListener() {
                @Override
                public void onClick(View v) {
                    // save the current ref and inputs to view inside update dialog

                    name = data.getEventName();
               //     amount = model.getmAmount();
                    desc = data.getEventDesc();
                    updateData();
                }
            });
        }

    };

    recyclerView.setAdapter(adapter);

}`

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.