{"action":"created","issue":{"url":"https://api.github.com/repos/NativeScript/NativeScript/issues/3193","repository_url":"https://api.github.com/repos/NativeScript/NativeScript","labels_url":"https://api.github.com/repos/NativeScript/NativeScript/issues/3193/labels{/name}","comments_url":"https://api.github.com/repos/NativeScript/NativeScript/issues/3193/comments","events_url":"https://api.github.com/repos/NativeScript/NativeScript/issues/3193/events","html_url":"https://github.com/NativeScript/NativeScript/issues/3193","id":192064680,"number":3193,"title":"ListView not updating on Android","user":{"login":"johnnyzen","id":203628,"avatar_url":"https://avatars.githubusercontent.com/u/203628?v=3","gravatar_id":"","url":"https://api.github.com/users/johnnyzen","html_url":"https://github.com/johnnyzen","followers_url":"https://api.github.com/users/johnnyzen/followers","following_url":"https://api.github.com/users/johnnyzen/following{/other_user}","gists_url":"https://api.github.com/users/johnnyzen/gists{/gist_id}","starred_url":"https://api.github.com/users/johnnyzen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/johnnyzen/subscriptions","organizations_url":"https://api.github.com/users/johnnyzen/orgs","repos_url":"https://api.github.com/users/johnnyzen/repos","events_url":"https://api.github.com/users/johnnyzen/events{/privacy}","received_events_url":"https://api.github.com/users/johnnyzen/received_events","type":"User","site_admin":false},"labels":[{"id":203690377,"url":"https://api.github.com/repos/NativeScript/NativeScript/labels/Android","name":"Android","color":"c7def8","default":false},{"id":203689647,"url":"https://api.github.com/repos/NativeScript/NativeScript/labels/T:Question","name":"T:Question","color":"fbca04","default":false}],"state":"open","locked":false,"assignee":{"login":"tsonevn","id":17448734,"avatar_url":"https://avatars.githubusercontent.com/u/17448734?v=3","gravatar_id":"","url":"https://api.github.com/users/tsonevn","html_url":"https://github.com/tsonevn","followers_url":"https://api.github.com/users/tsonevn/followers","following_url":"https://api.github.com/users/tsonevn/following{/other_user}","gists_url":"https://api.github.com/users/tsonevn/gists{/gist_id}","starred_url":"https://api.github.com/users/tsonevn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tsonevn/subscriptions","organizations_url":"https://api.github.com/users/tsonevn/orgs","repos_url":"https://api.github.com/users/tsonevn/repos","events_url":"https://api.github.com/users/tsonevn/events{/privacy}","received_events_url":"https://api.github.com/users/tsonevn/received_events","type":"User","site_admin":false},"assignees":[{"login":"tsonevn","id":17448734,"avatar_url":"https://avatars.githubusercontent.com/u/17448734?v=3","gravatar_id":"","url":"https://api.github.com/users/tsonevn","html_url":"https://github.com/tsonevn","followers_url":"https://api.github.com/users/tsonevn/followers","following_url":"https://api.github.com/users/tsonevn/following{/other_user}","gists_url":"https://api.github.com/users/tsonevn/gists{/gist_id}","starred_url":"https://api.github.com/users/tsonevn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tsonevn/subscriptions","organizations_url":"https://api.github.com/users/tsonevn/orgs","repos_url":"https://api.github.com/users/tsonevn/repos","events_url":"https://api.github.com/users/tsonevn/events{/privacy}","received_events_url":"https://api.github.com/users/tsonevn/received_events","type":"User","site_admin":false}],"milestone":null,"comments":5,"created_at":"2016-11-28T17:19:49Z","updated_at":"2016-11-30T09:37:24Z","closed_at":null,"body":"### Tell us about the problem\r\n\r\nThe listview on Android behaves oddly when updating elements on particular rows, using Angular and TS, `Observable` and `ObservableArray`\r\n\r\n### Which platform(s) does your issue occur on?\r\nAndroid Only\r\n\r\n### Please provide the following version numbers that your issue occurs with:\r\n{\r\n  \"description\": \"NativeScript Application\",\r\n  \"license\": \"SEE LICENSE IN <your-license-filename>\",\r\n  \"readme\": \"NativeScript Application\",\r\n  \"repository\": \"<fill-your-repository-here>\",\r\n  \"nativescript\": {\r\n    \"id\": \"org.nativescript.nativescriptexperimentts\",\r\n    \"tns-android\": {\r\n      \"version\": \"2.3.0\"\r\n    },\r\n    \"tns-ios\": {\r\n      \"version\": \"2.3.0\"\r\n    }\r\n  },\r\n  \"scripts\": {\r\n    \"build\": \"tns run android --device 1 --watch\",\r\n    \"livesync\": \"tns livesync android --device 1 --watch\"\r\n  },\r\n  \"dependencies\": {\r\n    \"@angular/common\": \"2.1.2\",\r\n    \"@angular/compiler\": \"2.1.2\",\r\n    \"@angular/core\": \"2.1.2\",\r\n    \"@angular/forms\": \"2.1.2\",\r\n    \"@angular/http\": \"2.1.2\",\r\n    \"@angular/platform-browser\": \"2.1.2\",\r\n    \"@angular/platform-browser-dynamic\": \"2.1.2\",\r\n    \"@angular/router\": \"3.1.2\",\r\n    \"nativescript-angular\": \"1.1.3\",\r\n    \"nativescript-theme-core\": \"^0.2.1\",\r\n    \"reflect-metadata\": \"~0.1.8\",\r\n    \"rxjs\": \"5.0.0-beta.12\",\r\n    \"tns-core-modules\": \"2.4.0\",\r\n    \"typed-event-emitter\": \"^1.0.3\",\r\n    \"typescript-collections\": \"^1.2.3\"\r\n  },\r\n  \"devDependencies\": {\r\n    \"babel-traverse\": \"6.19.0\",\r\n    \"babel-types\": \"6.19.0\",\r\n    \"babylon\": \"6.14.1\",\r\n    \"lazy\": \"1.0.11\",\r\n    \"nativescript-dev-android-snapshot\": \"^0.*.*\",\r\n    \"nativescript-dev-typescript\": \"^0.3.2\",\r\n    \"typescript\": \"^2.0.10\",\r\n    \"zone.js\": \"~0.6.21\"\r\n  }\r\n}\r\n\r\n### Please tell us how to recreate the issue in as much detail as possible.\r\n\r\n1) Clone repo https://github.com/johnnyzen/NativeScript-Issue\r\n2) Run the project on Android\r\n3) Click the Add button to add a row\r\n4) You should see a counter on the row just added increment by 1\r\n5) Add another row using the Add button. Again this newly added row should also have a counter incrementing by 1.\r\n6) Now keep pressing the \"Press Me\" on the first row until the counter reaches 0\r\n7) When the first row counter reaches zero, the rest of the list items stop updating\r\n\r\n**Expected Behaviour**\r\n\r\nThe rest of the items should continue to update as usual.\r\n*THIS WORKS FINE ON IOS*\r\n\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/NativeScript/NativeScript/issues/comments/263826837","html_url":"https://github.com/NativeScript/NativeScript/issues/3193#issuecomment-263826837","issue_url":"https://api.github.com/repos/NativeScript/NativeScript/issues/3193","id":263826837,"user":{"login":"tsonevn","id":17448734,"avatar_url":"https://avatars.githubusercontent.com/u/17448734?v=3","gravatar_id":"","url":"https://api.github.com/users/tsonevn","html_url":"https://github.com/tsonevn","followers_url":"https://api.github.com/users/tsonevn/followers","following_url":"https://api.github.com/users/tsonevn/following{/other_user}","gists_url":"https://api.github.com/users/tsonevn/gists{/gist_id}","starred_url":"https://api.github.com/users/tsonevn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tsonevn/subscriptions","organizations_url":"https://api.github.com/users/tsonevn/orgs","repos_url":"https://api.github.com/users/tsonevn/repos","events_url":"https://api.github.com/users/tsonevn/events{/privacy}","received_events_url":"https://api.github.com/users/tsonevn/received_events","type":"User","site_admin":false},"created_at":"2016-11-30T09:37:23Z","updated_at":"2016-11-30T09:37:23Z","body":"Hi @johnnyzen,\r\n\r\nIn the `iOS` you should add `GridLayout` as a main container of the `ListView`, which will allow the component to set the right height of the component. Setting this Layout should also resolve your problem with updating the value of  all `ListView` items. Could you verify, whether this will resolve your problem.\r\n\r\n_Sample_\r\n```\r\n<GridLayout>\r\n        <ListView [items]=\"items\">\r\n            <template let-item=\"item\">\r\n                <counter [model]=\"item\"></counter>\r\n            </template>\r\n        </ListView>\r\n    </GridLayout>\r\n```\r\nRegards,\r\n@tsonevn"}}
{"actor":{"display_login":"tsonevn"}}