Skip to content

bangarharshit/Ribs-ScreenStack-Impl

Repository files navigation

Ribs-ScreenStack-Impl

An implementation of ribs screenstack

How to use:

// Push a new screen
screenStackBase.pushScreen(new ViewProvider() {
      @Override public View buildView(ViewGroup parentView) {
        View root = LayoutInflater.from(context).inflate(R.layout.view_test, parentView, false);
        TextView arbit = root.findViewById(R.id.arbit);
        arbit.setText(String.valueOf(new Random().nextInt(100)));
        root.setOnClickListener(new View.OnClickListener() {
          @Override public void onClick(View view) {
            pushScreen();
          }
        });
        return root;
      }
    }); 
// Pops a screen
if (screenStackBase.size() > 0) {
      screenStackBase.popScreen();
      return true;
}

About

An implementation of ribs screenstack

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages