Android Question Display problem with Customdialog2

D

Deleted member 103

Guest
Hi,

problem with Customdialog2.
Here is my code and 2 screenshot.
The Samsung-S4 looks good, the HTC-one-A9 looks very bad.
Is an error in my code?
B4X:
    Dim pnl As Panel
    Dim cd As CustomDialog2
    Dim wbview As WebView
    wbview.Initialize("")
    wbview.LoadHtml(File.GetText(File.DirAssets,Starter.language.Value("strHistoryFile")))
    wbview.ZoomEnabled = False
   
    pnl.Initialize("")
    Activity.AddView(pnl, 0, 0, 85%x, 60%y)
    pnl.RemoveView
    pnl.AddView(wbview, 0, 0, pnl.Width, pnl.Height)
    cd.AddView(pnl, 85%x, 60%y)
    cd.Show(mBBL.GetApplicationLabel,"OK","","",LoadBitmap(File.DirAssets,"speedpilot_48x48.png"))
HTC-one-A9
speedpilot_htc-one-a9.png


Samsung-S4
speedpilot_samsung-s4.png
 
D

Deleted member 103

Guest
OK, with the code works correct.

B4X:
    Dim cd As CustomDialog2
    Dim wbview As WebView
    wbview.Initialize("")
    wbview.LoadHtml(File.GetText(File.DirAssets,Starter.language.Value("strHistoryFile")))
    wbview.ZoomEnabled = False
    cd.AddView(wbview, 60%x, 60%y)
    cd.Show(mBBL.GetApplicationLabel,"OK","","",LoadBitmap(File.DirAssets,"speedpilot_48x48.png"))
 
Upvote 0
Top