Skip to content

Instantly share code, notes, and snippets.

@zaki50
zaki50 / FloatingActionButton.java
Last active August 29, 2015 14:03
Material Design の FloatingActionButton のためのクラスを作ってみた
/*
* Copyright (C) 2014 uPhyca Inc.
*
* 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
@zaki50
zaki50 / studio.vmoptions
Created December 9, 2014 13:05
今使ってる ~/Library/Preferences/AndroidStudio/studio.vmoptions
-Xms2048m
-Xmx2048m
-XX:MaxPermSize=768m
-XX:ReservedCodeCacheSize=256m
-XX:+UseCodeCacheFlushing
-XX:+UseCompressedOops
repositories {
maven {
url 'https://github.com/zaki50/bundles_maven_repo/raw/master/maven_repo'
}
}
dependencies {
compile 'com.neenbedankt.bundles:bundles:1.0.3'
compile 'com.neenbedankt.bundles:frozen:1.0.3'
package net.vvakame.delegatefactory.sample.hide;
/* @hide */
public class Bridge {
public Bridge() {
}
/* @hide */
static Data2 combine(Data1 data) {
@aharisu
aharisu / gist:857961
Created March 7, 2011 01:53
TabViewのタブを下側に持ってくる
<?xml version="1.0" encoding="utf-8"?>
<TabHost xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@android:id/tabhost"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
>
<RelativeLayout
android:layout_width="fill_parent"
@zaki50
zaki50 / volley_with_spdy.diff
Created May 23, 2013 18:43
adamrocker さんの volley サンプル https://github.com/adamrocker/volley を元に OkHttp を組み込んで SPDY でアクセスするための差分。 変更後のものは https://github.com/zaki50/volley/tree/with-OkHttp にあります。
diff --git a/VolleySample/libs/okhttp-1.0.2.jar b/VolleySample/libs/okhttp-1.0.2.jar
new file mode 100644
index 0000000..7592cdf
Binary files /dev/null and b/VolleySample/libs/okhttp-1.0.2.jar differ
diff --git a/VolleySample/libs/volley.jar b/VolleySample/libs/volley.jar
index 31c143c..762e993 100644
Binary files a/VolleySample/libs/volley.jar and b/VolleySample/libs/volley.jar differ
diff --git a/VolleySample/src/com/adamrocker/volleysample/MainActivity.java b/VolleySample/src/com/adamrocker/volleysample/MainActivity.java
index b2c1dd5..c2118c5 100644
--- a/VolleySample/src/com/adamrocker/volleysample/MainActivity.java
@daichan4649
daichan4649 / AndroidManifest.xml
Last active December 21, 2015 12:19
物理メニューキーがある端末でも、ActionBar の overflowメニュー を強制的に表示する (for Android)
<application
android:name="daichan4649.actionbartest.TestApplication"
android:icon="@drawable/ic_launcher"
android:label="@string/app_name"
android:theme="@style/AppTheme" >
<activity
android:name="daichan4649.actionbartest.MainActivity"
android:label="@string/app_name" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
@taichi
taichi / install_phabricator_to_ubuntu12.04.1.md
Last active February 12, 2016 06:08
phabricator を ubuntu12.04.01 LTS にインストールした。(2013/02)

phabricator を ubuntu12.04.01 LTS にインストールした。(2013/02)

参考資料

事前準備

Distributor ID: Ubuntu
Description:    Ubuntu 12.04.1 LTS
Release:        12.04
@daichan4649
daichan4649 / ConfigChangeTestActivity.java
Created July 3, 2012 07:13
縦横切替で ListView/GridView を切り替える(表示用データは毎回再生成しない)
package test.fragment.configchange;
import android.app.Activity;
import android.app.Fragment;
import android.app.FragmentTransaction;
import android.os.Bundle;
/**
* 縦横切替で ListView/GridView を切り替えるサンプル
* (表示用データは毎回再生成しない)
@yyaammaa
yyaammaa / gist:7480613
Last active June 30, 2017 02:50
Butter Knifeの紹介

Butter Knifeの紹介

Android用のView Injectionライブラリである Butter Knife について解説します (といいますか、サイトに書いてあることをほとんどそのまま日本語にしただけです) 。

概要

Butter Knifeは ActionBarSherlock などでお馴染みの Square のJake WhartonさんによるAndroid用のView Injectionライブラリです。

使い方

このライブラリの目的が、

  • Activity, ViewのfindViewByIdを楽に書く