Giter VIP home page Giter VIP logo

materialdesignlibrary's Introduction

Material design library logo

Material Design Android Library

Android app on Google Play

Android Arsenal

How to use

If you want use this library, you only have to download MaterialDesign project, import it into your workspace and add the project as a library in your android project settings.

If you prefer it, you can use the gradle dependency, you have to add these lines in your build.gradle file:

repositories {
    jcenter()
}

dependencies {
    compile 'com.github.navasmdc:MaterialDesign:1.5@aar'
}

Some components have custom attributes, if you want use them, you must add this line in your xml file in the first component:

<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:materialdesign="http://schemas.android.com/apk/res-auto"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    >
</RelativeLayout>

If you are going to use a ScrollView, it is recommended that you use the CustomScrollView provided in this library to avoid problems with the custom components. To use this component:

<com.gc.materialdesign.views.ScrollView 
   xmlns:android="http://schemas.android.com/apk/res/android"
   xmlns:materialdesign="http://schemas.android.com/apk/res-auto"
   android:id="@+id/scroll"
   android:layout_width="match_parent"
   android:layout_height="match_parent">
</com.gc.materialdesign.views.ScrollView>

##Components

####Buttons

######Flat Button

flat button

<com.gc.materialdesign.views.ButtonFlat
                android:id="@+id/buttonflat"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:background="#1E88E5"
                android:text="Button" />

######Rectangle Button

rectangle button

<com.gc.materialdesign.views.ButtonRectangle
                android:id="@+id/button"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:background="#1E88E5"
                android:text="Button" />

######Float Button

float button

It is recommended to put this component in the right-bottom of the screen. To use this component write this code in your xml file. If you don`t want to start this component with animation set the animate attribute to false. Put your icon in the icon attribute to set the drawable icon for this component.

<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:materialdesign="http://schemas.android.com/apk/res-auto"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    >
    <!-- ... XML CODE -->
    <com.gc.materialdesign.views.ButtonFloat
                android:id="@+id/buttonFloat"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_alignParentRight="true"
                android:layout_alignParentBottom="true"
                android:layout_marginRight="24dp"
                android:background="#1E88E5"
                materialdesign:animate="true"
                materialdesign:iconDrawable="@drawable/ic_action_new" />
</RelativeLayout>

######Float small button

float small button

<com.gc.materialdesign.views.ButtonFloatSmall
                android:id="@+id/buttonFloatSmall"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:background="#1E88E5"
                materialdesign:iconDrawable="@drawable/ic_action_new" />

####Switches

######CheckBox checkbox

<com.gc.materialdesign.views.CheckBox
                android:id="@+id/checkBox"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:background="#1E88E5"
                materialdesign:check="true" />

######Switch switch

<com.gc.materialdesign.views.Switch
                android:id="@+id/switchView"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:background="#1E88E5"
                materialdesign:check="true" />

####Progress indicators

######Progress bar circular indeterminate progress bar circular indeterminate

<com.gc.materialdesign.views.ProgressBarCircularIndeterminate
                android:id="@+id/progressBarCircularIndeterminate"
                android:layout_width="32dp"
                android:layout_height="32dp"
                android:background="#1E88E5" />

######Progress bar indeterminate progress bar indeterminate

<com.gc.materialdesign.views.ProgressBarIndeterminate
                android:id="@+id/progressBarIndeterminate"
                android:layout_width="fill_parent"
                android:layout_height="wrap_content"
                android:background="#1E88E5" />

######Progress bar indeterminate determinate Progress bar indeterminate determinate

<com.gc.materialdesign.views.ProgressBarIndeterminateDeterminate
                android:id="@+id/progressBarIndeterminateDeterminate"
                android:layout_width="fill_parent"
                android:layout_height="wrap_content"
                android:background="#1E88E5" />

If you begin progrees, you only have to set progress it

progressBarIndeterminateDeterminate.setProgress(progress);

######Progress bar determinate Progress bar determinate

<com.gc.materialdesign.views.ProgressBarDeterminate
                android:id="@+id/progressDeterminate"
                android:layout_width="fill_parent"
                android:layout_height="wrap_content"
                android:background="#1E88E5" />

You can custom max and min progress values with materialdesign:max="50" and materialdesign:min="25" attributes.

######Slider Slider

<com.gc.materialdesign.views.Slider
                android:id="@+id/slider"
                android:layout_width="fill_parent"
                android:layout_height="wrap_content"
                android:background="#1E88E5"
                materialdesign:max="50"
                materialdesign:min="0"
                 />

######Slider with number indicator Slider with number indicator

<com.gc.materialdesign.views.Slider
                android:id="@+id/slider"
                android:layout_width="fill_parent"
                android:layout_height="wrap_content"
                android:background="#1E88E5"
                materialdesign:max="50"
                materialdesign:min="0"
                materialdesign:showNumberIndicator="true"/>

##Widgets

####SnackBar

Snackbar

SnackBar snackbar = new SnackBar(Activity activity, String text, String buttonText, View.OnClickListener onClickListener);
snackbar.show();

If you don't want to show the button, put null in buttonText attribute

####Dialog

Dialog

Dialog dialog = new Dialog(Context context,String title, String message);
dialog.show();

You can set the accept and cancel button on the event listener or change it's text

// Set accept click listenner
dialog.setOnAcceptButtonClickListener(View.OnClickListener onAcceptButtonClickListener);
// Set cancel click listenner
dialog.setOnCancelButtonClickListener(View.OnClickListener onCancelButtonClickListener);
// Acces to accept button
ButtonFlat acceptButton = dialog.getButtonAccept();
// Acces to cancel button
ButtonFlat cancelButton = dialog.getButtonCancel();

####Color selector

Color selector

ColorSelector colorSelector = new ColorSelector(Context context,int intialColor, OnColorSelectedListener onColorSelectedListener);
colorSelector.show();

materialdesignlibrary's People

Contributors

2hamed avatar cesarizu avatar igio90 avatar laeyoung avatar navasmdc avatar yhsj0919 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  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

materialdesignlibrary's Issues

how to handle checkbox programmatically

how can we check materialdesign:check="true" for material design checkbox programmatically ?
as we normally do public void onClick(View v) {

if (((CheckBox) v).isChecked()) {

}

i can not even catch the click :(

Changing ButtonFloat icon Pragmatically

Is it possible to change the ButtonFloat Icon Pragmatically? if so, can you share an example. I have attempted but keep getting errors. If not would you be able to implement it. Cheers!

Graphic problem

They have a graphic problem if we slide out of a row in LayoutRipple

screenshot_2014-12-04-17-28-33

The correction :
In RippleView.java

else if (event.getAction() == MotionEvent.ACTION_UP ) {
...
}

become

else if (event.getAction() == MotionEvent.ACTION_UP || event.getAction() == MotionEvent.ACTION_CANCEL) {

}

Issue with checkbox and onTouchEvent

My app have list of Cards with custom layout. One of the views is your Checkbox. And I have a strange issue: if I press the Checkbox and remove finger only after move it off the Checkbox, then the circle background around the Checkbox stays on. This doesn't happen if I remove the finger on the Checkbox. I think it may interfere with List onTouchEvent. For me, I fix this by modify your CheckBox.java in this part:

@Override
public boolean onTouchEvent(MotionEvent event)
{
    isLastTouch = true;
    if (event.getAction() == MotionEvent.ACTION_DOWN)
    {
        changeBackgroundColor((check) ? makePressColor() : Color.parseColor("#446D6D6D"));
    } else if ((event.getAction() == MotionEvent.ACTION_UP)
            | (event.getAction() == MotionEvent.ACTION_CANCEL))
    {
        changeBackgroundColor(getResources().getColor(android.R.color.transparent));
        press = false;
        if ((event.getX() <= getWidth() && event.getX() >= 0)
                && (event.getY() <= getHeight() && event.getY() >= 0))
        {
            isLastTouch = false;
            check = !check;
            if (onCheckListener != null)
                onCheckListener.onCheck(check);
            if (check)
            {
                step = 0;
            }
            if (check)
                checkView.changeBackground();
        }
    }
    return true;
}

So I've just modify this part:

else if ((event.getAction() == MotionEvent.ACTION_UP)
            | (event.getAction() == MotionEvent.ACTION_CANCEL))

Thank you for your library and sorry for my English :)

CheckBox request for oncheck Listeners

Right now Checkbox all it does is set a view to the empty box and animate it , but can we some how get listeners for when it is checked or if the check is drawn

crash, when hit "Buttons" in MaterialDesignDemo

12-01 15:12:20.869: E/dalvikvm(3434): GC_FOR_ALLOC freed 1333K, 19% free 9299K/11427K, paused 2ms+2ms
12-01 15:12:21.029: E/dalvikvm(3434): GC_FOR_ALLOC freed 1446K, 22% free 9296K/11811K, paused 3ms+2ms
12-01 15:12:21.179: E/dalvikvm(3434): GC_FOR_ALLOC freed 1443K, 22% free 9296K/11811K, paused 3ms+2ms
12-01 15:12:21.319: W/dalvikvm(3434): VFY: unable to resolve virtual method 7976: Lcom/gc/materialdesign/views/ButtonIcon;.setBackground (Landroid/graphics/drawable/Drawable;)V
12-01 15:12:21.339: E/dalvikvm(3434): GC_FOR_ALLOC freed 425K, 21% free 9409K/11811K, paused 1ms+2ms
12-01 15:12:21.369: W/dalvikvm(3434): threadid=1: thread exiting with uncaught exception (group=0x40c8c1f8)
12-01 15:12:21.379: E/AndroidRuntime(3434): FATAL EXCEPTION: main
12-01 15:12:21.379: E/AndroidRuntime(3434): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.gc.materialdesigndemo/com.gc.materialdesigndemo.ui.ButtonsActivity}: android.view.InflateException: Binary XML file line #138: Error inflating class com.gc.materialdesign.views.ButtonIcon
12-01 15:12:21.379: E/AndroidRuntime(3434): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1956)
12-01 15:12:21.379: E/AndroidRuntime(3434): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1981)
12-01 15:12:21.379: E/AndroidRuntime(3434): at android.app.ActivityThread.access$600(ActivityThread.java:123)
12-01 15:12:21.379: E/AndroidRuntime(3434): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1147)
12-01 15:12:21.379: E/AndroidRuntime(3434): at android.os.Handler.dispatchMessage(Handler.java:99)
12-01 15:12:21.379: E/AndroidRuntime(3434): at android.os.Looper.loop(Looper.java:137)
12-01 15:12:21.379: E/AndroidRuntime(3434): at android.app.ActivityThread.main(ActivityThread.java:4424)
12-01 15:12:21.379: E/AndroidRuntime(3434): at java.lang.reflect.Method.invokeNative(Native Method)
12-01 15:12:21.379: E/AndroidRuntime(3434): at java.lang.reflect.Method.invoke(Method.java:511)
12-01 15:12:21.379: E/AndroidRuntime(3434): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:787)
12-01 15:12:21.379: E/AndroidRuntime(3434): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:554)
12-01 15:12:21.379: E/AndroidRuntime(3434): at dalvik.system.NativeStart.main(Native Method)
12-01 15:12:21.379: E/AndroidRuntime(3434): Caused by: android.view.InflateException: Binary XML file line #138: Error inflating class com.gc.materialdesign.views.ButtonIcon
12-01 15:12:21.379: E/AndroidRuntime(3434): at android.view.LayoutInflater.createView(LayoutInflater.java:606)
12-01 15:12:21.379: E/AndroidRuntime(3434): at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:680)
12-01 15:12:21.379: E/AndroidRuntime(3434): at android.view.LayoutInflater.rInflate(LayoutInflater.java:739)
12-01 15:12:21.379: E/AndroidRuntime(3434): at android.view.LayoutInflater.rInflate(LayoutInflater.java:742)
12-01 15:12:21.379: E/AndroidRuntime(3434): at android.view.LayoutInflater.rInflate(LayoutInflater.java:742)
12-01 15:12:21.379: E/AndroidRuntime(3434): at android.view.LayoutInflater.rInflate(LayoutInflater.java:742)
12-01 15:12:21.379: E/AndroidRuntime(3434): at android.view.LayoutInflater.inflate(LayoutInflater.java:489)
12-01 15:12:21.379: E/AndroidRuntime(3434): at android.view.LayoutInflater.inflate(LayoutInflater.java:396)
12-01 15:12:21.379: E/AndroidRuntime(3434): at android.view.LayoutInflater.inflate(LayoutInflater.java:352)
12-01 15:12:21.379: E/AndroidRuntime(3434): at com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.java:251)
12-01 15:12:21.379: E/AndroidRuntime(3434): at android.app.Activity.setContentView(Activity.java:1835)
12-01 15:12:21.379: E/AndroidRuntime(3434): at com.gc.materialdesigndemo.ui.ButtonsActivity.onCreate(ButtonsActivity.java:32)
12-01 15:12:21.379: E/AndroidRuntime(3434): at android.app.Activity.performCreate(Activity.java:4465)
12-01 15:12:21.379: E/AndroidRuntime(3434): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1049)
12-01 15:12:21.379: E/AndroidRuntime(3434): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1920)
12-01 15:12:21.379: E/AndroidRuntime(3434): ... 11 more
12-01 15:12:21.379: E/AndroidRuntime(3434): Caused by: java.lang.reflect.InvocationTargetException
12-01 15:12:21.379: E/AndroidRuntime(3434): at java.lang.reflect.Constructor.constructNative(Native Method)
12-01 15:12:21.379: E/AndroidRuntime(3434): at java.lang.reflect.Constructor.newInstance(Constructor.java:417)
12-01 15:12:21.379: E/AndroidRuntime(3434): at android.view.LayoutInflater.createView(LayoutInflater.java:586)
12-01 15:12:21.379: E/AndroidRuntime(3434): ... 25 more
12-01 15:12:21.379: E/AndroidRuntime(3434): Caused by: java.lang.NoSuchMethodError: com.gc.materialdesign.views.ButtonIcon.setBackground
12-01 15:12:21.379: E/AndroidRuntime(3434): at com.gc.materialdesign.views.ButtonIcon.(ButtonIcon.java:18)
12-01 15:12:21.379: E/AndroidRuntime(3434): ... 28 more

a Dialog bug

在实例化Dialog时,传入的Title 和 message 没有被使用!

ButtonRectangle not worked with style

Hi thanks for your librairie

This is working
<com.gc.materialdesign.views.ButtonRectangle
style="@style/button_rounded_main"
android:background="@color/strong_yellow"
android:text="@string/connexion"/>

This is not working :

<com.gc.materialdesign.views.ButtonRectangle
style="@style/button_rounded_main"
android:text="@string/connexion"/>

<style name="button_rounded_main"> ... @color/strong_yellow </style>

This is not working :
<com.gc.materialdesign.views.ButtonRectangle
style="@style/button_rounded_main"
android:background="?color_composant_main"
android:text="@string/connexion"/>

Thank you for you library

MaterialDesign icon not show in ButtonFloat and ButtonFloatSmall

ButtonFloat and ButtonFloatSmall don't show materialdesign:icon.
Platform: Eclipse and ADT (last versions)

Code:

<com.gc.materialdesign.views.ButtonFloat
                android:id="@+id/buttonFloat"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_alignParentRight="true"
                android:layout_alignParentBottom="true"
                android:layout_marginRight="24dp"
                android:background="#1E88E5"
                materialdesign:animate="true"
                materialdesign:icon="@drawable/ic_action_new" />

            <com.gc.materialdesign.views.ButtonFloatSmall
                android:id="@+id/buttonFloatSmall"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_below="@id/flatButton"
                android:layout_centerHorizontal="true"
                android:background="#1E88E5"
                materialdesign:icon="@drawable/ic_action_new" />

I attach a screenshot.
screenshot_2014-11-17-19-35-59

Disabling buttons

Buttons cannot be disabled!
Could you please fix it?

Thanks in advance.

Slider's numberIndicator position bug

You'll find the numberIndicator of the slider is in error position when you put the slider in scrollView.When you scroll the parent view,the getRelativeTop() is not real location.

Utils.class

public static int getRelativeTop(View myView) {
    myView.getParent().requestLayout();
    if(myView.getId() == android.R.id.content)
        return myView.getTop();
    else
        return myView.getTop() + getRelativeTop((View)myView.getParent());
}

Using library with AppCompat

Correct me if I'm wrong but we can't use this library along with the AppCompat, right?

I got some dupe attribute error and I suspect this won't be the only one:

Error:Attribute "icon" has already been defined

Changing the Typeface to the buttons.

Suggest allowing users to change the typeface to custom fonts for the buttons. The current text is quite large and wont match most application fonts. Great library and look forward to updates!!

Can't import library to Android studio

I do the import of MaterialDesignLibrary/AndroidStudio/MaterialDesign/app/ (btw why did you do such a horrid nested structure. It would be sufficent for the module to just under AndroidStudio).
My settings.graddle look like this then:

project(':material-design-library').projectDir = new File('MaterialDesignLibrary/AndroidStudio/MaterialDesign/app')

It compiles but when I try to build:

'Error:Execution failed for task ':client:packageV4Debug'.

Duplicate files copied in APK AndroidManifest.xml
File 1: /Users/jacek/Documents/Owl/client/build/intermediates/res/resources-v4-debug.ap_
File 2: /Users/jacek/Documents/Owl/client/build/intermediates/res/resources-v4-debug.ap_'

It also creates unwanted launch configuration which keeps comming back after deleting

Can't use it with app compat library?

I am trying to add it in an app which is using android support library but it is giving me an error "attribute already exists". Can you please suggest me anyway I can get through this problem?.

P.S thanks for writing this amazing library 👍

Actions

Why the Buttons and FloatingButton is too late when i click on it ?!?!
I searched about it on the class, but didn't find the reasons

Switch not responding to isCheck()

so i have a switch from your library with controls the start and stop of a service. My code works for a normal switch but when i use it for your library it does start my service at all. i have changed the code from 'isChecked()' to 'isCheck()' also and have also tried '((switch.isCheck())==true)' but still no result

            <com.gc.materialdesign.views.Switch
            android:id="@+id/switchService"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            materialdesign:check="true" />

           service = (Switch) rootView.findViewById(R.id.switchService);
           if (isMyServiceRunning()) {
        service.setChecked(true);
    } else {
        service.setChecked(false);
    }
    service.setOnClickListener(new View.OnClickListener() {

        @Override
        public void onClick(View v) {
            // TODO Auto-generated method stub

            if (service.isCheck()) {
                Intent i = new Intent(getActivity().getBaseContext(),
                        LockerService.class);
                getActivity().startService(i);
                Toast.makeText(getActivity().getApplicationContext(),
                        "Lock Enabled", Toast.LENGTH_LONG).show();

            } else {
                Intent i = new Intent(getActivity().getBaseContext(),
                        LockerService.class);
                getActivity().stopService(i);
                Toast.makeText(getActivity().getApplicationContext(),
                        "Lock Disabled", Toast.LENGTH_LONG).show();

            }

        }
    });

Snackbar not compile with the guidelines

http://www.google.com/design/spec/components/snackbars-and-toasts.html#snackbars-and-toasts-usage

They are above all over elements on screen, including the floating action button.
They automatically disappear after a timeout or after user interaction elsewhere on the screen, whichever comes first. Snackbars can be swiped off screen. They do not block input on the screens they appear on and cannot receive input focus. Show only one snackbar on screen at a time.

As you can see, there are 2 things that you miss in your implementions:

  1. hide after user interaction. In the current implemention it stays after touch.
  2. Push up the floating button. I think you should provide an extra constructor with floating button, so you can push it up on showing and push it down on hiding.

Snackbar crash

Hi,

I get a crash when using snackbar.
The error happens parsing the color #333, at the following line code of SnackBar class:

int backgroundSnackBar = Color.parseColor("#333");

Regards.

[feature suggest] multi select slider like

I was thinking about a view with a spinner look, that is working like a number of checkboxes, but it is one view. How does it should look?
img
Every white dot (is bigger) is like a independent checkbox.
Can you please add something like this?

Error on import the libray on Android Studio 0.9

Hi.

When Import the library on AS 0.9 is trowing this error.
Error:(40) No resource identifier found for attribute 'icon' in package 'com.gc.materialdesign'
i'm checking and everything is ok!.

Nice Project!
Thanks you

Import project to Android Studio

Good morning to You,

I cant import this project. I try everythink that i thought will work. Browse through stackoverflow, multiple google pages and still i am stuck.

Can anyone tell me how to import this lib to my project ?

I use Android Studio 1.0 RC 4.

error: Error parsing XML: unbound prefix

Hi. I have a series of problems at the time of use the element of Android L; in specifically the error: "Error parsing XML: unbound prefix Material Design Android Library" in my views. sorry for my bad english.

error parsing xml unbound prefix

How do we get the value for the slider?

im trying to load the slider in a dialog,but i cant seem to find how to get the value from the slider. ive tried using the setOnValueChangedListener but that keeps throwing a null pointer exception. how would i solve this problem and get the value from a slider

Gradle : Attribute Icon is already defined

materialDesign\build\intermediates\res\release\values\values.xml:91: error: Attribute "icon" has already been defined

What can i do to overcome this , already tried old Manifest merger true and also tools:replace neither work

Im using ABS in my base project

Conflict with viewpageindication 2.4.1

Hi,

When trying to use the library in a project that has the view page indicator ( Jake Wharton - http://viewpagerindicator.com/ ) you get a compilation problem:

Error:Execution failed for task ':app:processDebugResources'.

com.android.ide.common.internal.LoggedErrorException: Failed to run command:

C:\Android\sdk\build-tools\21.0.2\aapt.exe package -f --no-crunch -I C:\Android\sdk\platforms\android-21\android.jar -M

Error Code:
1
Output:
\app\build\intermediates\res\debug\values\values.xml:141: error: Attribute "icon" has already been defined

I assume you are using a name that's somehow already defined in the aar by Jake Wharton

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.