Skip to content

Instantly share code, notes, and snippets.

Avatar
🏠
Working from home

Anton Nurdin Tuhadiansyah anton46

🏠
Working from home
  • Yahoo Japan
  • Indonesia
View GitHub Profile
View CustomLinearLayoutManager.java
import android.content.Context;
import android.graphics.Rect;
import android.support.v4.view.ViewCompat;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.util.Log;
import android.view.View;
import android.view.ViewGroup;
import java.lang.reflect.Field;
View MainActivity.java
public class MainActivity extends ActionBarActivity {
int number = 1;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
getSupportActionBar().setDisplayHomeAsUpEnabled(true);