Android Question landscape display

rogel a. tolentino

Member
Licensed User
Sub Activity_Create(FirstTime As Boolean)
'Do not forget to load the layout file created with the visual designer. For example:
'Dim b As Bitmap
Activity.LoadLayout("sketch")
If File.Exists(Main.folder,Form1.acctno&".jpg") = True Then
'ImageView1.Initialize("")
ImageView1.Gravity=Bit.Or(Gravity.CENTER,Gravity.FILL)
ImageView1.Bitmap=LoadBitmap(Main.folder,Form1.acctno&".jpg")
End If
End Sub

using the above code the display is landscape but the actual picture is portrait. How to display in portrait
 

Attachments

  • Viewmap.bas
    1.1 KB · Views: 60

teddybear

Well-Known Member
Licensed User
I don't understand what you say the display is landscape. what ImageView1 Anchor properties are in your layout? Gravity.FILL it will fill image into view according to the imageview's size .
you'd better post a small project instead of a code snippet.
 
Last edited:
Upvote 0
Top