Skip to content

Instantly share code, notes, and snippets.

@Fbalashov
Fbalashov / InvalidatesView.kt
Last active December 6, 2022 12:08
A property delegate to remove boilerplate when updating views
package *****
import android.view.View
import kotlin.properties.ReadWriteProperty
import kotlin.reflect.KProperty
/**
* Copyright 6/24/2017 Fuad Balashov
*
* Licensed under the Apache License, Version 2.0 (the "License");
@Fbalashov
Fbalashov / styles.js
Created August 25, 2016 01:22
Resources React Native/Firebase List View Tutorial
const React = require('react-native')
const {StyleSheet} = React
var styles = StyleSheet.create({
container: {
backgroundColor: '#f2f2f2',
flex: 1,
},
listView: {
flex: 1,
@Fbalashov
Fbalashov / MainActivity.java
Last active July 4, 2016 20:11
Code Styling
package com.fbalashov.spikingproject;
import android.content.Context;
import android.content.Intent;
import android.os.AsyncTask;
import android.os.Bundle;
import android.support.v4.view.MenuItemCompat;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.SearchView;
import android.util.Log;
@Fbalashov
Fbalashov / BaseActivity.java
Last active June 25, 2016 21:23
Declarative Persistence in Android
package com.fbalashov.persistableannotations;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
/**
* @author Fuad.Balashov on 6/22/2016.
*/
public class BaseActivity extends AppCompatActivity {
@Fbalashov
Fbalashov / AndroidManifest.xml
Created November 7, 2015 18:16
Intro App: Async Task
<!-- This stuff goes inside of your manifest tags -->
<uses-permission android:name="android.permission.INTERNET"/>
<application
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:theme="@style/AppTheme" >
<activity
android:name=".ViewPostActivity"
android:label="@string/app_name" >