diff --git a/component/viewer/src/main/java/one/nem/lacerta/component/viewer/ViewerContainerFragment.java b/component/viewer/src/main/java/one/nem/lacerta/component/viewer/ViewerContainerFragment.java index f85fca95..7636eb97 100644 --- a/component/viewer/src/main/java/one/nem/lacerta/component/viewer/ViewerContainerFragment.java +++ b/component/viewer/src/main/java/one/nem/lacerta/component/viewer/ViewerContainerFragment.java @@ -9,6 +9,7 @@ import androidx.viewpager2.widget.ViewPager2; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; +import android.widget.ImageButton; import android.widget.TextView; import android.widget.Toast; @@ -137,6 +138,11 @@ public class ViewerContainerFragment extends Fragment { TextView textView = customView.findViewById(R.id.tab_title); textView.setText(viewerViewPagerAdapter.getTabTitle(position)); + ImageButton imageButton = customView.findViewById(R.id.tab_modify); + imageButton.setOnClickListener(v -> { + Toast.makeText(getContext(), "Working!, Index:" + position, Toast.LENGTH_SHORT).show(); + }); + tab.setCustomView(customView); }).attach(); }