Two questions about scrollview

parijs

Active Member
Licensed User
Longtime User
One:
I have have pica 150x150
Use BitmapDrawable to project them at scrollview 65x65
But would pica reduce from 150x150 to 75x75
Because picas had rounded corners and I don't want to see them.

Two:
I use some scrollview "Yes Klaus again"
But I don't understand the View_Click for me
The loaded items are not always the same
The mapc(nPos) must be the itemclick
The favot(nPos) is what I need to go for the next layout

PS I want to use the hole Panel for click
 

Attachments

  • code.txt
    3.5 KB · Views: 199
Last edited:

klaus

Expert
Licensed User
Longtime User
Use BitmapDrawable to project them at scrollview 65x65
But would pica reduce from 150x150 to 75x75
Not directly. You could either create a new picture without the rounded corners or you could copy a part of the original bitmap with a canvas.

The loaded items are not always the same
What do you mean with this?

The mapc(nPos) must be the itemclick
The favot(nPos) is what I need to go for the next layout
Don't really understand ?

PS I want to use the hole Panel for click
What Panel are you speaking of ?

Unfortunately, just the code snippet in the txt file is not enough information to be able to give you a concrete answer.

What exactly do you want to do?
If you want to have in the View_Click event only a reference to the Panel1s then Panel1.Initialize("View") is OK.
But all others must be xxx.Initialize("") to avoid these views to also raise the View_Click event.

With the whole project as a zip file would be much easier to help you.

Best regards.
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…