skip to Main Content

Android Studio – How to set Intent in setOnClickListener in ViewPager2 in Android Studio?

@Override public void onBindViewHolder(@NonNull ImageViewHolder holder, @SuppressLint("RecyclerView") int position) { holder.imageView.setImageResource(imageList.get(position)); if(position == imageList.size() - 2){ viewPager2.post(runnable); } holder.itemView.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View view) { Toast.makeText(view.getContext(), "You clicked on : " + position, Toast.LENGTH_SHORT).show(); if(position == 0){ Toast.makeText(viewPager2.getContext(),…

VIEW QUESTION

Android Studio – Manifest merger failed with multiple errors, see logs after migrating the project to android 12

android:exported needs to be explicitly specified for element <activity#com.razorpay.CheckoutActivity>. Apps targeting Android 12 and higher are required to specify an explicit value for `android:exported` when the corresponding component has an intent filter defined. See https://developer.android.com/guide/topics/manifest/activity-element#exported for details. C:UsersnarayOneDriveDesktopIndiahaatIndiahaatappsrcmainAndroidManifest.xml:12:9-16:20 Error: android:exported…

VIEW QUESTION

Android Studio – How to save number from EditView in another integer in kotlin

I'm pretty new to android so I will try to explain this the best way I can, so I have a EditView in an activity I created like this: <EditText android:id="@+id/num" android:layout_width="230dp" android:layout_height="61dp" android:inputType="number" android:background="@drawable/border" android:layout_marginTop="25dp" app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintHorizontal_bias="0.502" app:layout_constraintStart_toStartOf="parent"…

VIEW QUESTION
Back To Top
Search