Guest User

Untitled

a guest
Aug 21st, 2018
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.88 KB | None | 0 0
  1. Test Environment:
  2.  
  3. Appcelerator Command-Line Interface, version 7.0.5
  4. Operating System
  5. Name = Mac OS X
  6. Version = 10.13.6
  7. Architecture = 64bit
  8. # CPUs = 4
  9. Memory = 8589934592
  10. Node.js
  11. Node.js Version = 8.9.1
  12. npm Version = 5.5.1
  13. Titanium CLI
  14. CLI Version = 5.1.1
  15. Titanium SDK
  16. SDK Version = 7.3.0.GA
  17.  
  18. Device: Android 8(Huawei y9 2018) device
  19.  
  20. Test Code:
  21.  
  22.  
  23. // This is a test harness for your module
  24. // You should do something interesting in this harness
  25.  
  26.  
  27. var tbl_data = [];
  28. for (var i = 0; i < 10; i++) {
  29. var row = Ti.UI.createTableViewRow();
  30. var label = Ti.UI.createLabel({
  31. left: 10,
  32. text: 'Row ' + (i+1)
  33. });
  34. var image = Ti.UI.createImageView({
  35. image: 'KS_nav_ui.png'
  36. });
  37.  
  38. row.add(label);
  39. row.add(image);
  40.  
  41. tbl_data.push(row);
  42. }
  43.  
  44. // now assign that array to the table's data property to add those objects as rows
  45. var table = Titanium.UI.createTableView({
  46. data:tbl_data
  47. });
  48.  
  49.  
  50. table.addEventListener('click', function(e){
  51. alert('You clicked row '+e.index);
  52. Ti.API.info('You clicked row '+e.index);
  53. });
  54.  
  55. var win = Ti.UI.createWindow();
  56. win.add(table);
  57. win.open();
  58.  
  59. Test Output:
  60.  
  61. [INFO] : hwaps: JNI_OnLoad
  62. [WARN] : Settings: mValues not put! needsGenerationTracker: true currentGeneration: -1 name: enable_navbar value: null
  63. [INFO] : You clicked row 7
  64. [INFO] : PressGestureDetector: HiTouch restricted: AboardArea.
  65. [WARN] : TiVerify: (Timer-0) [4105,4997] Verifying module licenses...
  66. [WARN] : TiVerify: (Timer-0) [77,5074] Error Verifying License
  67. [WARN] : libEGL: EGLNativeWindowType 0x75236e6010 disconnect failed
  68. [INFO] : You clicked row 4
  69. [INFO] : PressGestureDetector: HiTouch restricted: AboardArea.
  70. [INFO] : APSAnalyticsRunnable: Analytics Started
  71. [INFO] : APSAnalyticsRunnable: Stopping Service
Add Comment
Please, Sign In to add comment