Skip to content

Instantly share code, notes, and snippets.

View hasankucuk's full-sized avatar

Hasan Küçük hasankucuk

View GitHub Profile
@hasankucuk
hasankucuk / 1-README.md
Created April 30, 2019 10:26 — forked from lopspower/1-README.md
Retrofit Introduction

Retrofit Introduction

Twitter API

Type-safe HTTP client for Android and Java by Square, Inc.

Download

@hasankucuk
hasankucuk / ProGuard_ignore_libraries
Created April 15, 2019 07:10 — forked from SeanZoR/ProGuard_ignore_libraries
ProGuard - simple ignore for 3rd party libraries
# Ignoring all of the external "org" libraries
# (for example org.apache & org.jackson)
-keep class org.** { *; }
-dontwarn org.**
# Have more? Simply add them like the one above,
# and change to the desired package name.
@hasankucuk
hasankucuk / jdk8-kurulum.md
Created April 1, 2019 06:11 — forked from emrekgn/jdk8-kurulum.md
Java 8 Kurulumu

Java 8 kurulumu

Debian tabanlı (Debian, Ubuntu, Mint, Pardus gibi) Linux sistemlerde (paket deposunda bulunmadığı taktirde) JDK8 aşağıdaki adımlar izlenerek kurulabilir:

  1. sudo apt-get install software-properties-common komutu ile (eğer yoksa) add-apt-repository komutuna ilişkin kurulum yapılır.
  2. sudo add-apt-repository "deb http://ppa.launchpad.net/webupd8team/java/ubuntu xenial main" komutuyla Java 8'in bulunduğu paket deposu sisteme eklenir.
  3. sudo apt-get update && sudo apt-get install oracle-java8-installer komutuyla Oracle JDK 8 kurulumu tamamlanır.
  4. Kurulumu sınamak adına java -version komutu çalıştırılarak sürümün doğruluğu kontrol edilebilir.

Java kurulumlarının yönetimi

@hasankucuk
hasankucuk / RoundedBottomSheetDialogFragment.kt
Created March 30, 2019 12:27 — forked from ArthurNagy/RoundedBottomSheetDialogFragment.kt
Rounded modal bottom sheet as seen in new Google products(Tasks, News, etc.), described in this article: https://medium.com/halcyon-mobile/implementing-googles-refreshed-modal-bottom-sheet-4e76cb5de65b
package com.your.package
import android.app.Dialog
import android.os.Bundle
import com.your.package.R
import com.google.android.material.bottomsheet.BottomSheetDialog
import com.google.android.material.bottomsheet.BottomSheetDialogFragment
/**
* BottomSheetDialog fragment that uses a custom
@hasankucuk
hasankucuk / BaseActivity.java
Created March 14, 2019 08:28 — forked from sandeeptengale/BaseActivity.java
Sample code to create BaseActivity for Android
package com.vtuforum.android.views
import android.app.ProgressDialog
import android.os.Bundle
import android.support.design.widget.CoordinatorLayout
import android.support.v7.app.AppCompatActivity
import android.widget.FrameLayout
import android.widget.ImageButton
import android.widget.TextView
import com.vtuforum.vtustudies.R
@hasankucuk
hasankucuk / FirstLastItemSpacesDecoration.java
Created February 19, 2019 11:34 — forked from Miha-x64/FirstLastItemSpacesDecoration.java
RecyclerView decoration which adds indentation in the beginning and in the end of content.
package net.aquadc.commonandroid.lists;
import android.graphics.Rect;
import android.support.v7.widget.RecyclerView;
import android.view.View;
public class FirstLastItemSpacesDecoration extends RecyclerView.ItemDecoration {
private final int directSpace;
private final int reverseSpace;
@hasankucuk
hasankucuk / FooAdapter.java
Created January 9, 2019 06:55 — forked from morgotth/FooAdapter.java
Recycled Pager Adapter inspired by RecyclerView
package com.example;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import com.example.Foo;
import com.example.RecycledPagerAdapter;
public class FooAdapter extends RecycledPagerAdapter<FooViewHolder> {
@hasankucuk
hasankucuk / LoadMoreAdapter.java
Created January 5, 2019 13:17 — forked from talenguyen/LoadMoreAdapter.java
Implementation of Load More feature for RecyclerView
import android.support.v7.widget.RecyclerView;
import android.view.ViewGroup;
import java.util.ArrayList;
import java.util.List;
public abstract class LoadMoreAdapter<T>
extends RecyclerView.Adapter<RecyclerView.ViewHolder> {
public static final int VIEW_TYPE_LOAD_MORE = 1;
@hasankucuk
hasankucuk / genymotionwithplay.txt
Created January 5, 2019 11:24 — forked from wbroek/genymotionwithplay.txt
Genymotion with Google Play Services for ARM
NOTE: Easier way is the X86 way, described on https://www.genymotion.com/help/desktop/faq/#google-play-services
Download the following ZIPs:
ARM Translation Installer v1.1 (http://www.mirrorcreator.com/files/0ZIO8PME/Genymotion-ARM-Translation_v1.1.zip_links)
Download the correct GApps for your Android version:
Google Apps for Android 6.0 (https://www.androidfilehost.com/?fid=24052804347835438 - benzo-gapps-M-20151011-signed-chroma-r3.zip)
Google Apps for Android 5.1 (https://www.androidfilehost.com/?fid=96042739161891406 - gapps-L-4-21-15.zip)
Google Apps for Android 5.0 (https://www.androidfilehost.com/?fid=95784891001614559 - gapps-lp-20141109-signed.zip)
@hasankucuk
hasankucuk / gist:1075778ff74a7e2a18128bcf84b106de
Created December 18, 2018 17:12 — forked from y-gagar1n/gist:8469484
DateTime format patterns
DateTime.ToString() Patterns
All the patterns:
0 MM/dd/yyyy 08/22/2006
1 dddd, dd MMMM yyyy Tuesday, 22 August 2006
2 dddd, dd MMMM yyyy HH:mm Tuesday, 22 August 2006 06:30
3 dddd, dd MMMM yyyy hh:mm tt Tuesday, 22 August 2006 06:30 AM
4 dddd, dd MMMM yyyy H:mm Tuesday, 22 August 2006 6:30
5 dddd, dd MMMM yyyy h:mm tt Tuesday, 22 August 2006 6:30 AM