Skip to content

Commit

Permalink
Added Licence stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
Plumillon committed Oct 13, 2015
1 parent 2149f6b commit 00beb69
Show file tree
Hide file tree
Showing 6 changed files with 71 additions and 8 deletions.
2 changes: 1 addition & 1 deletion LICENCE
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@

END OF TERMS AND CONDITIONS

Copyright 2015 Flavien Norindr
Copyright 2015 Flavien Norindr (aka Plumillon Forge)

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,13 @@

import android.content.Context;
import android.view.View;
import android.widget.TextView;

import com.plumillonforge.android.chipview.Chip;
import com.plumillonforge.android.chipview.ChipViewAdapter;

/**
* Created by Flavien on 09/10/15.
* Created by Plumillon Forge on 09/10/15.
*/
public class MainChipViewAdapter extends ChipViewAdapter {
public MainChipViewAdapter(Context context) {
Expand Down Expand Up @@ -66,6 +67,9 @@ public int getBackgroundRes(int position) {

@Override
public void onLayout(View view, int position) {
Tag tag = (Tag) getChip(position);

if (tag.getType() == 2)
((TextView) view.findViewById(android.R.id.text1)).setTextColor(getColor(R.color.blue));
}
}
Original file line number Diff line number Diff line change
@@ -1,8 +1,20 @@
package com.plumillonforge.android.chipview;
/*
Copyright 2015 Flavien Norindr (aka Plumillon Forge)
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
import android.content.Context;
import android.os.Parcelable;
import android.view.View;
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/

package com.plumillonforge.android.chipview;

/**
* Created by Plumillon Forge on 17/09/15.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
/*
Copyright 2015 Flavien Norindr (aka Plumillon Forge)
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/

package com.plumillonforge.android.chipview;

import android.content.Context;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
/*
Copyright 2015 Flavien Norindr (aka Plumillon Forge)
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/

package com.plumillonforge.android.chipview;

import android.content.Context;
Expand All @@ -22,7 +38,6 @@
import java.util.ArrayList;
import java.util.List;
import java.util.Observable;
import java.util.zip.Inflater;

/**
* Created by Plumillon Forge on 09/10/15.
Expand Down Expand Up @@ -100,7 +115,7 @@ public View getView(ViewGroup parent, int position) {
View view = null;
Chip chip = getChip(position);

if(chip != null) {
if (chip != null) {
int chipLayoutRes = (getLayoutRes(position) != 0 ? getLayoutRes(position) : getChipLayoutRes());
Drawable chipBackground = generateBackgroundSelector(position);

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
/*
Copyright 2015 Flavien Norindr (aka Plumillon Forge)
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/

package com.plumillonforge.android.chipview;

/**
Expand Down

0 comments on commit 00beb69

Please sign in to comment.