Skip to content

Instantly share code, notes, and snippets.

View xxnjdlys's full-sized avatar

xxnjdlys xxnjdlys

  • China Beijing
  • 07:27 (UTC +08:00)
View GitHub Profile
package com.wukongtv.wkremote.client.widget;
import android.app.Activity;
import android.content.Context;
import android.content.res.TypedArray;
import android.util.AttributeSet;
import android.view.MotionEvent;
import android.view.View;
import android.view.ViewConfiguration;
@xxnjdlys
xxnjdlys / GridViewWithHeaderAndFooter.java
Created May 7, 2015 14:30
something's wrong with gridview item position.
package in.srain.cube.demo.ui;
/**
* Created by sadieyu
* Date: 15-5-7.
* Time: 下午10:12
*/
import android.annotation.TargetApi;
import android.content.Context;
@xxnjdlys
xxnjdlys / gist:85f1ebb3b9ec438c18a3
Created May 7, 2015 14:30
GridViewWithHeaderAndFooter.java
package in.srain.cube.demo.ui;
/**
* Created by sadieyu
* Date: 15-5-7.
* Time: 下午10:12
*/
import android.annotation.TargetApi;
import android.content.Context;
@xxnjdlys
xxnjdlys / add log to smali code
Created April 10, 2015 06:43
add log to smali code
package com.sadieyu.logg;
import android.app.Activity;
import android.os.Bundle;
import android.util.Log;
/*
.class public Lcom/sadieyu/logg/MainActivity;
.super Landroid/app/Activity;
.source "MainActivity.java"
@xxnjdlys
xxnjdlys / gist:5438a7b35befa380ce58
Last active September 5, 2017 06:29
LintError no .class files were found in project log file
Scanning 1.3: ...........
Scanning 1.3 (Phase 2): .
Scanning unspecified: ............................................................
Scanning unspecified (Phase 2): ..........................
Scanning release: .
Scanning release (Phase 2):
Scanning debug: .
Scanning debug (Phase 2):
Scanning unspecified: .
Scanning unspecified (Phase 2):
/**
* Created by sadieyu
* Date: 15-1-23
* Time: 上午1:23
*
* .-~~~~~~~~~-._ _.-~~~~~~~~~-.
* __.' ~. .~ `.__
* .'// Hello \./ World! \\`.
* .'// | \\`.
* .'// .-~"""""""~~~~-._ | _,-~~~~"""""""~-. \\`.
package com.wukongtv.wkremote.client.tv;
import android.text.TextUtils;
import android.view.KeyEvent;
import com.wukongtv.wkremote.client.ControlImpl.ControlMiddleware;
import com.wukongtv.wkremote.client.R;
import java.util.HashMap;
package com.wukongtv.wkremote.client;
import android.annotation.SuppressLint;
import android.graphics.Bitmap;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:0.12.2'
}
}
apply plugin: 'com.android.application'
# Add project specific ProGuard rules here.
# By default, the flags in this file are appended to flags specified
# in C:/Users/zhangpe/AppData/Local/Android/android-studio/sdk/tools/proguard/proguard-android.txt
# You can edit the include path and order by changing the ProGuard
# include property in project.properties.
#
# For more details, see
# http://developer.android.com/guide/developing/tools/proguard.html
# Add any project specific keep options here: