Skip to content

Commit 959e1e7

Browse files
committed
Rename classes
1 parent 24e6f22 commit 959e1e7

File tree

5 files changed

+21
-21
lines changed

5 files changed

+21
-21
lines changed

android/src/main/java/com/ato/reactlibrary/ColorHueSatView.java renamed to android/src/main/java/com/ato/reactlibrary/RNColorHueSatView.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
import android.view.MotionEvent;
1212
import android.view.View;
1313

14-
public class ColorHueSatView extends View {
14+
public class RNColorHueSatView extends View {
1515
public static final int TILE_DEFAULT_COUNT = 20;
1616
public static final int TILE_GAP = 2;
1717
public static final int MARGIN = 10;
@@ -32,15 +32,15 @@ public class ColorHueSatView extends View {
3232

3333
private RNColorPanel mainColorPanel;
3434

35-
public ColorHueSatView(Context context) {
35+
public RNColorHueSatView(Context context) {
3636
this(context, null);
3737
}
3838

39-
public ColorHueSatView(Context context, AttributeSet attrs) {
39+
public RNColorHueSatView(Context context, AttributeSet attrs) {
4040
this(context, attrs, 0);
4141
}
4242

43-
public ColorHueSatView(Context context, AttributeSet attrs, int defStyle) {
43+
public RNColorHueSatView(Context context, AttributeSet attrs, int defStyle) {
4444
super(context, attrs, defStyle);
4545

4646
selectedPaint.setStyle(Paint.Style.STROKE);

android/src/main/java/com/ato/reactlibrary/RNColorPanel.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@
1414

1515
public class RNColorPanel extends LinearLayout {
1616

17-
public ColorHueSatView hueSatView;
18-
public ColorValView valView;
19-
public SelectedColorView selectedColorView;
17+
public RNColorHueSatView hueSatView;
18+
public RNColorValView valView;
19+
public RNSelectedColorView selectedColorView;
2020
public TextView rvalueTxt;
2121
public TextView gvalueTxt;
2222
public TextView bvalueTxt;
@@ -29,13 +29,13 @@ public RNColorPanel(Context context)
2929
View mainContentView = inflater.inflate(R.layout.color_select_layout, null);
3030
addView(mainContentView);
3131

32-
hueSatView = (ColorHueSatView)mainContentView.findViewById(R.id.color_huesat_view);
32+
hueSatView = (RNColorHueSatView)mainContentView.findViewById(R.id.color_huesat_view);
3333
hueSatView.setMainPanel(this);
3434

35-
valView = (ColorValView)mainContentView.findViewById(R.id.color_val_view);
35+
valView = (RNColorValView)mainContentView.findViewById(R.id.color_val_view);
3636
valView.setMainPanel(this);
3737

38-
selectedColorView = (SelectedColorView)mainContentView.findViewById(R.id.selected_color_view);
38+
selectedColorView = (RNSelectedColorView)mainContentView.findViewById(R.id.selected_color_view);
3939
selectedColorView.setMainPanel(this);
4040

4141
rvalueTxt = (TextView)mainContentView.findViewById(R.id.rvalue_txt);

android/src/main/java/com/ato/reactlibrary/ColorValView.java renamed to android/src/main/java/com/ato/reactlibrary/RNColorValView.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
import android.view.MotionEvent;
1313
import android.view.View;
1414

15-
public class ColorValView extends View {
15+
public class RNColorValView extends View {
1616
public static final int MARGIN_TOP = 5;
1717
public static final int MARGIN_BOTTOM = 5;
1818
public static final int MARGIN_LEFT = 15;
@@ -28,15 +28,15 @@ public class ColorValView extends View {
2828

2929
private RNColorPanel mainColorPanel;
3030

31-
public ColorValView(Context context) {
31+
public RNColorValView(Context context) {
3232
this(context, null);
3333
}
3434

35-
public ColorValView(Context context, AttributeSet attrs) {
35+
public RNColorValView(Context context, AttributeSet attrs) {
3636
this(context, attrs, 0);
3737
}
3838

39-
public ColorValView(Context context, AttributeSet attrs, int defStyle) {
39+
public RNColorValView(Context context, AttributeSet attrs, int defStyle) {
4040
super(context, attrs, defStyle);
4141

4242
hsv[0] = 0.f;

android/src/main/java/com/ato/reactlibrary/SelectedColorView.java renamed to android/src/main/java/com/ato/reactlibrary/RNSelectedColorView.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
import android.util.AttributeSet;
99
import android.view.View;
1010

11-
public class SelectedColorView extends View {
11+
public class RNSelectedColorView extends View {
1212
public static final int MARGIN = 5;
1313

1414
private float[] hsv = {0.f, 1.f, 1.f};
@@ -17,15 +17,15 @@ public class SelectedColorView extends View {
1717

1818
private RNColorPanel mainColorPanel;
1919

20-
public SelectedColorView(Context context) {
20+
public RNSelectedColorView(Context context) {
2121
this(context, null);
2222
}
2323

24-
public SelectedColorView(Context context, AttributeSet attrs) {
24+
public RNSelectedColorView(Context context, AttributeSet attrs) {
2525
this(context, attrs, 0);
2626
}
2727

28-
public SelectedColorView(Context context, AttributeSet attrs, int defStyle) {
28+
public RNSelectedColorView(Context context, AttributeSet attrs, int defStyle) {
2929
super(context, attrs, defStyle);
3030

3131
paint.setStyle(Paint.Style.FILL);

android/src/main/res/layout/color_select_layout.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
android:layout_height="70dp"
2222
android:gravity="center_vertical">
2323

24-
<com.ato.reactlibrary.SelectedColorView
24+
<com.ato.reactlibrary.RNSelectedColorView
2525
android:id="@+id/selected_color_view"
2626
android:layout_marginTop="10dp"
2727
android:layout_marginBottom="15dp"
@@ -56,7 +56,7 @@
5656

5757
</LinearLayout>
5858

59-
<com.ato.reactlibrary.ColorValView
59+
<com.ato.reactlibrary.RNColorValView
6060
android:id="@+id/color_val_view"
6161
android:layout_width="match_parent"
6262
android:layout_height="50dp"
@@ -65,7 +65,7 @@
6565
android:layout_toRightOf="@id/view_container2"/>
6666
</RelativeLayout>
6767

68-
<com.ato.reactlibrary.ColorHueSatView
68+
<com.ato.reactlibrary.RNColorHueSatView
6969
android:id="@+id/color_huesat_view"
7070
android:layout_width="match_parent"
7171
android:layout_height="match_parent"

0 commit comments

Comments
 (0)