Jump to content

[TOPIC: topicViewTemplate]
[GLOBAL: userSmallPhoto]
Photo

[RESOLVED] images do not scroll with the list
Started by iqra88 Feb 02 2013 09:39 PM

5 replies to this topic
[TOPIC CONTROLS]
This topic has been archived. This means that you cannot reply to this topic.
[/TOPIC CONTROLS]
[modOptionsDropdown]
[/modOptionsDropdown]
[reputationFilter]
[TOPIC: post.html]
#1

iqra88

[GLOBAL: userInfoPane.html]
iqra88
  • Observer

  • 4 posts
  • Corona SDK

i am creating a list and while creating i add images to the list. if i set the visibility of the images false initially.. how can i set the image visibilty true when the list row is clicked.

Otherwise if i dont add images while making the list then images dont scroll with the list.
i'm stuck people. help me. i can post code. if its required.
uid: 214977 topic_id: 35584 reply_id: 335584


[TOPIC: post.html]
#2

richard9

[GLOBAL: userInfoPane.html]
richard9
  • Corona Geek

  • 1,118 posts
  • Enterprise

1. images don't scroll with the list unless you :insert them into the list display group.
2. if you have a touch listener function assigned to the image, you could use
event.target.isVisible = true
uid: 41884 topic_id: 35584 reply_id: 141408


[TOPIC: post.html]
#3

iqra88

[GLOBAL: userInfoPane.html]
iqra88
  • Observer

  • 4 posts
  • Corona SDK

initially i have set the image visibility to true.i have added text and image in a row. i just want the visibility of the image false when i touch the row. if i use event.target.isVisible=false. it deletes the entire row.

how can i just remove the image not row?
uid: 214977 topic_id: 35584 reply_id: 141411


[TOPIC: post.html]
#4

iqra88

[GLOBAL: userInfoPane.html]
iqra88
  • Observer

  • 4 posts
  • Corona SDK

initially i have set the image visibility to true.i have added text and image in a row. i just want the visibility of the image false when i touch the row. if i use event.target.isVisible=false. it deletes the entire row.

how can i just remove the image not row?
uid: 214977 topic_id: 35584 reply_id: 141412


[TOPIC: post.html]
#5

richard9

[GLOBAL: userInfoPane.html]
richard9
  • Corona Geek

  • 1,118 posts
  • Enterprise

1. You need to insert the image into the rowGroup.
2. In your rowTouch function, in the "release" phase, you need to use:
rowGroup[x].isVisible = false

...but you need to figure out what number "x" is. If it's the last object you insert into the group,
rowGroup.numChildren
might work.
uid: 41884 topic_id: 35584 reply_id: 141415


[TOPIC: post.html]
#6

iqra88

[GLOBAL: userInfoPane.html]
iqra88
  • Observer

  • 4 posts
  • Corona SDK

it worked. thanks :)
uid: 214977 topic_id: 35584 reply_id: 141436



[topic_controls]
[/topic_controls]