use of android.app.SharedElementCallback in project android_frameworks_base by crdroidandroid.
the class ActivityTransition method setupHero.
private void setupHero() {
String name = getIntent().getStringExtra(KEY_ID);
mHero = null;
if (name != null) {
mHero = (ImageView) findViewById(getIdForKey(name));
setEnterSharedElementCallback(new SharedElementCallback() {
@Override
public void onMapSharedElements(List<String> names, Map<String, View> sharedElements) {
sharedElements.put("hero", mHero);
}
});
}
}
use of android.app.SharedElementCallback in project platform_frameworks_base by android.
the class ActivityTransition method setupHero.
private void setupHero() {
String name = getIntent().getStringExtra(KEY_ID);
mHero = null;
if (name != null) {
mHero = (ImageView) findViewById(getIdForKey(name));
setEnterSharedElementCallback(new SharedElementCallback() {
@Override
public void onMapSharedElements(List<String> names, Map<String, View> sharedElements) {
sharedElements.put("hero", mHero);
}
});
}
}
Aggregations