This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class User { | |
private String name; | |
private int age; | |
public User(String name, int age) { | |
this.name = name; | |
this.age = age; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[...] | |
mEditText.setOnTouchListener( | |
new OnEditTextRightDrawableTouchListener(mEditText) { | |
@Override | |
public void OnDrawableClick() { | |
// The right drawable was clicked. Your action goes here. | |
} | |
}); | |
[...] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(...) | |
mSupportMapFragment = (OnScrollableContainerMapFragment) getChildFragmentManager() | |
.findFragmentById(R.id.fragment_map); | |
mSupportMapFragment | |
.setOnTouchListener(new OnScrollableContainerMapFragment.OnTouchListener() { | |
@Override | |
public void onStartScrollingMap() { | |
mScrollView.requestDisallowInterceptTouchEvent(true); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import android.content.Context; | |
import android.support.annotation.NonNull; | |
import android.support.annotation.Nullable; | |
import android.support.design.widget.TabLayout; | |
import android.util.AttributeSet; | |
import android.widget.LinearLayout; | |
public class AdaptiveTabLayout extends TabLayout | |
{ | |
private boolean mGravityAndModeSeUpNeeded = true; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class ApiCalls | |
{ | |
public static Call<DummyObject> getDummyObjectCall() | |
{ | |
return ApiServices | |
.getDummyService() | |
.getDummyObject(); | |
} | |
public static Call<List<DummyObject>> getDummyObjectListCall() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{...} | |
import android.app.Fragment; | |
import android.app.FragmentTransaction; | |
import android.content.Context; | |
import android.content.Intent; | |
import android.graphics.PorterDuff; | |
import android.os.Bundle; | |
import android.support.v4.widget.DrawerLayout; | |
import android.support.v7.app.ActionBarDrawerToggle; |
NewerOlder