I am developing an Dictionary App for Android. The dictionary is bilingual and organized in semantic domains (animals, plants, verbs...). The users can search the dictionary alphabetically (in both source and target languages) and semantically (through the semantic domains, and also both in the source and target languages).
For this reason, I created four fragments in the MainActivity class each one with a layout that has a tablayout (with either the letters in the tabs if the user is searching alphabetically, or the the semantic domain names in the tabs if the user is searching the dictionary semantically) and a viewpager (viewpager2) (in each page of the viewer the entries corresponding to the letter or the semantic domain of the selected tab). Please see the files attached [[login to view URL] and [login to view URL]] for example.
I am using several Sqlite tables to store the data of the dictionary and all the pages are generated dynamically (including the the TabLayout and ViewPager mentioned above).
Here comes the problem/issue: Although the data of the TabLayout is being retrieved/generated correctly, I am not being able to retrieve the data of each corresponding page of the ViewPager. I am catching only the data of last page, which is being displayed in all pages of the ViewPager [the data of the letter "z" in the alphabetic view]. One task of this job is to fix this piece of code and make the pages retrieve correctly the data, according to their corresponding tab. This bug is found in the following fragments of the project:
1- AlphabeticSourceFragment [in the alphabetic_source folder in the ui folder];
2- AlphabeticTargetFragment [in the alphabetic_target folder in the ui folder];
3- SemanticSourceFragment [in the semantic_source folder in the ui folder];
4- SemanticTargetFragment [in the semantic_target folder in the ui folder];
Additionally, I developed an alternative view for the alphabetic views. In this view (fragment) I don't use viewpager nor tablayout but only recyclerviews to generate both the entries and a scrollbar with the letters. Please check the attached file [[login to view URL]]. In this alternative fragment all the entries of the dictionary are retrieved in the recyclerview1 and the view would scroll to the first word of the letter selected/pressed by the user in the scrollbar (reyclerview2). I already have the position of each first word of each letter (this position is being "message toasted" in the app when each letter is pressed). Despite having the position of the word in the list, I am not being able to scrollToPosition() the other recyclerview (recyclerview2). The second task of this job is to implement the scrollToPosition() (o any other equivalent function) in this view. This alternative view for the alphabetic view is found in the following fragments of the project:
5- SourceLangFragment [in the source_lang folder in the ui folder];
6- TargetLangFragment [in the target_lang folder in the ui folder];
The [login to view URL] is attached. The zip file with the whole project (less media) is 30MB, so I was not able to upload it here, but it can be found in the following link:
[login to view URL]
4 freelancer chào giá trung bình$166 cho công việc này
I can achieve the results that you are asking for.I am having 5 years experience in it.I read through the job details extremely carefully and I am absolutely sure that I can do the project very well.”