New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to use a single library, just for "Material-Design" ? #2
Comments
There may be other things to do, you can have a try first. |
What do you mean by "replace the holo resources" ? copy the new files of the material library to the new one (overriding them when possible), or should I delete the whole content of the holo library and then copy? EDIT: both caused errors. |
You should't delete the whole content of the holo lib. It contains the core codes of the project. Only the resource files and a little code should be modified. |
I'm have issues even after I've carefully removed and merged the files as you've written. In my app (link here, BTW: https://play.google.com/store/apps/details?id=com.lb.app_manager ) , even though it seems to compile fine, for some reason I can't use it, as it tells me : Using the demo of the library, for some reason it can't import the library at all: Could it be an SDK bug? |
Can't open the link: https://drive.google.com/file/d/0B-PZZGk2vPohQzdxenBfUE44czA |
try again. |
Anyway, since I have too many issues, I've decided to avoid using the material library, but since the other one works, I decided to use it instead. |
I have downloaded your project and fixed it. Please follow the steps below:
Then it will work. |
After re-installing the SDK, and following what you've written, it worked. Also, did you remember to change the id as you've written? |
I tried to build it both in Android Studio and Eclipse. No exception occurred. I think it doesn't have "SDK problems".
Yes. |
Now that I think about it, seeing that you have ported the code directly from Android, I think you could have just used the original IDs of Android, and not create your own. |
Not all the IDs of Android are public. I think it's better to create my own IDs. |
Oh, I see. Ok. Thanks. On Sun, Oct 26, 2014 at 10:31 AM, Feng Dai notifications@github.com wrote:
|
I have separated holo theme resources and code from the core project. |
@fengdai what does it mean? |
The holo theme files have been moved to a individual module: alertdialogpro-theme-holo. Anyone who want material theme but don't want to contain the holo files can use "alertdialogpro-core + alertdialogpro-theme-material". |
@fengdai I see, so you won't end up with unused resources inside the app, just what you want to use. |
I developed the material theme base on the “preview” L code sometimes ago. It seems that Google made some changes when launched 5.0. I'm trying to let it match the official version's style. |
Nice. Thank you for your efforts. On Sun, Nov 2, 2014 at 12:05 PM, Feng Dai notifications@github.com wrote:
|
I use Android Studio, and let my project target SDK 21. Then, I can search and look at the lollipop's source code in Android Studio. |
How do you do it from withing Android Studio? is there a button for it? |
Wow cool. So you can perform a full search on the jar file,to find the function/class you wish to check out, for example? |
Since I am willing to use only the material design, is it possible to avoid using the rest of the files (of Holo) ?
Is it possible for me to merge the 2 libraries, and use a single one?
If so, please show all the steps I need to perform.
The text was updated successfully, but these errors were encountered: