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
@Override | |
public void onResult(People.LoadPeopleResult loadPeopleResult) { | |
if (!loadPeopleResult.getStatus().isSuccess()) { | |
Log.e(TAG, loadPeopleResult.getStatus().toString()); | |
return; | |
} | |
PersonBuffer people = loadPeopleResult.getPersonBuffer(); | |
Log.d(TAG, "" + people.getCount()); | |
for(Person p : people) { | |
Log.d(TAG, p.getDisplayName()); // For example. |
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 ScaleToFitWidthHeightTransform implements Transformation { | |
private int mSize; | |
private boolean isHeightScale; | |
public ScaleToFitWidthHeightTransform(int size, boolean isHeightScale){ | |
mSize =size; | |
this.isHeightScale = isHeightScale; | |
} |
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
int maxScrollExtent = (int) ((mOverlayTop.getContentHeight() * mOverlayTop.getScale()) - mOverlayTop.getHeight()); |
NewerOlder