Quantcast
Channel: Telerik Forums RSS
Viewing all articles
Browse latest Browse all 99250

Detect Click/Tap in Empty Area

$
0
0

Sorry, I guess I should have put "RadListView" I assumed it was what everyone would be talking about in the UI of NS/ListView group.  ;-)

 

If you have:

<Page xmlns:lv="nativescript-telerik-ui/listview"  tap="stackClick">
<StackLayout id="mainPanel" tap="stackClick">

    <lv:RadListView id="lines" itemSwipe="true" class="rlv" tap="stackClick"
                    itemTap="groupClick"
                    itemSwipeProgressStarted="itemSwipeProgressStarted"
                    itemSwipeProgressEnded="itemSwipeProgressEnded">
    <lv:RadListView.listViewLayout>
      <lv:ListViewGridLayout scrollDirection="Vertical" spanCount="1"/>
    </lv:RadListView.listViewLayout>
    <lv:RadListView.itemTemplate>
<!-- Normal Layout -->
    </lv:RadListView.itemTemplate>
        <lv:RadListView.itemSwipeTemplate>
<!--- Swipe Layout -->
</lv:RadListView.itemSwipeTemplate>
    </lv:RadListView>
  </StackLayout>
  </Page>

 

I'm currently testing on Android...

The code for "stackClick" is a simple exports.stackClick = function() { console.log("I'm clicked");  }

So in this specific instance the Radlistview takes up the entire screen, tapping anywhere on the screen does NOT give me a "I'm clicked" output, even though it has been assigned at all three layers of the app; the RadListView seems to eat the tap even in its empty area.


Viewing all articles
Browse latest Browse all 99250

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>