GithubHelp home page GithubHelp logo

android_app's Introduction

Android_app

simple project

XML FOR ANDROID

Vector drawables overview

Android Studio can also convert SVG/PSD files to the vector drawable format
The major advantage of using a vector drawable is image scalability. It can be scaled without loss of display quality, which means the same file is resized for different screen densities without loss of image quality. This results in smaller APK files and less developer maintenance

+  Right click on app folder-> New Vector Asset.
+  Select second option in radio button to create vector from local file as shown in below image.

for more doc see this link

fitsSystemWindows= true
When people want to put some View under status bar they usually can find the answer like:
-  “Just add “fitsSystemWindows= true” and it should work fine. -No? 
-  Then change your root view to CoordinatorLayout and apply fitsSystemWindows = true”.


for more docs see this link1 , link2

tools:openDrawer="start"
If I remove the tools:openDrawer="start", on the layout preview, the navigation drawer will be closed instead of open.
I thought this was a replacement attribute, similar to android:text that can be replaced with tools:text to put some placeholder text in the layout preview.
Android ScrollView Vs ListView
ListView is meant to create a list of varrying lengths based of an array of information. ScrollView is for having a (usually) set amount of children in the View (defined in the layout xml).

ListViews do not inflate all items, they inflate however many can fit on a page at a time. Your fastest option, with or without paging is a ListView. However, if each child is completeley different, then ScrollView is the way to go.

fillViewport = “true” fillViewport allows scrollView to extend it’s height equals to the full height of device screen’s height in the cases when the child of scroll view has less height. see this doc <a href"https://demonuts.com/android-fillviewport/" target="_blank">link

android_app's People

Contributors

ziedtuihri avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.