height

  1. practicalsoft

    B4X FEED B4I/iOS unable to render custom fonts correctly (Gotham-Medium and Gotham-Book)

    Hello, i'm trying to port one app from android to iOS. The app on Android runs just fine. In the iOS App i can't manage dialogs to work reliably: text disappear, height after sizetofit is set to zero and i have narrowed down the issue to the fonts i'm using in the app, because if i use another...
  2. practicalsoft

    B4X FEED xCustomlistview & xGauges update value

    Hi, I try to use xCustomlistview with xGauges v 1.8 and the code is as follows: B4X: Dim user As showtype Dim lbtest As String clv1.Clear If userdata.showlist.Size>0 Then Dim calc As Double Dim str As String For i=0 To userdata.showlist.Size-1...
  3. practicalsoft

    B4X FEED When is layout ready for changes in code?

    I have this code in Application_Start: B4X: pnlBottomMain.LoadLayout("bottompanel") pnlBottomMain.Height = pnlBottom.height-2 pnlBottomMain.Top = MainPanel.Height - pnlBottomMain.Height However, the layout adjustments are not shown. But if I put the same two lines in a click handler, it works...
  4. practicalsoft

    B4X FEED CustomListView Set default ItemHeight

    Hi All A question on setting the item height in a CustomListView. I have found several references to "Changing the height of an existing item but requires each item to be independently changed. In ListView I would do this: B4X: AllListView.SingleLineLayout.Label.Height = 40dip...
  5. practicalsoft

    B4X FEED [iTabStrip bug] mainpage with height outside the viewing area

    All the first pages (MainPage) in the TabStrip, the Height is a bit outside the viewing area screenshot below by default it should look like this but the height of the clv is going down this happens with all the pages i load first on iTabStrip I resolved with B4X: clv.GetBase.Height =...
  6. practicalsoft

    B4X FEED PreoptimizedCLV + CLVSwipe

    Hi, I already setup a CLV with CLVSwipe feature on my app, every thing work great as expected. I use lazy-loading to show item data which contains several view and image on the item panel. Problem occur (laggy) with bigger data, in the item panel i have to do some httpjob to get image from my...
  7. practicalsoft

    B4X FEED Measuring Person's height With Camera

    Hi, i just had an interesting talk with a business owner and one of the questions that were asked was, Is it possible to develop an App that can measure a person's height, I've seen many apps that can be used to measure length on a surface, and even width but have never seen an App that an...
  8. practicalsoft

    B4X FEED [B4X] Auto Height Webview

    For B4i: Run this JavaScript code after the page is loaded: Sub webview_PageFinished (Success As Boolean, Url As String) wait for (webview.EvaluateJavaScript("document.documentElement.scrollHeight")) webview_JSComplete (Success As Boolean, Result As String) If Success Then...
  9. practicalsoft

    B4X FEED Auto Height Webview

    Dependency: WebViewExtras2 (v2.20) Add WebViewExtra and DefaultJavascriptInterface variable in Global Sub: Sub Globals Dim wve As WebViewExtras Dim jsi As DefaultJavascriptInterface End Sub Initialize WebViewExtra and DefaultJavascriptInterface before loading content in WebView...
  10. practicalsoft

    B4X FEED Auto WebView Size

    Hi all, I searching for a solution to implement an auto WebView height size for B4X (see the attached images). Searching the Forum a found this Samples (by @Erel and by @Alexander Stolte) : [B4X] [XUI] Accurate Text Measurement and Drawing Android Code Snippet - [B4X] [XUI] Accurate Text...
  11. practicalsoft

    B4X FEED [Solved] Google AdMob: Restricted ad serving - Modified ad code: Resizing Ad Frames

    I got an email from google today that there is a problem with one of my applications and I need to check Policy center. This is my Policy centre: I am using basic code for ad placement. B4X: Adview1.Initialize2("Ad", "xxxxxxxx", AdView1.SIZE_SMART_BANNER) Dim height As Int If...
  12. practicalsoft

    B4X FEED Programmatically change Designer script (for a ScrollView Control)

    Hi All, In my designer script I have this line which works very well for one layout: B4X: ScrollView1.SetTopAndBottom(lblTitle.Bottom+10dip,pnlForCPBar.Top-10dip) But in my application, at some stage, I need the scrollview control to increase in size (height) and have its 'bottom' to the...
  13. practicalsoft

    B4X FEED Form with many inputs

    I have a CustomListView in which I load a panel that contains a larger number of inputs (B4XComboBox, B4XFloatTextField and an Button for submit). The height of the panel exceeds the height of the screen, scrolling is required. What is the correct approach in this case for the inputs that are...
  14. practicalsoft

    B4X FEED Activity height and Status, Action and Navigation bars.

    An Android phone has a Status, Action and Navigation bar. Which of these are included and which are excluded when calculating the height of the Activity.Height property? ادامه مطلب...
  15. practicalsoft

    B4X FEED ScrollView.Panel.Height

    I needed one hour to find out, what is the reason for a strange behavior in my code. Now I think I can prove that this is a bug: I use the Scrollview to offer a variing number of objects. Of course the Innerheight() of the Scrollview should exactly fit the object. So I change...
  16. practicalsoft

    B4X FEED How to print on thermal paper jfx8print

    Hello, I want to be able to get the height of nodes on this panel and print this panel on a thermal printer paper. It is an invoice for a restaurant menu. B4X: Dim pnlheight As Int = 0 For Each v As B4XView In pnlprint.GetAllViewsRecursive If v Is...
  17. practicalsoft

    B4X FEED {SOLVED} [B4XPages] how to resize layout

    B4XPages 1.05: how to resize layout Width and Height ? in Main: B4X: #Region Project Attributes #MainFormWidth: 600 #MainFormHeight: 600 #End Region ' #Region Delegates Sub MainForm_Resize (Width As Double, Height As Double) B4XPages.Delegate.MainForm_Resize(Width, Height) 'what is...
  18. practicalsoft

    B4X FEED How get class as view

    Hi all. How can I initialize a class as a view? I didn't understand the logic... Example (Admob by @Erel ) B4X: Private BannerAd As AdView BannerAd.Initialize2("BannerAd", "ca-app-pub-3940256099942544/6300978111", BannerAd.SIZE_SMART_BANNER) Dim height As Int If...
عقب
بالا