Sort Steemit search results on Mixion

Words
249
Reading
2 min
Listen
Play
8y

What is Mixion?

A Native Android app that directly connects to the steem blockchain. Majority of functionality on Steemit.com can be found in Mixion.

This is a relatively small update. The primary purpose is to showcase the completion of a task request

New Features

  • Sort Search Results

Steemit search results can now be ordered and filtered either by number of votes, number of replies or their upload date. This gives you more control over your search.

Untitled.png

  • How did you implement it/them?

as per this task request

  1. Change the layout to accommodate a loading indicator and a Floating Action Button. The parent layout will have to be changed, probably to a RelativeLayout

  2. Write the code in Kotlin for the functionality of the loading indicator and the FAB. Mixion is written following the MVP design pattern so all the changes should be in the search package

  3. Inflate a dialog to select the sort by method, and fetch the data. For this you will need to work in the data source directory. I believe that this getUserMentions() functions should work just fine, you may need to refer to the AskSteem Docs to make sure. You will need to integrate this function in the AskSteemRepository and also AskSteemApi then from within the SearchPresenter simply call something like repository.sortBy() and update the Adapter accordingly with the newly loaded data.

Get it from Google Play

Mixion on Google Play

Code changes

Apr. 4 - Apr. 7

Verification

image



Posted on Utopian.io - Rewarding Open Source Contributors

Sort Steemit search results on Mixion | Ecency