SearchFilter Porting

I thought the library was pretty cool and could be reused in other projects, like whenever I get back to developing MAV. The transition wasn’t too bad it was like reverse mapping, replacing keywords in Kotlin and understanding the syntax.

For example:

Kotlin: class ExpandedFilterView : ViewGroup {

private var mPrevItem: View? = null
private var mPrevX: Int? = null
private var mPrevY: Int? = null
private var mPrevHeight = 0

Java: public class ExpandedFilterView extends ViewGroup {

private View mPrevItem = null;
private int mPrevX = 0;
private int mPrevY = 0;
private int mPrevHeight = 0;

Leave a Reply

Your email address will not be published. Required fields are marked *