This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Copyright (c) 2016 Alashov Berkeli | |
* It is licensed under GNU GPL v. 2 or later. For full terms see the file LICENSE. | |
*/ | |
package tm.asmanoky.aziada.util.glide; | |
import android.app.Activity; | |
import android.content.Context; | |
import android.graphics.drawable.Drawable; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class CustomAdapter extends RecyclerView.Adapter<RecyclerView.ViewHolder>{ | |
//our items | |
List<Generic> items = new Arraylist<>(); | |
//headers | |
List<View> headers = new ArrayList<>(); | |
//footers | |
List<View> footers = new ArrayList<>(); | |
public static final int TYPE_HEADER = 111; | |
public static final int TYPE_FOOTER = 222; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* The MIT License (MIT) | |
* | |
* Copyright (c) 2014 Matthieu Harlé | |
* | |
* Permission is hereby granted, free of charge, to any person obtaining a copy | |
* of this software and associated documentation files (the "Software"), to deal | |
* in the Software without restriction, including without limitation the rights | |
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
* copies of the Software, and to permit persons to whom the Software is |