Skip to content

Instantly share code, notes, and snippets.

@Frikish
Frikish / SwipeRefreshLayout and StickyListHeaders.md
Last active Feb 23, 2017
SwipeRefreshLayout with StickyListHeaders
View SwipeRefreshLayout and StickyListHeaders.md

Trying to find a solution

StickyListHeaders

SwipeRefreshLayout

I had a problem getting the new fancy SwipeRefreshLayout from the appcompat lib to work with a custom listview, in this case the StickyListHeaders. Since the First child of the SwipeRefreshLayout should be either a ScrollView or a pure List, some workaround had to be done.

@Frikish
Frikish / HTMLColors.swift
Created Nov 6, 2015
HTML Color Names easy in a Swift File
View HTMLColors.swift
import Foundation
public struct HTMLColors {
public static let colors: [String : String] = [
"aliceblue" : "#f0f8ff",
"antiquewhite" : "#faebd7",
"aqua" : "#00ffff",
"aquamarine" : "#7fffd4",
"azure" : "#f0ffff",
"beige" : "#f5f5dc",