Click Image
Hitexroid opened this issue · 2 comments
Hitexroid commented
when i add Transitional Imageview
in xml
, work's fine.
but when i add it programmatically , click not work.
Hitexroid commented
Resolved
declare LargeImageActivity
into Android Manifest
<activity android:name="com.mostafaaryan.transitionalimageview.controller.LargeImageActivity"
android:theme="@style/AppTheme.NoActionBar.Transparent"/>
add this after create
transitionalImageView.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
Intent intent = new Intent(getApplicationContext(), LargeImageActivity.class);
intent.putExtra(getApplicationContext().getResources().getString(R.string.transitional_image), transitionalImage);
intent.putExtra(BA.applicationContext.getResources().getString(R.string.view_info),
Utils.captureValues(BA.applicationContext, view));
startActivity(intent);
overridePendingTransition(0, 0);
}
});
MostafaAryan commented
Hi @Hitexroid .
Thanks for mentioning the workaround, I'll consider this issue in next commit.