* * *

Author Topic: LAMW hambúrguer  (Read 601 times)

arirod

  • New member
  • *
  • Posts: 13
LAMW hambúrguer
« on: April 13, 2018, 02:57:10 pm »
E possível a criação de menu hambúrguer no LAMW??

ezlage

  • Sr. Member
  • ****
  • Posts: 273
  • (Silêncio)
    • Lageteck
Re: LAMW hambúrguer
« Reply #1 on: April 13, 2018, 04:07:31 pm »
É sim, todavia não há componente equivalente nativo (no Lazarus, ainda não conheço o LAMW). Você teria que desenvolver um por conta própria ou encontrar um pacote contendo um componente parecido que alguém já tenha desenvolvido.

Você também pode utilizar um TPanel com várias TLabels dentro (ou imagens), personalizando os componentes através das propriedades, animando-as e dando ações através de eventos.
Sorry by my poor english.

Atenciosamente,

Ezequiel Lage
ezequiel@lageteck.com

lainz

  • Hero Member
  • *****
  • Posts: 2606
  • I'm coding :)
    • Lainz
Re: LAMW hambúrguer
« Reply #2 on: April 13, 2018, 05:13:53 pm »
Is really simple to make one as ezlage say.

A panel, then buttons al aligned something like "alTop" but with LAMW metrics, I'm not that "pro" on LAMW to remember.

The animation of the panel is quite simple, I did something like that for this (desktop, but is the same for Android if you can set width programatically):
https://github.com/Arandusoft/fpcpaymowidget

arirod

  • New member
  • *
  • Posts: 13
Re: LAMW hambúrguer
« Reply #3 on: April 14, 2018, 01:37:34 am »
Obrigado amigos! vou estudar esta abordagem e pelo que vi esta de acordo com minhas expectativas! novamente obrigado!

jmpessoa

  • Hero Member
  • *****
  • Posts: 1106
Re: LAMW hambúrguer
« Reply #4 on: April 14, 2018, 01:53:01 am »
Hello,  Ari!

LAMW 0.8 support "hamburger" menu and more "material design" stuff....

[see demo: "AppCompatNavigationDrawerDemo1"]

from "readme.md" :

Quote
   NEW! "AppCompat" material theme support!
   NEW! "Android Bridges Support" component palete to support "AppCompat" material theme!
      NEW! jsDrawerLayout component
      NEW! jsNavigationView component
      NEW! jsCoordinatorLayout component
      NEW! jsAppBarLayout component
      NEW! jsCollapsingToolbarLayout component
      NEW! jsToolbar component
      NEW! jsTabLayout component
      NEW! jsNestedScrollView component
      NEW! jsRecyclerView component
      NEW! jsViewPager component
      NEW! jsCardView component
      NEW! jsFloatingButton component
      NEW! jsBottomNavigationView component
      NEW! jsTextInput component

   NEW! demo AppCompatFloatingButtonDemo1
   NEW! demo AppCompatViewPagerDemo1
   NEW! demo AppCompatNavigationDrawerDemo1
   NEW! demo AppCompatCollapsingToolbarDemo1
   NEW! demo AppCompatTabLayoutDemo1
   NEW! demo AppCompatTabLayoutDemo2

   NEW! jDBListView component by Martin Lowry [Thanks!]
   NEW! demo AppDBGridViewDemo1  by Martin Lowry [Thanks!]

   REQUIREMENTS:

      [LAMW 0.8] "AppCompat" [material] theme need:
      1. Java JDK 1.8
      2. Gradle 4.1 + Internet Connection!
      3. Android SDK "plataforms" 25 + "build-tools" 25.0.3 [or]
      3. Android SDK "plataforms" 26 + "build-tools" 26.0.3 [or]
      3. Android SDK "plataforms" 27 + "build-tools" 27.0.3
      4. Android SDK/Extra  "Support Repository"
      5. Android SDK/Extra  "Support Library"
      
      Hint. If your connection has a proxy, edit the "gradle.properties" file content. Example:
 
         systemProp.http.proxyHost=10.0.16.1
         systemProp.http.proxyPort=3128
         systemProp.https.proxyHost=10.0.16.1
         systemProp.https.proxyPort=3128

« Last Edit: April 14, 2018, 01:55:26 am by jmpessoa »
Lamw: Lazarus Android Module Wizard
https://github.com/jmpessoa/lazandroidmodulewizard

arirod

  • New member
  • *
  • Posts: 13
Re: LAMW hambúrguer
« Reply #5 on: April 14, 2018, 03:53:18 am »
obrigado jmpessoa!
é que alguns exemplos não rodam ("diretamente") no meu linux mint...então eu pulo  %) e passo pro próximo
justo neste que estava o exemplo....
mas vou tentar reproduzir aqui
gratidão!

 

Recent

Get Lazarus at SourceForge.net. Fast, secure and Free Open Source software downloads Open Hub project report for Lazarus