antoniolg / materialeverywhere Goto Github PK
View Code? Open in Web Editor NEWShowcase of the new AppCompat 21, which includes new Material Theme, working in pre-21 devices.
Showcase of the new AppCompat 21, which includes new Material Theme, working in pre-21 devices.
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.
I have a few questions regarding the toolbar (which acts as an actionbar) :
Please help.
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.
do you know how i can solve this?
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?
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
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".
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.
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?
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…
Question: should Drawer convert to left panel on tablet devices?
I hope for behavior like this:
into
ref 1
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.