Recyclerview on scroll listener kotlin Jul 27, 2018 · In API url take a parameter count, whenever getPagination() method is called you can send increased value in count parameter. I modified the same implementation for scroll up. Adapter. i m usimg this code for endless recycler view which is get the data from server when scroll the recycler view item. So my question is can someone provide the sample implementation of it. setOnClickListener(this) itemView. recyclerView. HORIZONTAL, false) recycler_upcoming. xml; list_item. Jul 28, 2014 · For those who are looking for an answer in Kotlin: fun getVisibleItem(recyclerView : RecyclerView) { recyclerView. onScrolled(recyclerView, dx, dy); // Prevents Swipe to Refresh if only scrolling up. kt class MainActivity : AppCompatActivity() { private Oct 24, 2014 · The developer wants its listener to be triggered even before the recyclerview stops to scroll. It will be a very long post, so brace yourself. Only Ian's answer was able to make my RecyclerView scroll to a specified position. May 29, 2015 · RecyclerView has the method called addOnScrollListener(OnScrollListener listener), and using just this you can stop it from scrolling, just so: recyclerView. The RecyclerView populates the data correctly and allows me to scrol Jun 1, 2017 · Best for achieve click listener in Kotlin(Mean Without findview by id you can click or intalize the textview, button, spinner etc) Step: - Go to your Build/gradle; Add this line : - id 'kotlin-android-extensions' Then Sync the project. It should toast only when user scroll up to the bottom of the Recyclerview. This layout listener is usually used to do something after a View is measured, so you typically would need to wait until width and height are greater than 0. I want to be able to change the value in the EditTexts and have that update my dataset. But assuming your recyclerview is having that much space of 1 item, it won't require scrolling technically. although i want to store the state for scroll view so after having the update in recyclerview i can set it to the stored again and i dont go to the top of my list after every checkbox click Oct 25, 2015 · The RecyclerView. Instead of the generic ViewTreeObserver. In the place where you populate the view just check if you are populating the last element on the list. setLayoutManager(new WrappingLinearLayoutManager(getContext())); But you also should call those two methods: recyclerView. addOnScrollListener(object: RecyclerView Nov 24, 2015 · Well, it is an interesting question because the listener with the endless name is a nice feature. This is the recyclerView code Oct 22, 2018 · I have to scroll to position X after register a click Listener inside of RecyclerView. I had to implement onScroll Listener to recyclerview to load data from server and to make some UI changes. This is already implemented and working elsewhere but when I put the recyclerView inside the NestedScrollView the OnScrollListener events doesn't fire. Adapter class!! class MyAdapter(context: Context, mRV: RecyclerView, mLayoutm: LinearLayoutManager) { RecyclerViewの高さは動的に設定する必要がある. The part where I am stuck is when I start typing in any of the row's EditText box, it automatically updates another row fu May 10, 2021 · This code is used on pages with lists. setOnLongClickListener(this) } private lateinit var article: Article private val titleTextView: TextView = itemView. kt; MyCustomAdapter. NestedScrollView v (parent with scroll) int scrollY; int oldScrollY; To detect whether the offset is at the bottom, it is necessary to obtain the value of content height v. Aug 7, 2024 · In this article, we are going to create a collapsing Toolbar and Floating action button (FAB) on scroll with RecyclerView. For example, user may call scrollToPosition(100). Suddenly, your scrolling isn’t as silky smooth as you’d like You can create a callback in your adapter which will send a message to your activity/fragment every time when the last item is visible. setOnFlingListener(null); final SnapHelper snapHelper Oct 10, 2017 · The documentation for onScrollStateChanged(int state) explain:. The infinite scrolling in which the next set of rows are fetched from the DB/Server while showing a loading icon is commonly seen in many applications such as Facebook, Twitter. This fragment holds a list of items inside a RecyclerView. I want to add scroll listener for second vertical Recyclerview but unable to add, because all scroll is handled by the main parent Recyclerview. RecyclerView in Android is a versatile and powerful component, hence it’s essential for displaying lists of data, offering better performance and flexibility compared to its predecessor, ListView. It implemented only once and doesn't work when i scroll. Jun 24, 2015 · Activity Class with recylcerview in xml layout file . The root view of the layout is CoordinatorLayout. – Jan 22, 2020 · #今回やること 今更だけど kotlin でRecyclerViewを実装する。(自分用の備忘録としてほしかった) クリックイベント処理の記事が少なかったのでタップしたらトーストを表示するのものを作ってみる。 Sep 20, 2015 · The scrolling listener will probably not help, as it occurs "all the time", and I just need to check only when the RecyclerView has changed its size or when the items count (or data) has changed. getChildAt(0); int top = (v == null) ? 0 : (v. Name that file as ItemsViewModel and then click on OK. You supply the data and define how each item looks, and the RecyclerView library dynamically creates the elements when they're needed. The list of items is always the same size and the views for the items are also of the same May 30, 2019 · What I am trying to achieve is a load more on RecyclerView when I scroll up. SCROLL_STATE_IDLE: No scrolling is done. ViewHolder(itemView), View. private fun setupListenerPostListScroll() { val scrollDirectionDown = 1 // Scroll down is +1, up is -1. Oct 13, 2020 · I have to scroll to a specific item in a recyclerview. onScrollStateChanged(recyclerView, newState); } @Override public void onScrolled(RecyclerView recyclerView, int dx, int Jul 23, 2021 · Think of it this way. item_article_title_textView) fun bind Aug 17, 2018 · Summary: activity_main. layoutManager. I have created a generic implementation Sep 11, 2021 · Thank you for your response, i did find a solution by adding to my recycler view in xml addOnScrolledToBottomListener="@{viewModel}" and then in the bindingAdapter Mar 18, 2021 · I load the RecyclerView and the ScrollListener inside a function This is the code for setting the ScrollListener inside of it (I removed everything non necessary for the question): recyclerView Nov 13, 2017 · this is my fragment code. layoutManager = LinearLayoutManager(sContext, LinearLayoutManager. smoothScrollToPosition(adapter. FloatingActionButton android:layout_width="wrap May 22, 2015 · If you use Kotlin, then there is a more compact solution. May 5, 2017 · Use greater than sign instead of less than. Sep 28, 2024 · In this blog post, we will explore how to implement endless scrolling in Android RecyclerView using Kotlin. It is not the RecyclerView nor the Adapter responsibility but the RecyclerView's LayoutManager. Im using the FloatingActionButton from the android. I have to load data on once the vertical recyclerviews last item is visible, but i'm unable to get the scroll event for my vertical view. setOnCheckedChangeListener will be fired by adapter. You can use this Kotlin function for best practice of bottom scroll following to create infinite or endless scrolling. Now, let’s get serious. OnLongClickListener { init { itemView. Nov 15, 2015 · Currently the only working way I've found to solve this problem is to extend ItemAnimator and pass it to RecyclerView like this:. This article focuses on our own implementation. getChildAt(0). setOnClickListener to interact with user inputs. When an item scrolls off the screen, RecyclerView doesn't destroy its view. But finally found a workaround. Firstly I need to fetch the position of the item by matching with a string which I pass from the activity to the adapter. LinkedIn. xml; Person. isLastPage will return true if there are no items to load. and my adapter is not list adapter it is a custom adapter as it extends recyclerview adapter, not that it changes functionality. onScrollStateChanged(recyclerView Nov 28, 2022 · Using our own implementation of RecyclerView scroll listener. I have the implementation for scroll down and it works fine. Jul 4, 2016 · This question may be old, but to help others who stumbled upon this problem, i would like to share what i did. But there are people who on the one hand might be able to help you and who on the other hand do not have a working sample in their pockets. When the user reaches the end of the list, we can load the next set of data and append it to the existing data. Here is my scrollviewlistener. Jan 11, 2018 · On RecyclerView addOnScrollListener the property SCROLL_STATE_IDLE takes time to get called at end of the item size and when scrolled up to the top of the RecyclerView. // Scroll listener. me/lirstechtipsGroup : https://www. May 29, 2020 · I have my RecyclerView populate properly, but despite following the recommendations on this SO post (except in Kotlin) and following the documentation, though I am still having trouble getting the implementation to work. Simple scroll listener This article focuses on our own implementation. Step 1 − Create a new project in Android Studio, go to File ⇒ New Project and fill all required details to create a new project. application' id 'kotlin-android' id 'kotlin-android-extensions' } recyclerview on scroll listener kotlin. There are many ways to implement logic inside the scroll listener of RecyclerView. removeOnScrollListener(OnScrollListener) means you can remove one of the listeners that attached to a specific RecyclerView. Jun 23, 2015 · recyclerView. The reason was the listener was not removed. Because on scrolling RecyclerView, checkBox. I seem to be accomplishing I am new to RecyclerView and I want to implement the fast scroll feature in RecyclerView like google contact application and search on the internet and i found that now Android provide officially New fastScrollEnabled boolean flag for RecyclerView. Toast is not displaying when I scroll recyclerview to the bottom. My XML layout : <android. This file will hold the information of every item which you want to show in your RecyclerView. If anyone needs this for restoring the scroll position of a RecyclerView, this is how to save the scroll positions (the two arguments for the method scrollToPositionWithOffset): int index = linearLayoutManager. widget package: <android. Nov 20, 2017 · So I have Recyclerview inside Recyclerview. First, by pressing the Activity's title, and second, by pressing a button when it appears while you scroll down. We will create a simple app that fetches data from an API and loads it into the Dec 19, 2023 · In this blog post, we will explore how to implement endless scrolling in Android RecyclerView using Kotlin. android. So, bottom line is, if your recyclerview has image to load from network make Here I will explain how to do it without an external library. findFirstVisibleItemPosition(); View v = linearLayoutManager. layout_height="match_parent"で指定すると、 全レコードを表示する高さのRecyclerViewが出来てしまい、 結果セルの使い回しができなくなる。 onCreateなどでRecyclerViewのリサイズを行う。 (以下の青枠領域の高さをコードで Jun 8, 2015 · I have a ViewPager showing a fragment per page. Oct 6, 2015 · Recyclerview comes with its own scroll listener which has the following methods : void onScrollStateChanged(RecyclerView recyclerView, int newState) Callback method to be invoked when RecyclerView's scroll state changes. getViewTreeObserver(). setOnCheckedChangeListener in RecyclerView. getScrollY(); //for verticalScrollView //DO SOMETHING WITH Sep 26, 2018 · The first line in the image (with scrollToPosition) is scrolling the RecyclerView to make the position (in this case 50) visible - this often means that the selected position shows up at the bottom of the visible RecyclerView (where position 50 first becomes visible after 'scrolling'). I am using a RecyclerView, how could I use and bind it with RecyclerView. setOnClickListener{ // Create a new TextView instance May 6, 2015 · inner class ViewHolder(itemView: View) : RecyclerView. We will create a simple app that fetches data from an API and loads it into the You can change the listener to: fun RecyclerView. Here's an example of implementing endless scrolling in RecyclerView: Jan 9, 2025 · RecyclerView makes it easy to efficiently display large sets of data. findViewById(R. SCROLL_STATE_DRAGGING: The user is dragging his finger on the screen (or it is being done programatically. xml. But, Toast displayed suddenly when items in the recyclerview binds first time. facebook. Drab Dugong answered on October 4, 2022 Popularity 7/10 Helpfulness 6/10 Contents ; answer recyclerview on scroll Jul 1, 2016 · You cannot set a onScrollChangedListener to a ScrollView directly below API23. OnScrollChangedListener() I would recommend to add instead the RecyclerView. id. design. No keys are pressed during scrolling i guess. Using SparseBooleanArray Using your model to save the state; I went for option 1. 'Text' is changing, So i tried key listener and it worked fine. It includes three Text Views for displaying the Name and Emails of the Employees inside a CardView. /** Smoothly scroll to specified position allowing for interval specification. Extend by device; Build apps that give your users seamless experiences from phones to tablets, watches, headsets, and more. And call: recyclerView. Jan 22, 2018 · I use this method for adding endless scroll functionality to a recyclerview in Kotlin: scrollListener = object : RecyclerView. It's not safe. If you are using a RecyclerView you must have used a custom adapter too. kt; Understanding RecyclerView and Its Advantages. May 3, 2016 · mRecyclerView. onScrollStateChanged(recyclerView, newState) val totalItemCount = recyclerView!!. canScrollVertically(1)) { onScrollNearEnd(Unit) } } }) May 16, 2023 · To implement endless scrolling, we need to add a scroll listener to the RecyclerView and listen for scroll events. So your code will be : mRvNearby. recyclerView. Here we have to create a layout for our RecyclerView to display our items. itemCount-1) If you want to add continuous scrolling for the recyclerview, you can use this class. com/Lirs-Tech-Tips-111449010 Sep 10, 2018 · as the layout file and this as my kotlin file: // Set a click listener for button widget button. When you scroll down the value is greater than 0. Sep 4, 2015 · I was frustrated with this for a long time. Only thing that worked was onTouchListener, but after implementing that the scrolling is not working. smoothScrollToPosition() worked but the initial animation made it too slow when the list was long. OnClickListener, View. Adapter<*> private lateinit var viewManager: RecyclerView. Is there a way?? recyclerView. beside that adding property ( setNestedScrollingEnabled(false); ) to the recyclerview and ( setHasStableIds) to the adapter does help to make recyclerview work smoothly. setHasFixedSize(false); Here setNestedScrollingEnabled(false) disable scrolling for RecyclerView, so it doesn't intercept scrolling event from NestedScrollView. OnScrollListener and use the onScrollStateChanged(RecyclerView recyclerView, int newState) callback which gives you the newState Jan 28, 2020 · In this tutorial, I'm going to show you how to implement Scroll To Top in your RecyclerView in two ways. State. Oct 6, 2018 · I used it before on RecyclerView that has linear LayoutManger and every thing was great. RecyclerView estimates this value for scrollbars, you can use the same methods from View class. Go to app > java > package name > right-click > New > Kotlin class/file and choose Data class from the list. For example, you can implement this idea in onBindViewHolder method Jul 11, 2020 · I have a RecyclerView that contains a list of views with EditText fields in them. But it works fine in middle of the scrolling. Use NestedScrollView instead of ScrollView. Navigate to app > res > layout then Create a new layout resource file and name it items_row. Since this code is redundant on all pages, I would like to use it bundled up in a function. Add Answer . But in both methods, we will use scroll Listener with RecyclerView to listen to scroll events. Kotlin Jan 7, 2015 · I have a question about Android's RecyclerView. onCreate Feb 22, 2015 · The top answer by @DawnYu works, but the recyclerview will first scroll to the top, then go back to the intended scroll position causing a "flicker like" reaction which isn't pleasant. Model - Songs. If the arg was set null, it equals to clearOnScrollListeners() method. Jan 14, 2016 · To obtain middle item on your screen from RecyclerView you can attach OnScrollListener to RecyclerView and inside listener you should get position of current items then you should check if area of given item is on middle of screen. . Dec 16, 2019 · If you want more precise results that the item should be exactly at the middle of the screen, you can use the heights of the item (since its fixed) and the height of the RecyclerView, then calculate the offset to scroll. NestedScrollView is just like ScrollView, but it supports acting as both a nested scrolling parent and child on both new and old versions of Android. Then it would need scrolling inside that part. scrollToPosition(10), the RecyclerView will scroll item 10 to bottom. com/groups/808719699605259Fan Page: https://www. ; binding. you may however use this. addOnScrollListener(object : Recycle Extend by device; Build apps that give your users seamless experiences from phones to tablets, watches, headsets, and more. For example: Here, I am trying to check that Recyclerview reached to bottom or not. Aug 6, 2015 · For me the above solutions didnt work. Oct 18, 2021 · Hello there I have a recyclerview with images loaded from firebase I want to implement endless scroll but the issue I'm getting is with StaggeredGridLayoutManager and Jun 12, 2024 · Step 5: Creating a layout for RecyclerView. in this code recyclerView. OnScrollListener() { override fun onScrolled(recyclerView: RecyclerView, dx: Int, dy: Int) { if (!YOUR_RECYCLER_VIEW. I tried to add scroller listener inside the adapter, it is working properly for horizontal Recycler view but not for vertical. Sep 10, 2021 · Link donate : http://paypal. For some of them, the listener was not calling and when the listener was called in the onBindViewHolder method, it seems even when scrolling the listener events are called. addOnScrollChangedListener(new OnScrollChangedListener() { @Override public void onScrollChanged() { int scrollX = rootScrollView. adapter = InboxUpcomingAdapter(this@InboxMessageFragment, arrayList, sContext) -> sContext mean Ur Context -> If you pass false then scroll right to left Aug 22, 2021 · yes i know that the adapter is recreating the items again. Note that we are going to implement this project using the Kotlin For Horizontal Scroolview in RecyclerView in Kotlin: - We use this Code recycler_upcoming. scrollToPosition() is extremely strange. State? My purpose is to save the RecyclerView's scroll position. But when I used it with RecyclerView that has GridLayoutManager, things got weird. but the code is not working. Mar 7, 2018 · I have a recyclerview with horizontal layout and only one view is visible at a time: mRecyclerView = findViewById(R. setItemAnimator(new DefaultItemAnimator() { @Override public void onAnimationFinished(RecyclerView. It works when my RecyclerView has a lot of items. getScrollX(); //for horizontalScrollView int scrollY = rootScrollView. A is in ViewPager's fragment, the viewpager is under CoordinatorLayo I use RecyclerView adapter to display data inside an activity, I want to implement onClickListener inside the activity, currently, I am setting onClickListener inside adapter as usual which works f Sep 7, 2015 · I recommend that not to use checkBox. kt May 24, 2021 · I have a recyclerview where each view contains a TextView and an EditText. OnScrollListener; in particular, we will use the Mar 5, 2024 · Yep, RecyclerView is a champ at smooth scrolling, but toss it into a ScrollView or NestedScrollView and things get a bit wonky. Sep 21, 2015 · <ScrollView> <Horizontal RecyclerView/> <Horizontal RecyclerView/> <Vertical RecyclerView/> </ScrollView> Above is the schematic of my view. OnScrollListener() { @Override public void onScrolled(RecyclerView recyclerView, int dx, int dy) { super. (This is not bad de Jan 2, 2025 · Step 6: Create a new Kotlin class . widget. itemCount. I have tried many ways like onclick and did not work. The OnScrollListener: how does it work. scrollView. scrollBy(dx, dy) Or: recyclerView. data class Songs( val songId: Int? = null, ) Adapter - SelectSongAdapter. Oct 23, 2015 · from my experience with recyclerview what i found the possible cause could be is the image size. addOnScrollListener(new RecyclerView. I've tried using recyclerView. Apr 3, 2015 · class MainActivity : AppCompatActivity() { private lateinit var recyclerView: RecyclerView private lateinit var viewAdapter: RecyclerView. public class WallpaperActivity extends AppCompatActivity implements OnTaskCompleted { private static final String TAG = "WallpaperActivity"; private Toolbar toolbar; private RecyclerView mRecyclerView; private WallPaperDataAdapter mAdapter; private LinearLayoutManager mLayoutManager; // to keep track which pages loaded and next pages to Jul 20, 2018 · Try using this scroll listener with your recyclerview. getTop Nov 28, 2022 · Simple scroll listener. Oct 19, 2015 · I want to hide/show FloatingActionButton on scroll of RecyclerView. To calculate real scrollY, it will have to layout all of the items between 0 and 100. kt; MainActivity. I could wrap the RecyclerView with a layout that notifies me of size changes, like this one that I've made, but I don't think it will work as the Here's a derived HorizontalScrollView I wrote to handle notifications about scrolling and scroll ending. Dec 16, 2014 · RecyclerView does not support getScrollX/Y because it cannot guarantee correct result. Jul 26, 2020 · Base10Adapter. If you have the height of recyclerView, smaller than that 1 element's height. It properly handles when a user has stopped actively scrolling and when it fully decelerates after a user lets go: Aug 25, 2015 · how to pass scoll event to parent recyclerview from child recyclerview ? B recyclerview is child of A recyclerview's itemview. paetz whose post inspired me to set off to a journey of implementing my own sticky headers using ItemDecorations. CoordinatorLayout android:layout_width="match_parent" Stack Overflow for Teams Where developers & technologists share private knowledge with coworkers; Advertising & Talent Reach devs & technologists worldwide about your product, service or employer brand Nov 9, 2023 · I am working in Android Studio on a Kotlin project. ViewHolder viewHolder) { updateEmptyView(); } }); Mar 30, 2020 · In this post, I am going to talk about two methods, that implement pagination in RecyclerView. Nov 5, 2020 · How to implement an endless list with RecyclerView in Android using Kotlin - This example demonstrates how to implement an endless list with RecyclerView in Android using Kotlin. <br> * Note crude deceleration towards end of scroll * @param rv Your RecyclerView * @param toPos Position to scroll to * @param duration Approximate desired duration of scroll (ms) * @throws IllegalArgumentException */ private static void smoothScroll(RecyclerView Oct 6, 2016 · I have an EndlessRecyclerView at the end of a NestedScrollView. What might be the issue ? Please guide. OnScrollListener() { override fun onScrollStateChanged(recyclerView: RecyclerView?, newState: Int) { super. setNestedScrollingEnabled(false); recyclerView. First of all, let me acknowledge @tim. However, if my RecyclerView only has 1 or 2 items, the onScroll method for the RecyclerView never gets called. In load more items place your logic to load more items. smoothScrollBy(dx, dy) Apr 12, 2015 · The number you can count using the scroll listener is not reliable because if data changes, RecyclerView will do a fresh layout calculation and will not try to re-calculate a real offset (you'll receive an onScroll(0, 0) if views moved). This is Gradle File plugins { id 'com. if now item 10 is under the current RecyclerView, call rv. LayoutManager private var locationArrayList = arrayListOf<Location>() override fun onCreate(savedInstanceState: Bundle?) { super. Last visible item position return totalItemCount-1. Our solution involves the use of RecyclerView. rvmain); mRecyclerView. Oct 25, 2015 · With creation of NestedScrollView you can put scrolling view inside another scrolling view as long as those implement NestedScrollingChild and NestedScrollingParent correctly. To refresh the recyclerView, especially after coming from another activity, without flickering, and maintaining the scroll position, you need to do the following. Aug 3, 2022 · In this tutorial, we’ll be discussing and implementing Endless Scrolling or Infinite Scroll on RecyclerView in our Android Application. When RecyclerView scrolls, onScrolled() method gets called. Jan 6, 2020 · all seems ok are you sure that you are setting the scroll listener to the right recyclerView? if yes so if your recycler view contains item when you are scrolling it should notify the onScrolled method try the latest version of recyclerview i see some problem in your onScrolled method you are trying to log currentItem or totalItemCount variable but you haven't define them try with the debugger Jul 3, 2017 · Don't use RecyclerView inside ScrollView. Sample from here. onScrollToEnd( onScrollNearEnd: (Unit) -> Unit ) = addOnScrollListener(object : RecyclerView. Jul 5, 2017 · If you want to directly scroll in the last item you can just use this code. Step 2 − Add the following code to res/layout/activity_main. How to make it work? I have a recyclerView which is scrollable horizontally, When the recyclerView is touched at anywhere a dropdown should happen. then to focus to that item position. for example, supposed a RecyclerView named "rv". Easy peasy here. getMeasuredHeight() and compare the current scroll over the height of the parent, if you have the same value , it means that it has reached the Mar 19, 2015 · I'm trying to make a carousel-like view here using RecyclerView, I want the item to snap in the middle of the screen when scrolling, one item at a time. Below is the sample video to show what we are going to build. Apr 30, 2015 · addOnScrollListener(OnScrollListener) means you can add more than one listener to a RecyclerView. kt. I have defined my own Adapter and implemented a RecyclerView in my Activity. EndlessRecyclerView means: when user scrolls to the bottom of the recyclerView it loads more data. support. Jul 7, 2016 · You are trying to get the info on the wrong object. void onScrolled(RecyclerView recyclerView, int dx, int dy) Callback method to be invoked when the RecyclerView has been scrolled. Whereas I want to always show it at the top. OnScrollListener() { @Override public void onScrollStateChanged(RecyclerView recyclerView, int newState) { super. As the name implies, RecyclerView recycles those individual elements. According to that count parameter on server side you can add logic to get next items. May 20, 2021 · So, as I know there are 2 ways of saving state of checked box while scrolling in recyclerview. Many popular apps have this effect eg. Mar 22, 2016 · Set setOnScrollChangeListener in a NestedScrollView params to get. Thanks. So it might finish to load new data items (if datas are stored localy), or even add a progress-bar view-holder at the end of the recyclerview, so when the recyclerview will stop to scroll, it can be on a circle progress-bar as last visible item. Mar 21, 2016 · Kotlin Answer. However, The RecyclerView was not able to scroll afterwards when I used scrollToPosition(). Instead, use checkBox. I have created a generic implementation of scroll listener which you can simply copy-paste into your code: Jan 7, 2022 · Recently i learn how user github api but something i curious about , how can i make endless scrolling in recycler view here my mainActivity. oxalgh qmmn lig crj gkjvm hmf bysjhp gcqqju oodyx hkib