R ronovar Active Member Licensed User Longtime User Feb 19, 2016 #1 How can i animate only bitmap from CLV (i have SlaveCLV witch holds list of 12items) so that animate fading bottom or top like in this video (see 1:47...1:53). Can i get example code? CLV is shortcut for CustomListView class from erel. Thanks.
How can i animate only bitmap from CLV (i have SlaveCLV witch holds list of 12items) so that animate fading bottom or top like in this video (see 1:47...1:53). Can i get example code? CLV is shortcut for CustomListView class from erel. Thanks.
Erel B4X founder Staff member Licensed User Longtime User Feb 21, 2016 #2 You can use GetPanel method to get the item's main panel. Then you can get a reference to the bitmap with panel.GetView with the correct index. Upvote 0
You can use GetPanel method to get the item's main panel. Then you can get a reference to the bitmap with panel.GetView with the correct index.
R ronovar Active Member Licensed User Longtime User Feb 21, 2016 #3 Ok erel..i then get bitmap...and i don't know code for animate like in youtube video..can you please post simple code to animate bitmap like in video? Or animation with bitmap...i know that the above video is made using jquery html css but it will be excellent if you post code for b4a because it will be faster that html. Upvote 0
Ok erel..i then get bitmap...and i don't know code for animate like in youtube video..can you please post simple code to animate bitmap like in video? Or animation with bitmap...i know that the above video is made using jquery html css but it will be excellent if you post code for b4a because it will be faster that html.
Erel B4X founder Staff member Licensed User Longtime User Feb 21, 2016 #4 Bitmaps cannot be animated. You can animate any view, including an ImageView with ImageView.SetLayoutAnimated. Upvote 0
Bitmaps cannot be animated. You can animate any view, including an ImageView with ImageView.SetLayoutAnimated.
R ronovar Active Member Licensed User Longtime User Feb 21, 2016 #5 Yes you are correct...i attached bitmap to imageview using this code: Code: Copy 'DEFINE - ImageViews Dim imgChLogo As ImageView 'DEFINE - Bitmaps Dim bmpChLogo As Bitmap 'INIT - ImageView imgChLogo.Initialize("imgChLogo") imgChLogo.Bitmap = bmpChLogo imgChLogo.Gravity = Gravity.Fill Can you post simple examle how to use setlayoutanimated on imageview to get scrolling fading down or up like in youtube video? Thanks. Upvote 0
Yes you are correct...i attached bitmap to imageview using this code: Code: Copy 'DEFINE - ImageViews Dim imgChLogo As ImageView 'DEFINE - Bitmaps Dim bmpChLogo As Bitmap 'INIT - ImageView imgChLogo.Initialize("imgChLogo") imgChLogo.Bitmap = bmpChLogo imgChLogo.Gravity = Gravity.Fill Can you post simple examle how to use setlayoutanimated on imageview to get scrolling fading down or up like in youtube video? Thanks.
mangojack Expert Licensed User Longtime User Feb 21, 2016 #6 Code: Copy '@@ This is My Test Code To See How SetLayoutAnimated Works ! @@ imgChLogo.SetLayoutAnimated(2000,50dip, 50dip, 400dip, 600dip) Upvote 0
Code: Copy '@@ This is My Test Code To See How SetLayoutAnimated Works ! @@ imgChLogo.SetLayoutAnimated(2000,50dip, 50dip, 400dip, 600dip)