This file contains hidden or 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
/** These codes are licensed under CC0. */ | |
/** Fragmentが画面上に表示されてonResumeが呼ばれるまで待つ */ | |
private void waitForOnResume(final Fragment fragment, int timeout) throws Throwable { | |
waitForTrue(this, new TestUtils.BooleanFunc() { | |
@Override | |
public boolean run() { | |
Rect r = new Rect(); | |
View view = fragment.getView(); | |
if (view != null) { | |
view.getGlobalVisibleRect(r); |
This file contains hidden or 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
import android.content.Context; | |
import android.support.v7.widget.RecyclerView; | |
import android.view.View; | |
import android.view.ViewGroup; | |
import java.util.ArrayList; | |
import java.util.HashMap; | |
import java.util.List; | |
import java.util.Map; |
This file contains hidden or 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
/** | |
* These codes are licensed under CC0. | |
*/ | |
public class FlexibleListView extends LinearLayout { | |
public interface OnItemClickListener { | |
void onItemClick(FlexibleListView parent, View view, int position, long id); | |
} | |
private RecyclerView.AdapterDataObserver mAdapterDataObserver = new RecyclerView.AdapterDataObserver() { | |
@Override |
This file contains hidden or 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
#!/bin/sh | |
PORT="18080" | |
ID="cattaka" | |
PW="potato" | |
SIZE="640x480" | |
FRAMERATE="2" | |
start() { | |
echo -n "Starting mjpg_streamer: " |
This file contains hidden or 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
import android.view.View; | |
import android.widget.RelativeLayout; | |
/** | |
* Save all methods from proguard!! | |
* <p/> | |
* Created by cattaka on 2015/11/10. | |
*/ | |
public class RelativeLayoutAnimatorHelper { | |
View mView; |
This file contains hidden or 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
#!/bin/sh | |
echo "name url" | |
for i in * ; do | |
if [ -d $i -a -f $i/.git/config ] ; then | |
url=`grep url $i/.git/config | cut -d "=" -f 2` | |
splited=`echo $url|sed "s/[@:\/]/\t/g"` | |
echo $i $url $splited | |
fi | |
done |
This file contains hidden or 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 enum ConnectionStatus { | |
NOT_CONNECTED(false), | |
CONNECTING(false), | |
CONNECTED(true); | |
private final boolean established; | |
public ConnectionStatus(boolean established) { | |
this.established = established; | |
} |
This file contains hidden or 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
import android.support.annotation.Keep; | |
import android.util.Property; | |
import android.view.View; | |
import android.view.ViewGroup; | |
/** | |
* These codes are licensed under CC0. | |
* <p> | |
* Save all methods from proguard!! | |
* <p/> |
This file contains hidden or 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
import android.content.Context; | |
import android.support.annotation.IdRes; | |
import android.support.annotation.NonNull; | |
import android.support.v7.widget.RecyclerView; | |
import android.view.View; | |
import android.view.ViewGroup; | |
import android.widget.BaseAdapter; | |
/** | |
* These codes are licensed under CC0. |
This file contains hidden or 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
import android.content.Context; | |
import android.support.design.widget.CoordinatorLayout; | |
import android.support.v4.view.NestedScrollingChildHelper; | |
import android.util.AttributeSet; | |
import android.view.View; | |
/** | |
* These codes are licensed under CC0. | |
* | |
* Created by cattaka on 2016/04/27. |
OlderNewer