This file contains 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
### Keybase proof | |
I hereby claim: | |
* I am 29jitender on github. | |
* I am 29jitender (https://keybase.io/29jitender) on keybase. | |
* I have a public key whose fingerprint is 3AF3 C3D7 AC72 1B15 116F 974A 5183 7783 47AA B40E | |
To claim this, I am signing this object: |
This file contains 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
/* | |
* Copyright 2016 Google Inc. | |
* | |
* 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 | |
* | |
* http://www.apache.org/licenses/LICENSE-2.0 | |
* | |
* Unless required by applicable law or agreed to in writing, software |
This file contains 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.support.v4.view.ViewCompat; | |
import android.support.v4.view.ViewPager; | |
import android.view.View; | |
/** | |
* Custom PageTransformer simulates Yahoo News Digest ViewPager animation. | |
* | |
* | |
* Created by zhelu on 2/27/14. | |
*/ |
This file contains 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 Uri getContactPhotoUri(long contactId) { | |
Uri photoUri = ContentUris.withAppendedId(Contacts.CONTENT_URI, | |
contactId); | |
photoUri = Uri.withAppendedPath(photoUri, | |
Contacts.Photo.CONTENT_DIRECTORY); | |
return photoUri; | |
} |