HanselAndGretel


Source link: https://github.com/JakeWharton/HanselAndGretel

Hansel And Gretel

Android library providing bread crumbs for compatibility fragments.

Usage

For a working implementation of this project see the sample/ folder.

  1. Include the widget in your view. This should usually be placed directly above the container in which the associated fragments will be displayed.

    <android.support.v4.app.FragmentBreadCrumbs
      android:id="@+id/breadcrumbs"
      android:layout_width="fill_parent"
      android:layout_height="40dp" /> 
  2. In your onCreate method, bind the widget to the activity.

    FragmentBreadCrumbs crumbs = (FragmentBreadCrumbs)findViewById(R.id.breadcrumbs);
     crumbs.setActivity(this);
     
  3. Add the required style attributes to your theme.

    <item name="hagDividerVertical">@drawable/hag__divider_dark</item> <item name="hagSelectableItemBackground">@drawable/hag__background_dark</item> 

    or

    <item name="hagDividerVertical">@drawable/hag__divider_dark</item> <item name="hagSelectableItemBackground">@drawable/hag__background_dark</item> 

    or specify your own drawables for the divider and background.

  4. (Optional) Set the title of the initial view. This can be useful when the initial activity view has a default fragment.

    //continued from above crumbs.setTitle("Settings", null);
     

Including In Your Project

The HanselAndGretel library is presented as an Android library project. A standalone JAR is not possible due to the theming capabilities offered by the widget.

You can include this project by [referencing it as a library project 1 in Eclipse or ant.

If you are a Maven user you can easily include the library by specifying it as a dependency:

<dependency>
<groupId>com.jakewharton</groupId>
<artifactId>hanselandgretel</artifactId>
<version>1.0.2</version>
<type>apklib</type> </dependency> 

This project depends on the Fragment classes which are available in the Android Support Library.

Developed By

License

Copyright 2012 Jake Wharton  Licensed under the Apache License, Version 2.0 (the "License");
 you may not use this file except in compliance with the License. You may obtain a copy of the License at
  http://www.apache.org/licenses/LICENSE-2.0  Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. 

Resources

Memory Monitorб always monitor the actual physical memory (pss) or heap memory usage, like Memory Monitor in Android Studio.

Simple and flexible way to configuration RecyclerView using android data binding.

Stetho-Couchbase is a plugin for Stetho to enable visualizing and debugging Android Couchbase databases in Chrome.

Create super easy curve below image views and relative layouts.

This is a TabBar for Android,It is the Android navigation bar at the bottom of a cool, accord with the design specification of the Volkswagen APP

JGiven is a developer-friendly and pragmatic BDD tool for Java. Developers write scenarios in plain Java using a fluent, domain-specific API, JGiven generates reports that are readable by domain experts.

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