Skip to content

Instantly share code, notes, and snippets.


Mahdi Pishguy MahdiPishguy

Block or report user

Report or block MahdiPishguy

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
// digunakan untuk Highlight text yang sedang dicari
private void setColor(TextView view, String fulltext, String subtext, int color) {
view.setText(fulltext, TextView.BufferType.SPANNABLE);
Spannable str = (Spannable) view.getText();
int i = fulltext.indexOf(subtext);
str.setSpan(new ForegroundColorSpan(color), i, i + subtext.length(),
MahdiPishguy /
Created Sep 21, 2017 — forked from pratamawijaya/
Android Endless Scroll using RecyclerView
public class EndlessListActivity<D> extends Activity {
private EndlessRecyclerOnScrollListener mEndlessScrollListener;
private EndlessListAdapter mAdapter;
protected void onCreate(Bundle savedInstanceState) {
RecyclerView listView = (RecyclerView) findViewById(;
LinearLayoutManager linearLayoutManager = new LinearLayoutManager(this);
* Copyright (C) 2014
* 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
* Unless required by applicable law or agreed to in writing, software
MahdiPishguy / APP
Last active May 2, 2018
Implementing JobManager for Dagger2
View APP
public class Alachiq extends MultiDexApplication {
private static Context context;
public static SlidrConfig config;
private GithubService githubService;
private Picasso picasso;
private static GithubApplicationComponent component;
private JobManager jobManager;
private static Alachiq instance;
You can’t perform that action at this time.