Skip to content

Instantly share code, notes, and snippets.

Joielechong joielechong

Block or report user

Report or block joielechong

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
@joielechong
joielechong / README.md
Created Aug 28, 2018 — forked from StefMa/README.md
SearchView suggestions over network
View README.md

SearchView suggestions over network


What is it?

This is a simple how to make a network request with the SearchView implemented in a Toolbar.


Why?

The documentation for a Search Interface says that you can't make a a request over the network. You can only make a SearchView via recent searches or over a ContentProvider. I want to demonstrate how to make network request with the searchview.

@joielechong
joielechong / MethodParamNamesScaner.java
Created Jul 2, 2017 — forked from wendal/MethodParamNamesScaner.java
获得方法形参名称列表(Java)
View MethodParamNamesScaner.java
package org.nutz.lang.util;
import java.io.BufferedInputStream;
import java.io.DataInputStream;
import java.io.IOException;
import java.io.InputStream;
import java.lang.reflect.Constructor;
import java.lang.reflect.Method;
import java.util.ArrayList;
import java.util.HashMap;
@joielechong
joielechong / BadgeTabLayout.java
Created Jan 24, 2017 — forked from eneim/BadgeTabLayout.java
A custom TabLayout with badge support for Tabs
View BadgeTabLayout.java
package im.ene.lab.android.widgets;
import android.content.Context;
import android.graphics.PorterDuff;
import android.graphics.drawable.Drawable;
import android.os.Build;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import android.support.design.widget.TabLayout;
import android.util.AttributeSet;
@joielechong
joielechong / hosts
Last active May 9, 2019 — forked from eyecatchup/hosts
Disable Skype ads: 1.) Add hosts to your hosts file 2.) Flush DNS resolver cache (ipconfig /flushdns)
View hosts
# On Windows 7, 8, 10 Hosts file is in c:\windows\system32\drivers\etc\hosts
#
# Block Skype ads
127.0.0.1 secure-sin.adnxs.com # On skype 7.*
127.0.0.1 *.adnxs.com # On skype 7.*
127.0.0.1 logi10.xiti.com # On skype 7.*
127.0.0.1 *.everesttech.net # On skype 7.*
127.0.0.1 pixel.everesttech.net # On skype 7.*
127.0.0.1 d.adroll.com # On skype 7.*
@joielechong
joielechong / SomeFragment.java
Created Aug 1, 2016 — forked from joshdholtz/SomeFragment.java
Android Google Maps V2 - MapView in XML
View SomeFragment.java
public class SomeFragment extends Fragment {
MapView mapView;
GoogleMap map;
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
View v = inflater.inflate(R.layout.some_layout, container, false);
@joielechong
joielechong / ContohArray.java
Created Jan 25, 2016
Contoh program pada artikel "Menggunakan Array pada Java"
View ContohArray.java
public class ContohAray {
// Deklarasi variable array tanpa ukuran
static int[] arrayInt;
// deklarasi variable array dengan ukuran
static String[] arrayString = new String[5];
// deklarasi variable array dengan nilainya langsung
@joielechong
joielechong / androidproject.properties
Created Nov 9, 2015
Signing Android apk without putting keystore info in build.gradle
View androidproject.properties
STORE_FILE=/your/path/to/android.keystore
STORE_PASSWORD=yourstorepassword
KEY_ALIAS=yourkeyalias
KEY_PASSWORD=yourkeypassword
You can’t perform that action at this time.