Mês: outubro 2016

Android, GitHub, Maven, JitPack – Disponibilizando uma biblioteca Android como dependência utilizando o GitHub + JitPack (publishing of android libraries)

Para disponibilizar uma biblioteca com gerenciamento de dependência, normalmente os desenvolvedores publicam suas libs em repositórios utilizando o Maven como ferramenta de configuração. Porem esse processo é complicado e trabalhoso. O JitPack (https://jitpack.io/) trabalha em conjunto com o Maven, GitHub, Gradle e o Android Arsenal para facilitar essa configuração, tornando muito simples criar uma biblioteca […]

Android – Como adicionar uma view em um RelativeLayout programaticamente? (How to add a view programmattically to RelativeLayout?)

//Criando uma view para adicionar no layout; FloatingActionButton floatingActionButton = new FloatingActionButton(this); floatingActionButton.setImageResource(R.drawable.ic_menu_add); floatingActionButton.setOnClickListener(this); //Adquire o RelativeLayout RelativeLayout mainLayout = getLayout(); //Cria uma LayoutParams aonde vamos configurar as propriedades do componente inserido //dentro do RelativeLayout; RelativeLayout.LayoutParams params = new RelativeLayout.LayoutParams(RelativeLayout.LayoutParams.WRAP_CONTENT, RelativeLayout.LayoutParams.WRAP_CONTENT); params.addRule(RelativeLayout.ALIGN_PARENT_RIGHT, RelativeLayout.TRUE); params.addRule(RelativeLayout.ALIGN_PARENT_BOTTOM, RelativeLayout.TRUE); //Adiciona a view com as propriedades no RelativeLayout mainLayout.addView(floatingActionButton, params);

Android – Links úteis para ícones e geradores de ícones

=============================================== ROMANNURIK – AndroidAssetStudio https://romannurik.github.io/AndroidAssetStudio/index.html Icon generators — Make icons for your app Icon generators allow you to quickly and easily generate icons from existing source images, clipart, or text. Launcher icons Action bar and tab icons Notification icons Generic icons Other generators — Miscellaneous asset creation tools Simple nine-patch generator Official Android Device Art […]

Rolar para o topo