开发者

Example of custom event dispatching in Android?

I have a scenario below, and was wondering if anyone had a good solution. Basically, I have a class which manages a cust开发者_JS百科om ViewFlipper object. One of these views within the ViewFlipper instance consists of a custom ScrollView with custom rows (which reside in mRows an ArrayList of the rows). In the custom ScrollView class I have the loop...

    for (CustomRow : mRows)
    { 
        row.setOnTouchListener(this);
    }

In the onTouch listener I want to be able to notify the top level view (the object that holds the reference to the ViewFlipper instance). What is the most efficient way to do this?

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜