android-autolayout


Source link: https://github.com/dpreussler/android-autolayout

android-autolayout

Write less code! Dont inflate views, menus, preferences manually anymore!

Gradle

compile 'de.jodamob.android:android-autolayout:1.2.2'

Usage

Why glue together your Activity and Fragments with the xml file manually? Keep the names in sync and it will be done for you.

Simple extend from one of:

AutoLayoutActivity AutoLayoutFragment AutoLayoutPreferenceFragment

both will do setContentView in onCreate / inflateView in onCreateView based on their name using lowercase and underscores instead of CamelCase.

So: DashboardStatisticsActivity must have a layout file dashboard_statistics_activity.xml it also searches for dashboard_statistics.xml and dashboard.xml

They also try to inflate the menu based on same names in menu folders!

If this is too dangerous for you because of changing names, you could also: Just annotate your class:

@InjectedLayout(R.id.myLayout) public class MyActivity extends AutoLayoutActivity

or with fragment:

@InjectedLayout(R.id.myLayout) public class MyFragment extends AutoLayoutFragment

Licensed under MIT license (c) 2014 Danny Preussler

Resources

This is a repository with real-world useful examples of using RxJava with Android.

This is the DeployGate plugin for Apache Maven.

In-memory immutable 2D R-tree implementation in java using RxJava Observables for reactive processing of search results.

This library provides a means to access the content on the Web easily from AndroidWear.

Bash script to simplify adb command usage.

This is a helpful bash utility for working with multiple devices at the same time.

Wrapper for Android Preferences which provides a fluid syntax.

Example:

Prefs.with(context).save(key, value);

Topics


2D Engines   3D Engines   9-Patch   Action Bars   Activities   ADB   Advertisements   Analytics   Animations   ANR   AOP   API   APK   APT   Architecture   Audio   Autocomplete   Background Processing   Backward Compatibility   Badges   Bar Codes   Benchmarking   Bitmaps   Bluetooth   Blur Effects   Bread Crumbs   BRMS   Browser Extensions   Build Systems   Bundles   Buttons   Caching   Camera   Canvas   Cards   Carousels   Changelog   Checkboxes   Cloud Storages   Color Analysis   Color Pickers   Colors   Comet/Push   Compass Sensors   Conferences   Content Providers   Continuous Integration   Crash Reports   Credit Cards   Credits   CSV   Curl/Flip   Data Binding   Data Generators   Data Structures   Database   Database Browsers   Date &   Debugging   Decompilers   Deep Links   Dependency Injections   Design   Design Patterns   Dex   Dialogs   Distributed Computing   Distribution Platforms   Download Managers   Drawables   Emoji   Emulators   EPUB   Equalizers &   Event Buses   Exception Handling   Face Recognition   Feedback &   File System   File/Directory   Fingerprint   Floating Action   Fonts   Forms   Fragments   FRP   FSM   Functional Programming   Gamepads   Games   Geocaching   Gestures   GIF   Glow Pad   Gradle Plugins   Graphics   Grid Views   Highlighting   HTML   HTTP Mocking   Icons   IDE   IDE Plugins   Image Croppers   Image Loaders   Image Pickers   Image Processing   Image Views   Instrumentation   Intents   Job Schedulers   JSON   Keyboard   Kotlin   Layouts   Library Demos   List View   List Views   Localization   Location   Lock Patterns   Logcat   Logging   Mails   Maps   Markdown   Mathematics   Maven Plugins   MBaaS   Media   Menus   Messaging   MIME   Mobile Web   Native Image   Navigation   NDK   Networking   NFC   NoSQL   Number Pickers   OAuth   Object Mocking   OCR Engines   OpenGL   ORM   Other Pickers   Parallax List   Parcelables   Particle Systems   Password Inputs   PDF   Permissions   Physics Engines   Platforms   Plugin Frameworks   Preferences   Progress Indicators   ProGuard   Properties   Protocol Buffer   Pull To   Purchases   Push/Pull   QR Codes   Quick Return   Radio Buttons   Range Bars   Ratings   Recycler Views   Resources   REST   Ripple Effects   RSS   Screenshots   Scripting   Scroll Views   SDK   Search Inputs   Security   Sensors   Services   Showcase Views   Signatures   Sliding Panels   Snackbars   SOAP   Social Networks   Spannable   Spinners   Splash Screens   SSH   Static Analysis   Status Bars   Styling   SVG   System   Tags   Task Managers   TDD &   Template Engines   Testing   Testing Tools   Text Formatting   Text Views   Text Watchers   Text-to   Toasts   Toolkits For   Tools   Tooltips   Trainings   TV   Twitter   Updaters   USB   User Stories   Utils   Validation   Video   View Adapters   View Pagers   Views   Watch Face   Wearable Data   Wearables   Weather   Web Tools   Web Views   WebRTC   WebSockets   Wheel Widgets   Wi-Fi   Widgets   Windows   Wizards   XML   XMPP   YAML   ZIP Codes