Skip to content

Instantly share code, notes, and snippets.

💭
I may be slow to respond.

Farbod Salamat-Zadeh FarbodSalamat-Zadeh

💭
I may be slow to respond.
Block or report user

Report or block FarbodSalamat-Zadeh

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@FarbodSalamat-Zadeh
FarbodSalamat-Zadeh / color_file_converter.py
Last active Aug 3, 2017
Python script to convert color resource values in an Android project's `colors.xml` so they instead reference values from my MaterialDesignUtils library - see https://github.com/FarbodSalamat-Zadeh/MaterialDesignUtils
View color_file_converter.py
# coding utf-8
# Copyright 2016 Farbod Salamat-Zadeh
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
@FarbodSalamat-Zadeh
FarbodSalamat-Zadeh / ExampleAdapter.java
Last active Oct 12, 2019
A basic example to demonstrate how RecyclerViews can be used
View ExampleAdapter.java
/*
* Copyright 2016 Farbod Salamat-Zadeh
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
@FarbodSalamat-Zadeh
FarbodSalamat-Zadeh / SimpleListAdapter.java
Last active Dec 17, 2015
A RecyclerView Adapter for a simple list in Android
View SimpleListAdapter.java
package com.yourcompany.yourapp.adapter;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;
import com.yourcompany.yourapp.R;
@FarbodSalamat-Zadeh
FarbodSalamat-Zadeh / ViewGroupAdapter.java
Created Aug 25, 2015
An easy way to add list items to a ViewGroup.
View ViewGroupAdapter.java
/*
* Copyright 2015 Farbod Salamat-Zadeh
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
@FarbodSalamat-Zadeh
FarbodSalamat-Zadeh / LabelledSpinner.md
Last active Aug 3, 2017
A Spinner component with a floating label for Android, similar to EditText components wrapped in a TextInputLayout.
View LabelledSpinner.md

Moved to an Android library...

This Gist has been discontinued and will be updated on a GitHub project here. The files I have removed from this Gist can be found there. Please feel free to open issues, pull requests, etc, so that I can change and improve the library how you like.

If you are already using the Gist, delete the layout XML, values XML, and Java files (the ones I have removed from this Gist), and instead add the following in your app module's build.gradle dependencies:

compile 'com.satsuware.lib:usefulviews:+'

Make sure to change your imports as well in the files that you are using the LabelledSpinner component.

You can’t perform that action at this time.