Search in sources :

Example 16 with ArrayMap

use of android.support.v4.util.ArrayMap in project Tangram-Android by alibaba.

the class LinearScrollView method onMotionEvent.

@Override
public void onMotionEvent(View view, MotionEvent event) {
    if (event.getAction() == MotionEvent.ACTION_UP) {
        if (lSCell != null && lSCell.serviceManager != null) {
            BusSupport busSupport = lSCell.serviceManager.getService(BusSupport.class);
            ArrayMap<String, String> params = new ArrayMap<String, String>();
            params.put("spmcOffset", String.valueOf(lSCell.cells.size()));
            busSupport.post(BusSupport.obtainEvent("onMotionEvent", null, params, null));
        }
    }
}
Also used : BusSupport(com.tmall.wireless.tangram.eventbus.BusSupport) ArrayMap(android.support.v4.util.ArrayMap)

Example 17 with ArrayMap

use of android.support.v4.util.ArrayMap in project Tangram-Android by alibaba.

the class LinearScrollView method onOverScroll.

@Override
public void onOverScroll(View view, float offset) {
    if (lSCell != null && lSCell.serviceManager != null) {
        BusSupport busSupport = lSCell.serviceManager.getService(BusSupport.class);
        ArrayMap<String, String> params = new ArrayMap<String, String>();
        params.put("offset", String.valueOf(offset));
        busSupport.post(BusSupport.obtainEvent("onOverScroll", null, params, null));
    }
}
Also used : BusSupport(com.tmall.wireless.tangram.eventbus.BusSupport) ArrayMap(android.support.v4.util.ArrayMap)

Aggregations

ArrayMap (android.support.v4.util.ArrayMap)16 JSONArray (org.json.JSONArray)3 JSONObject (org.json.JSONObject)3 Cursor (android.database.Cursor)2 View (android.view.View)2 TextView (android.widget.TextView)2 BusSupport (com.tmall.wireless.tangram.eventbus.BusSupport)2 FeedMedia (de.danoeh.antennapod.core.feed.FeedMedia)2 ArrayList (java.util.ArrayList)2 Animator (android.animation.Animator)1 SuppressLint (android.annotation.SuppressLint)1 Context (android.content.Context)1 PackageInfo (android.content.pm.PackageInfo)1 PackageManager (android.content.pm.PackageManager)1 Drawable (android.graphics.drawable.Drawable)1 LongSparseArray (android.support.v4.util.LongSparseArray)1 SimpleArrayMap (android.support.v4.util.SimpleArrayMap)1 SpannableStringBuilder (android.text.SpannableStringBuilder)1 Spanned (android.text.Spanned)1 ClickableSpan (android.text.style.ClickableSpan)1