Skip to content

Instantly share code, notes, and snippets.

@d3bt3ch
d3bt3ch / Readme.md
Created May 21, 2018 02:11 — forked from gabrielemariotti/Readme.md
A SimpleSectionedRecyclerViewAdapter: use this class to realize a simple sectioned `RecyclerView.Adapter`.

You can use this class to realize a simple sectioned RecyclerView.Adapter without changing your code.

The RecyclerView should use a LinearLayoutManager. You can use this code also with the TwoWayView with the ListLayoutManager (https://github.com/lucasr/twoway-view)

This is a porting of the class SimpleSectionedListAdapter provided by Google

Screen

Example:

@d3bt3ch
d3bt3ch / design-pattern-behavioral-iterator-realworld-code
Last active April 24, 2018 13:10
Provide a way to access the elements of an aggregate object sequentially without exposing its underlying representation.
using System;
using System.Collections;
namespace DesignPatterns
{
/// <summary>
/// MainApp startup class for Real-World
/// Iterator Design Pattern.
/// </summary>
class MainApp
using System;
namespace DesignPatterns
{
/// <summary>
/// MainApp startup class for Real-World
/// Chain of Responsibility Design Pattern.
/// </summary>
class MainApp
{
using System;
namespace AzureTraining
{
/// <summary>
/// MainApp startup class for Structural
/// Abstract Factory Design Pattern.
/// </summary>
class MainApp
{
using System;
namespace AzureTraining
{
/// <summary>
/// MainApp startup class for Structural
/// Abstract Factory Design Pattern.
/// </summary>
class MainApp
{
using System;
using System.Collections.Generic;
namespace DoFactory.GangOfFour.Prototype.RealWorld
{
/// <summary>
/// MainApp startup class for Real-World
/// Prototype Design Pattern.
/// </summary>
class MainApp
using System;
namespace AzureTraining
{
/// <summary>
/// MainApp startup class for Structural
/// Prototype Design Pattern.
/// </summary>
class MainApp
{
using System;
using System.Collections.Generic;
namespace DoFactory.GangOfFour.Builder.Structural
{
/// <summary>
/// MainApp startup class for Structural
/// Builder Design Pattern.
/// </summary>
public class MainApp
using System;
using System.Collections.Generic;
namespace DoFactory.GangOfFour.Builder.Structural
{
/// <summary>
/// MainApp startup class for Structural
/// Builder Design Pattern.
/// </summary>
public class MainApp
using System;
using System.Collections.Generic;
namespace DoFactory.GangOfFour.Builder.Structural
{
/// <summary>
/// MainApp startup class for Structural
/// Builder Design Pattern.
/// </summary>
public class MainApp