开发者

implement scrollView events in Android

开发者 https://www.devze.com 2023-04-09 10:36 出处:网络
[RE-EDIT] I am trying to implement these events in the scrollView: OnSingleTap OnDoubleTap PaningStart OnPanning

[RE-EDIT]

I am trying to implement these events in the scrollView:

  • OnSingleTap
  • OnDoubleTap
  • PaningStart
  • OnPanning
  • PanningEnd
  • PinchingStart
  • OnPinching
  • PinchingEnd
  • RotatingStart
  • OnRotating
  • RotatingEnd
  • OnLongPress

The application is a collection of UI parts that function as one UI part. I have categorized them under a relative layout which I've placed in the scrollView.

I am completely new at this and I would appreciate any help offered. Thanks.

[RE-EDIT]

code sample:

public class Mobclassname extends ScrollView {
    private Object[] children;
    private ArrayList<Object> uiParts = null;
    private Context context;


    public MobGadgetFile(Context context, NSDictionary dict) {
        super(context);
        this.context = context;
        setProperties(dict);

        uiParts = ObjectMgr.createUIParts(context, children);
        RelativeLayout rl = new RelativeLayout(context);

        MobUtils.addUIparts(uiParts, rl);


        HorizontalScrollView hscroll = new HorizontalScrollVi开发者_JS百科ew(context);
        hscroll.addView(rl);
        this.addView(hscroll);

    }

I am doing everything in code therefore I don't have any xml layout file. This is my specification.

Thanks.

0

精彩评论

暂无评论...
验证码 换一张
取 消