android_L_preview_example alternatives and similar packages
Based on the "Demo" category.
Alternatively, view android_L_preview_example alternatives based on common mentions on social networks and blogs.
-
android-best-practices
Do's and Don'ts for Android development, by Futurice developers -
Android-RxJava
Learning RxJava for Android by example -
u2020
A sample Android app which showcases advanced usage of Dagger among other open source libraries. -
android-proguard-snippets
Proguard configurations for common Android libraries -
Android-Material-Examples
[Deprecated] Little bites of Material Design -
MovieGuide
Movie discovery app showcasing MVP, RxJava, Dagger 2 and Clean Architecture -
android-demos
Examples of Android applications -
Android-Cheat-sheet
Cheat Sheet for Android Interviews -
Android-ItemTouchHelper-Demo
Basic example of using ItemTouchHelper to add drag & drop and swipe-to-dismiss to RecyclerView. -
socket.io-android-chat
A simple chat demo for socket.io and Android -
CardSlidePanel
enable users to slide card to the left or right smoothly and continuously -
kotlin-sample-app
๐ Sample Android Components Architecture on a modular word focused on the scalability, testability and maintainability written in Kotlin, following best practices using Jetpack. -
android-basic-samples
Google Play game services - Android samples -
BlurEffectForAndroidDesign
Sample to show how to implement blur graphical tricks -
android-demo
Android common lib demo, include ImageCache, HttpCache, DropDownListView, DownloadManager, install apk silent and so on, you can find description -
Android-LollipopShowcase
A simple app to showcase some of the cool new cool stuff in Android L. RecyclerView, CardView, ActionBarDrawerToggle, DrawerLayout, Animations, Android Compat Design, Toolbar -
rx-android-architecture
RxJava architecture library for Android -
AndroidPushNotificationsDemo
A example of an android app that receives push notifications using MQTT. -
Quality-Tools-for-Android
This is an Android sample app + tests that will be used to work on various project to increase the quality of the Android platform. -
Android-WizardPager
Android pager-style wizard flow sample code -
AndroidDemoProjects
Collection of Small Android Projects -
MaterialTransitions
Sample material transition animations for Android -
android-layout-samples
Explorations around Android custom layouts -
android-support-23.2-sample
Sample Project for Android Support Library 23.2 -
Watch
A project which demonstrate how to develop a custom client on android for dribbble.com -
GraphView-Demos
Examples for my Android GraphView library -
Android-AOPExample
This is a simple example of Aspect Oriented Programming in Android -
hellomap-android
Quick start with the Google Maps Android API -
android-movies-demo
Sample application demonstrating Android design and animation -
ProgrammingAndroidExamples
This repo contains example code for O'Reilly's "Programming Android" by Zigured Mednieks, Laird Dornin, Blake Meike and Masumi Nakamura -
ProgrammingAndroid2Examples
This repo contains example code for O'Reilly's "Programming Android" by Zigured Mednieks, Laird Dornin, Blake Meike and Masumi Nakamura -
LearningAndroidYamba
This is the code that goes along with Learning Android book. -
u2020-mvp
[DEPRECATED] Port of Jake Wharton's U2020 sample app with use of MVP and Dagger 2 -
ViewPagerHeaderScrollDemo
ViewPagerHeaderScrollDemo -
maven-android-plugin-samples
DEPRECATED! Usage examples for Android Maven Plugin -
googletv-android-samples
Source for many GoogleTV Example applications. -
RoboDemo
RoboDemo is a ShowCase library for Android to demonstrate to users how a given Activity works. -
Material-Animation-Samples
Samples in Material Animation (Deprecated) -
Android-Notification-Example
A simple sample showing the different types of notifications on Andoid -
ToolbarMenudrawer
TOOLBARMENUDRAWER 2.0: http://goo.gl/J77i3z -
RoomDb-Sample
A simple notes app to demo Room + LiveData implementation in Android -
AndroidTVExplorer
A sample project which can be used as a base in order to develop Media Library applications for Android TV. Follow the series of blogs starting at http://www.malmstein.com/blog/2014/10/21/building-applications-for-android-tv/ in order to keep up to date with the process -
PlayPauseDrawable
This is a sample Play & Pause Drawable with morphing animation for Android -
Curve Bottom Bar
Create curve bottom navigation using this library -
CustomFontView
Custom View classes for TextView, EditText & Buttons - to set custom fonts -
Trailers
An open source app that is refactored to demo MVVM architecture -
GameOfThronesTrivia
An open source app that is refactored to demo ViewModel and LiveData -
Inshorts
A demo app news app for a hackathon - includes MVP architecture example
Appwrite - The Open Source Firebase alternative introduces iOS support
* Code Quality Rankings and insights are calculated and provided by Lumnify.
They vary from L1 to L5 with "L5" being the highest.
Do you think we are missing an alternative of android_L_preview_example or a related project?
README
Android L preview example
Description
This project is focused on the sample using the API's new preview version of Android-L, use of transitions, shadows etc...,
UI
This app is aimed to use the new Material Design released at the Google I/0 14, to use the Material
theme on your app, you only
have to set the parent of your app style to @android:style/Theme.Material
or @android:style/Theme.Material.Light
and @android:style/Theme.Material.DarkActionBar
.
Customize the Color Palette of your app
In the theme.xml
of the MainActivity
:
<!-- App colors -->
<color name="lollipop_theme_default_primary">#3F51B5</color>
<color name="lollipop_theme_default_primary_dark">#303F9F</color>
<color name="lollipop_theme_default_accent">#C5CAE9</color>
<color name="fab_color">#FF4081</color>
<!-- Main theme colors -->
<style name="MainLollipopTheme" parent="android:Theme.Material.Light">
<item name="android:colorPrimary">@color/lollipop_theme_default_primary</item>
<item name="android:colorPrimaryDark">@color/lollipop_theme_default_primary</item>
<item name="android:statusBarColor">@color/lollipop_theme_default_primary_dark</item>
<item name="android:colorAccent">@color/lollipop_theme_default_accent</item>
<item name="android:colorControlHighlight">@color/lollipop_theme_default_accent</item>
<item name="android:navigationBarColor">@color/lollipop_theme_default_primary</item>
<!-- Main theme action bar-->
<item name="android:actionBarStyle">@style/MainActionBar</item>
<item name="android:actionBarTheme">@style/MainActionBarThemeOverlay</item>
<!-- lag indicating whether this window requests that content changes be performed
as scene changes with transitions -->
<item name="android:windowContentTransitions">true</item>
<!-- Flag indicating whether this Window's transition should overlap with
the exiting transition of the calling Activity. -->
<item name="android:windowAllowEnterTransitionOverlap">true</item>
<!--Flag indicating whether this Window's transition should overlap with
the exiting transition of the called Activity when the called Activity
finishes. -->
<item name="android:windowAllowExitTransitionOverlap">true</item>
<!-- Flag indicating whether this window's Action Bar should overlay -->
<item name="android:windowActionBarOverlay">false</item>
<!-- Flag indicating whether this window's Action Bar content should overlay -->
<item name="android:windowContentOverlay">@null</item>
</style>
Customizing the material theme <- This easy picture on Android Developers explains where are the attributes that of the previous code.
The FAB Button
Android-L introduces a new way to manage view with elevation and shadows, "Outlines represent the outer shape of a graphics object and define the ripple area for touch feedback." Android Developers, the fab
button is defined as a ImageButton
in the xml:
...
<!-- fab button -->
<ImageButton
android:id="@+id/fab"
android:layout_alignParentRight="true"
android:layout_alignParentBottom="true"
android:layout_width="@dimen/fab_size"
android:layout_height="@dimen/fab_size"
android:layout_gravity="bottom|right"
android:layout_marginRight="16dp"
android:layout_marginBottom="16dp"
android:background="@drawable/fab_ripple"
android:elevation="@dimen/button_elevation"
android:onClick="onFabClicked"
android:src="@drawable/ic_action_add"/>
...
// Configure the FAB button
int size = getResources().getDimensionPixelSize(R.dimen.fab_size);
Outline outline = new Outline();
outline.setOval(0, 0, size, size);
findViewById(R.id.fab).setOutline(outline);
Activity transitions
Now, with Android-L you can specify custom animations for enter and exit transitions, and for transition of shared elements between activities, to do that, first, you have to enable the window content transitions, in my case, at themes.xml
you can set this values from java code as well.
<style name="MainLollipopTheme" parent="android:Theme.Material.Light">
...
<!-- lag indicating whether this window requests that content changes be performed
as scene changes with transitions -->
<item name="android:windowContentTransitions">true</item>
<!-- Flag indicating whether this Window's transition should overlap with
the exiting transition of the calling Activity. -->
<item name="android:windowAllowEnterTransitionOverlap">true</item>
<!--Flag indicating whether this Window's transition should overlap with
the exiting transition of the called Activity when the called Activity
finishes. -->
<item name="android:windowAllowExitTransitionOverlap">true</item>
<!-- Flag indicating whether this window's Action Bar should overlay -->
<item name="android:windowActionBarOverlay">false</item>
<!-- Flag indicating whether this window's Action Bar content should overlay -->
<item name="android:windowContentOverlay">@null</item>
...
</style>
// Setup the transition to the detail activity
ActivityOptions options = ActivityOptions.makeSceneTransitionAnimation(MainActivity.this, view, "photo" + i);
startActivity(detailIntent, options.toBundle());