A anaylor01 Well-Known Member Licensed User Longtime User Aug 1, 2011 #1 I have a button at the bottom of my screen that is not showing all the way. I have tested this on an emulator and it seems fine but on my device it isn't showing correctly. Below is the code I am using. Code: Copy btnmicrophone.Width = layoutval.Width /3 btnmicrophone.Height = layoutval.Height / 4 btnmicrophone.Left = layoutval.Width /2 - btnmicrophone.Width /2 btnmicrophone.Top = layoutval.Height - btnmicrophone.Height - 60
I have a button at the bottom of my screen that is not showing all the way. I have tested this on an emulator and it seems fine but on my device it isn't showing correctly. Below is the code I am using. Code: Copy btnmicrophone.Width = layoutval.Width /3 btnmicrophone.Height = layoutval.Height / 4 btnmicrophone.Left = layoutval.Width /2 - btnmicrophone.Width /2 btnmicrophone.Top = layoutval.Height - btnmicrophone.Height - 60
Erel B4X founder Staff member Licensed User Longtime User Aug 2, 2011 #2 Which part of the button is missing? Upvote 0
Erel B4X founder Staff member Licensed User Longtime User Aug 2, 2011 #4 What is layoutval? What is the parent of btnmicrophone? Your code looks correct. Upvote 0
A anaylor01 Well-Known Member Licensed User Longtime User Aug 2, 2011 #5 layoutVal=GetDeviceLayoutValues The parent is the layout. Upvote 0
Erel B4X founder Staff member Licensed User Longtime User Aug 2, 2011 #6 GetDeviceLayoutValues returns the screen dimensions. The actual available space for your application is smaller because of the title bar. You should instead use Activity.Width and Activity.Height. Upvote 0
GetDeviceLayoutValues returns the screen dimensions. The actual available space for your application is smaller because of the title bar. You should instead use Activity.Width and Activity.Height.
A anaylor01 Well-Known Member Licensed User Longtime User Aug 2, 2011 #7 Ah shit. did not know that. Thank you. Again. Upvote 0
nfordbscndrd Well-Known Member Licensed User Longtime User Aug 2, 2011 #8 You might also want to see this page in the Wiki which covers this and related subjects in detail. Upvote 0