I have this code
	
	
	
	
	
	
	
		
			
			
			
			
			
		
	
	
	
		
	
	
		
	
the problem is that 310dip are good in one device, but very height in others
how determine and set the correct height for all devices?
that is:
how set the correct height for every device?
(panel height for Layout_PedidosLineasDetalle are 190 . Attach image)
			
			
			
				B4X:
			
		
		
		private Sub AddPanelDetalleLineas
    'Layout_PedidosLineasDetalle
    Dim F As Long
  
    Try
      
    For f = 1 To 8
        Dim p As B4XView = Xui.CreatePanel("")
        p.SetLayoutAnimated(0, 0, 0,   Activity.Width  ,   310dip)
        p.LoadLayout("Layout_PedidosLineasDetalle")
        'set valores a los controles
         lblPedidoLineaNumero.Text =f
      
         B4XPedidoLineaPartida.Text = F
         B4XComboPedidoLineaEtiqueta.SetItems (ListaEtiquetas)
         B4XPedidoLineaUnidades.Text = F
         B4XPedidoLineaDescripcion.Text  = F  &  " Descripcion Ejemplo"
            CLVPedidoLineas.Add( p,PanelLineasDetalleEnHoja3 )
    Next
        ContaLineas = f
    Catch
        Log(LastException)
    End Try
End Subthe problem is that 310dip are good in one device, but very height in others
how determine and set the correct height for all devices?
that is:
how set the correct height for every device?
(panel height for Layout_PedidosLineasDetalle are 190 . Attach image)
Attachments
			
				Last edited: 
			
		
	
								
								
									
	
		
			
		
	
								
							
							 
				 
 
		 
			 
			 
			 
 
		 
 
		 
 
		 
 
		 
 
		 
 
		