Skip to content

Commit

Permalink
renamed attr to prevent conflict
Browse files Browse the repository at this point in the history
  • Loading branch information
mariotaku committed Mar 19, 2015
1 parent a407df1 commit 30dd3c3
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,8 @@ public ColorView(final Context context, final AttributeSet attrs, final int defS
final Bitmap bitmap = Utils.getAlphaPatternBitmap(Math.round(getResources().getDisplayMetrics().density * 8));
mAlphaPatternPaint = new Paint(Paint.ANTI_ALIAS_FLAG);
mAlphaPatternPaint.setShader(new BitmapShader(bitmap, TileMode.REPEAT, TileMode.REPEAT));
mRadius = a.getDimension(R.styleable.ColorView_cornerRadius, 0);
ViewCompat.setElevation(this, a.getDimension(R.styleable.ColorView_viewElevation, 0));
mRadius = a.getDimension(R.styleable.ColorView_cp_cornerRadius, 0);
ViewCompat.setElevation(this, a.getDimension(R.styleable.ColorView_cp_elevation, 0));
a.recycle();
if (VERSION.SDK_INT >= VERSION_CODES.LOLLIPOP) {
Internal.setOutlineProvider(this);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,6 @@
android:layout_alignParentBottom="true"
android:layout_alignParentTop="true"
android:padding="8dp"
app:cornerRadius="2dp"/>
app:cp_cornerRadius="2dp"/>

</me.uucky.colorpicker.internal.SquareRelativeLayout>
4 changes: 2 additions & 2 deletions library/src/main/res/layout/cp__dialog_color_picker.xml
Original file line number Diff line number Diff line change
Expand Up @@ -60,14 +60,14 @@
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_marginRight="16dp"
app:cornerRadius="2dp"/>
app:cp_cornerRadius="2dp"/>

<me.uucky.colorpicker.internal.ColorView
android:id="@+id/new_color"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_gravity="right"
app:cornerRadius="2dp"/>
app:cp_cornerRadius="2dp"/>
</FrameLayout>
</LinearLayout>

Expand Down
4 changes: 2 additions & 2 deletions library/src/main/res/values/attrs.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<declare-styleable name="ColorView">
<attr name="cornerRadius" format="dimension"/>
<attr name="viewElevation" format="dimension"/>
<attr name="cp_cornerRadius" format="dimension"/>
<attr name="cp_elevation" format="dimension"/>
</declare-styleable>
</resources>

0 comments on commit 30dd3c3

Please sign in to comment.