GithubHelp home page GithubHelp logo

materialeverywhere's Introduction

MaterialEverywhere (deprecated)

This example is deprecated, I recommend taking a look at MaterializeYourApp repository.

Showcase of the new AppCompat 21, which includes new Material Theme, working in pre-21 devices.

Blog post explanation at antonioleiva.com

materialeverywhere's People

Contributors

antoniolg avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

materialeverywhere's Issues

Compilation Fails on Ubuntu with Java 7 and Android Studio .9.2

gopinath@wzdt5:~/code/oss/MaterialEverywhere-master$ ./gradlew :app:installDebug
:app:preBuild
:app:compileDebugNdk
:app:preDebugBuild
:app:checkDebugManifest
:app:preReleaseBuild
:app:prepareComAndroidSupportAppcompatV72100Library
:app:prepareComAndroidSupportSupportV42100Library
:app:prepareDebugDependencies
:app:compileDebugAidl
:app:compileDebugRenderscript
:app:generateDebugBuildConfig
:app:generateDebugAssets UP-TO-DATE
:app:mergeDebugAssets
:app:generateDebugResValues
:app:generateDebugResources
:app:mergeDebugResources
/home/gopinath/code/oss/MaterialEverywhere-master/app/build/intermediates/exploded-aar/com.android.support/appcompat-v7/21.0.0/res/drawable-xhdpi/abc_ab_share_pack_holo_light.9.png: libpng warning: iCCP: Not recognizing known sRGB profile that has been edited
/home/gopinath/code/oss/MaterialEverywhere-master/app/build/intermediates/exploded-aar/com.android.support/appcompat-v7/21.0.0/res/drawable-xhdpi/abc_ab_share_pack_holo_dark.9.png: libpng warning: iCCP: Not recognizing known sRGB profile that has been edited
/home/gopinath/code/oss/MaterialEverywhere-master/app/build/intermediates/exploded-aar/com.android.support/appcompat-v7/21.0.0/res/drawable-hdpi/abc_spinner_mtrl_am_alpha.9.png: libpng warning: iCCP: Not recognizing known sRGB profile that has been edited
/home/gopinath/code/oss/MaterialEverywhere-master/app/build/intermediates/exploded-aar/com.android.support/appcompat-v7/21.0.0/res/drawable-hdpi/abc_ab_share_pack_holo_dark.9.png: libpng warning: iCCP: Not recognizing known sRGB profile that has been edited
/home/gopinath/code/oss/MaterialEverywhere-master/app/build/intermediates/exploded-aar/com.android.support/appcompat-v7/21.0.0/res/drawable-mdpi/abc_ab_share_pack_holo_dark.9.png: libpng warning: iCCP: Not recognizing known sRGB profile that has been edited
/home/gopinath/code/oss/MaterialEverywhere-master/app/build/intermediates/exploded-aar/com.android.support/appcompat-v7/21.0.0/res/drawable-hdpi/abc_ab_share_pack_holo_light.9.png: libpng warning: iCCP: Not recognizing known sRGB profile that has been edited
:app:processDebugManifest
:app:processDebugResources
/home/gopinath/code/oss/MaterialEverywhere-master/app/build/intermediates/res/debug/values-v21/values.xml:8: error: Error: No resource found that matches the given name: attr 'android:windowAllowReturnTransitionOverlap'.

/home/gopinath/code/oss/MaterialEverywhere-master/app/build/intermediates/res/debug/values-v11/values.xml:33: error: Error: No resource found that matches the given name: attr 'android:actionModeShareDrawable'.

/home/gopinath/code/oss/MaterialEverywhere-master/app/build/intermediates/res/debug/values-v14/values.xml:10: error: Error: No resource found that matches the given name: attr 'android:actionModeShareDrawable'.

/home/gopinath/code/oss/MaterialEverywhere-master/app/build/intermediates/res/debug/values-v11/values.xml:39: error: Error: No resource found that matches the given name: attr 'android:actionModeShareDrawable'.

/home/gopinath/code/oss/MaterialEverywhere-master/app/build/intermediates/res/debug/values-v14/values.xml:17: error: Error: No resource found that matches the given name: attr 'android:actionModeShareDrawable'.

/home/gopinath/code/oss/MaterialEverywhere-master/app/build/intermediates/res/debug/values-v11/values.xml:45: error: Error: No resource found that matches the given name: attr 'android:actionModeShareDrawable'.

/home/gopinath/code/oss/MaterialEverywhere-master/app/build/intermediates/res/debug/values-v14/values.xml:24: error: Error: No resource found that matches the given name: attr 'android:actionModeShareDrawable'.

/home/gopinath/code/oss/MaterialEverywhere-master/app/build/intermediates/res/debug/values-v11/values.xml:51: error: Error: No resource found that matches the given name: attr 'android:actionModeShareDrawable'.

/home/gopinath/code/oss/MaterialEverywhere-master/app/build/intermediates/res/debug/values-v14/values.xml:31: error: Error: No resource found that matches the given name: attr 'android:actionModeShareDrawable'.

/home/gopinath/code/oss/MaterialEverywhere-master/app/build/intermediates/res/debug/values-v21/values.xml:246: error: Error: No resource found that matches the given name: attr 'android:overlapAnchor'.

/home/gopinath/code/oss/MaterialEverywhere-master/app/build/intermediates/res/debug/values-v21/values.xml:254: error: Error: No resource found that matches the given name: attr 'android:overlapAnchor'.

:app:processDebugResources FAILED

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ':app:processDebugResources'.

    com.android.ide.common.internal.LoggedErrorException: Failed to run command:
    /home/gopinath/devtools/android-studio/sdk/build-tools/21.1.1/aapt package -f --no-crunch -I /home/gopinath/devtools/android-studio/sdk/platforms/android-21/android.jar -M /home/gopinath/code/oss/MaterialEverywhere-master/app/build/intermediates/manifests/full/debug/AndroidManifest.xml -S /home/gopinath/code/oss/MaterialEverywhere-master/app/build/intermediates/res/debug -A /home/gopinath/code/oss/MaterialEverywhere-master/app/build/intermediates/assets/debug -m -J /home/gopinath/code/oss/MaterialEverywhere-master/app/build/generated/source/r/debug -F /home/gopinath/code/oss/MaterialEverywhere-master/app/build/intermediates/res/resources-debug.ap_ --debug-mode --custom-package com.antonioleiva.materialeverywhere -0 apk --output-text-symbols /home/gopinath/code/oss/MaterialEverywhere-master/app/build/intermediates/symbols/debug
    Error Code:
    1
    Output:
    /home/gopinath/code/oss/MaterialEverywhere-master/app/build/intermediates/res/debug/values-v21/values.xml:8: error: Error: No resource found that matches the given name: attr 'android:windowAllowReturnTransitionOverlap'.

    /home/gopinath/code/oss/MaterialEverywhere-master/app/build/intermediates/res/debug/values-v11/values.xml:33: error: Error: No resource found that matches the given name: attr 'android:actionModeShareDrawable'.

    /home/gopinath/code/oss/MaterialEverywhere-master/app/build/intermediates/res/debug/values-v14/values.xml:10: error: Error: No resource found that matches the given name: attr 'android:actionModeShareDrawable'.

    /home/gopinath/code/oss/MaterialEverywhere-master/app/build/intermediates/res/debug/values-v11/values.xml:39: error: Error: No resource found that matches the given name: attr 'android:actionModeShareDrawable'.

    /home/gopinath/code/oss/MaterialEverywhere-master/app/build/intermediates/res/debug/values-v14/values.xml:17: error: Error: No resource found that matches the given name: attr 'android:actionModeShareDrawable'.

    /home/gopinath/code/oss/MaterialEverywhere-master/app/build/intermediates/res/debug/values-v11/values.xml:45: error: Error: No resource found that matches the given name: attr 'android:actionModeShareDrawable'.

    /home/gopinath/code/oss/MaterialEverywhere-master/app/build/intermediates/res/debug/values-v14/values.xml:24: error: Error: No resource found that matches the given name: attr 'android:actionModeShareDrawable'.

    /home/gopinath/code/oss/MaterialEverywhere-master/app/build/intermediates/res/debug/values-v11/values.xml:51: error: Error: No resource found that matches the given name: attr 'android:actionModeShareDrawable'.

    /home/gopinath/code/oss/MaterialEverywhere-master/app/build/intermediates/res/debug/values-v14/values.xml:31: error: Error: No resource found that matches the given name: attr 'android:actionModeShareDrawable'.

    /home/gopinath/code/oss/MaterialEverywhere-master/app/build/intermediates/res/debug/values-v21/values.xml:246: error: Error: No resource found that matches the given name: attr 'android:overlapAnchor'.

    /home/gopinath/code/oss/MaterialEverywhere-master/app/build/intermediates/res/debug/values-v21/values.xml:254: error: Error: No resource found that matches the given name: attr 'android:overlapAnchor'.

  • Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

BUILD FAILED

Material Design doesn't show up on JellyBean

I have followed your tutorial step by step but the new material design doesn't show up on Pre-Lollipop devices. I even tried to make a few modifications myself but still it wouldn't color the status bar and ActionBar. It works only colors Toolbar.

If I don't use the ToolBar & don't extend ActoinBarActivity, I get a blank black/white screen depending on which theme dark or light you have chosen with no ActionBar.

What am I missing? I am using eclipse on OSX Mavericks.

Transition name mislead

It's confusing that you use EXTRA_IMAGE as an intent extra (https://github.com/antoniolg/MaterialEverywhere/blob/master/app/src/main/java/com/antonioleiva/materialeverywhere/DetailActivity.java#L74),
but also as a transition name between views (https://github.com/antoniolg/MaterialEverywhere/blob/master/app/src/main/java/com/antonioleiva/materialeverywhere/DetailActivity.java#L72).
More confusing is that the ImageView in DetailActivity has a transition name defined (https://github.com/antoniolg/MaterialEverywhere/blob/master/app/src/main/res/layout/activity_detail.xml#L32),
but later overridden with EXTRA_IMAGE (https://github.com/antoniolg/MaterialEverywhere/blob/master/app/src/main/java/com/antonioleiva/materialeverywhere/DetailActivity.java#L41).

It would be clearer if the transition name defined in the layout is the same that is used in ActivityOptionsCompat.makeSceneTransitionAnimation call. Then there's no need to call ViewCompat.setTransitionName. Even better, that transition name can be a string resource.

How to change color theme to light?

If I just change Theme.AppCompat to Theme.AppCompat.Light in <style name="AppTheme.Base" parent="Theme.AppCompat.Light">
then colors are changed partially, and everything looks bad…

where is the Material design ?

device-2014-11-14-101624

  • No Animations.
  • No Transitions.
  • No Material design.

but
*We have a blank navigation drawer menu
*We have extra height action bar (huge action bar)

??????? :(

Missing gradle wrapper

Tried to build your project, but all I got is:

Error: Could not find or load main class org.gradle.wrapper.GradleWrapperMain

So basically you didn't include gradle wrapper ("gradle" directory) and it is something that sould be included in VCS.

Failure to import the sample app and launch it

I imported the project, but I don't see the ability to launch it.
The "messages" window shows me just this short message:

"Error:Android Source Generator: [app] AndroidManifest.xml file not found"

But I can see this file , so what's going on?

Can't build

After importing project I have following error:

Error:You are using an unsupported version of Gradle. Please use version 1.12.
Please point to a supported Gradle version in the project's Gradle settings or in the project's Gradle wrapper (if applicable.)

Is there something I can do?

A few questions about the toolbar...

I have a few questions regarding the toolbar (which acts as an actionbar) :

  1. How would you add the cool animations of the "up" button when being clicked?
  2. How would you make the navigation drawer to avoid being on top of the action bar ?
  3. How would you put it in PreferenceActivity (for pre-API11 versions), if you can't extend from PreferenceActivity (as you must extend from ActionBarActivity) ?
    You can't even use PreferenceFragment, as it's from API 11 and above... ?

Please help.

Empty drawer

Hi!
I just compiled this app on Android Studio and it's running fine excepted the navigation drawer which is empty. I checked the XML and there's a ListView so it should be nice to have data here.
XML is also missing android:fitsSystemWindows="true".

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.