Skip to content

Commit

Permalink
Fix compile error.
Browse files Browse the repository at this point in the history
Set "fitCenter" for single image view
  • Loading branch information
Jack Fan committed Oct 1, 2015
1 parent 776230a commit 2d473a5
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
Expand Up @@ -30,7 +30,6 @@
import test.com.activitysharedelementtransition.intents.ComposedIntent;
import test.com.activitysharedelementtransition.intents.SharedElementTransitionIntent;
import test.com.activitysharedelementtransition.intents.SingleImageIntent;
import test.com.activitysharedelementtransition.transition.MySharedElementCallback;

public class SharedElementTransitionActivity extends AppCompatActivity
implements SingleImageAdapter.OnItemCLickListener,
Expand Down Expand Up @@ -103,7 +102,6 @@ public void onItemClick(View imageView, int imageRefId, String imageTransitionNa

// getWindow().setSharedElementEnterTransition(new AutoTransition());
// getWindow().setSharedElementExitTransition(new AutoTransition());
setEnterSharedElementCallback(new MySharedElementCallback());
startActivity(intent, options.toBundle());

}
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/res/layout/activity_single_image.xml
Expand Up @@ -3,4 +3,4 @@
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:scaleType="centerCrop"/>
android:scaleType="fitCenter"/>
3 changes: 2 additions & 1 deletion app/src/main/res/transition/change_image_transform.xml
@@ -1,5 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<transitionSet xmlns:android="http://schemas.android.com/apk/res/android">
<transitionSet xmlns:android="http://schemas.android.com/apk/res/android"
android:duration="2000">
<!-- Exclude the status bar and the navigation bar from the animation -->
<targets>
<target android:excludeId="@android:id/statusBarBackground" />
Expand Down

0 comments on commit 2d473a5

Please sign in to comment.