开发者

Example of custom event dispatching in Android?

开发者 https://www.devze.com 2023-03-05 19:01 出处:网络
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 in

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

精彩评论

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