#Region Activity Attributes
#FullScreen: False
#IncludeTitle: false
#End Region
Sub Process_Globals
'These global variables will be declared once when the application starts.
'These variables can be accessed from all modules.
End Sub
Sub Globals
'These global variables will be redeclared each time the activity is created.
'These variables can only be accessed from this module.
Private ScrollView1 As ScrollView
Private Label1 As Label
Private ImageView1 As ImageView
End Sub
Sub Activity_Create(FirstTime As Boolean)
'Do not forget to load the layout file created with the visual designer. For example:
Activity.LoadLayout("listv")
Main.cur = Main.sql1.ExecQuery("SELECT * FROM sh ")
Dim top As Int = 0
For i=0 To Main.Cur.Rowcount -1
Main.cur.position = i
Dim pnl1 As Panel
pnl1.Initialize("")
ScrollView1.Panel.AddView(pnl1,2%x,top,95%x,40%y)
pnl1.LoadLayout("listv2")
Label1.Text = Main.cur.GetString("titr")
Label1.Tag = Main.cur.GetString("titr")
Label1.TextSize = 13
Label1.TextColor = Colors.Black
ImageView1.bitmap = LoadBitmap(File.DirAssets,Main.cur.getString("pic5")&".jpg")
top = top + 20%y
ScrollView1.Panel.Height = top + 3%y
Next
End Sub
Sub Activity_Resume
End Sub
Sub Activity_Pause (UserClosed As Boolean)
End Sub
سوال
reza644 435
سلام
عکس رو تو مولتی پنل نشون نمیده
کدام:
#Region Activity Attributes #FullScreen: False #IncludeTitle: false #End Region Sub Process_Globals 'These global variables will be declared once when the application starts. 'These variables can be accessed from all modules. End Sub Sub Globals 'These global variables will be redeclared each time the activity is created. 'These variables can only be accessed from this module. Private ScrollView1 As ScrollView Private Label1 As Label Private ImageView1 As ImageView End Sub Sub Activity_Create(FirstTime As Boolean) 'Do not forget to load the layout file created with the visual designer. For example: Activity.LoadLayout("listv") Main.cur = Main.sql1.ExecQuery("SELECT * FROM sh ") Dim top As Int = 0 For i=0 To Main.Cur.Rowcount -1 Main.cur.position = i Dim pnl1 As Panel pnl1.Initialize("") ScrollView1.Panel.AddView(pnl1,2%x,top,95%x,40%y) pnl1.LoadLayout("listv2") Label1.Text = Main.cur.GetString("titr") Label1.Tag = Main.cur.GetString("titr") Label1.TextSize = 13 Label1.TextColor = Colors.Black ImageView1.bitmap = LoadBitmap(File.DirAssets,Main.cur.getString("pic5")&".jpg") top = top + 20%y ScrollView1.Panel.Height = top + 3%y Next End Sub Sub Activity_Resume End Sub Sub Activity_Pause (UserClosed As Boolean) End Sub
ارور خاصی هم نداره
فقط ایمیج ویو سفیده
اسکرول ویو هم از هر طرف مقداری فاصله داره
حل شد
لینک ارسال
به اشتراک گذاری در سایت های دیگر
0 پاسخ به این سوال تاکنون داده شده است
ارسالهای توصیه شده
بایگانی شده
این موضوع بایگانی و قفل شده و دیگر امکان ارسال پاسخ نیست.