Skip to content
This repository was archived by the owner on May 14, 2021. It is now read-only.

Commit 0b69ce4

Browse files
authored
Merge pull request #15 from kinecosystem/attr_prefix_rename
Give all the attributes a new prefix
2 parents 717d36c + 2eb1087 commit 0b69ce4

File tree

5 files changed

+15
-15
lines changed

5 files changed

+15
-15
lines changed

kin-devplatform-sdk/src/main/java/kin/devplatform/balance/view/BalanceView.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ private void init(Context context, @Nullable AttributeSet attrs) {
8181
.obtainStyledAttributes(attrs, R.styleable.KinEcosystemBalanceView, 0, 0);
8282
String subtitle;
8383
try {
84-
subtitle = styledAttributes.getString(R.styleable.KinEcosystemBalanceView_subTitle);
84+
subtitle = styledAttributes.getString(R.styleable.KinEcosystemBalanceView_kinEcosystemSubTitle);
8585

8686
} finally {
8787
styledAttributes.recycle();

kin-devplatform-sdk/src/main/java/kin/devplatform/history/view/KinDashView.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,11 @@ public KinDashView(Context context, AttributeSet attrs) {
2525
.obtainStyledAttributes(attrs, R.styleable.KinEcosystemDashView, 0, 0);
2626

2727
try {
28-
dashGap = styledAttributes.getDimensionPixelSize(R.styleable.KinEcosystemDashView_dashGap, 5);
29-
dashLength = styledAttributes.getDimensionPixelSize(R.styleable.KinEcosystemDashView_dashLength, 5);
30-
dashThickness = styledAttributes.getDimensionPixelSize(R.styleable.KinEcosystemDashView_dashThickness, 3);
31-
color = styledAttributes.getColor(R.styleable.KinEcosystemDashView_color, 0xff000000);
32-
orientation = styledAttributes.getInt(R.styleable.KinEcosystemDashView_orientation, ORIENTATION_HORIZONTAL);
28+
dashGap = styledAttributes.getDimensionPixelSize(R.styleable.KinEcosystemDashView_kinEcosystemDashGap, 5);
29+
dashLength = styledAttributes.getDimensionPixelSize(R.styleable.KinEcosystemDashView_kinEcosystemDashLength, 5);
30+
dashThickness = styledAttributes.getDimensionPixelSize(R.styleable.KinEcosystemDashView_kinEcosystemDashThickness, 3);
31+
color = styledAttributes.getColor(R.styleable.KinEcosystemDashView_kinEcosystemColor, 0xff000000);
32+
orientation = styledAttributes.getInt(R.styleable.KinEcosystemDashView_kinEcosystemOrientation, ORIENTATION_HORIZONTAL);
3333
} finally {
3434
styledAttributes.recycle();
3535
}

kin-devplatform-sdk/src/main/res/layout/kinecosystem_activity_main.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
android:id="@+id/balance_view"
1414
android:layout_width="match_parent"
1515
android:layout_height="wrap_content"
16-
app:subTitle="@string/kinecosystem_welcome_to_kin_marketplace"/>
16+
app:kinEcosystemSubTitle="@string/kinecosystem_welcome_to_kin_marketplace"/>
1717

1818
<FrameLayout
1919
android:id="@+id/fragment_frame"

kin-devplatform-sdk/src/main/res/layout/kinecosystem_order_history_recycler_item.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@
99
android:id="@+id/dash_line"
1010
android:layout_width="1dp"
1111
android:layout_height="match_parent"
12-
app:color="@color/kinecosystem_gray_light"
12+
app:kinEcosystemColor="@color/kinecosystem_gray_light"
1313
app:layout_constraintEnd_toEndOf="@+id/dot"
1414
app:layout_constraintStart_toStartOf="@+id/dot"
15-
app:orientation="vertical"/>
15+
app:kinEcosystemOrientation="vertical"/>
1616

1717
<ImageView
1818
android:id="@+id/dot"
Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<resources>
33
<declare-styleable name="KinEcosystemDashView">
4-
<attr format="color" name="color"/>
5-
<attr format="dimension" name="dashLength"/>
6-
<attr format="dimension" name="dashGap"/>
7-
<attr format="dimension" name="dashThickness"/>
8-
<attr format="enum" name="orientation">
4+
<attr format="color" name="kinEcosystemColor"/>
5+
<attr format="dimension" name="kinEcosystemDashLength"/>
6+
<attr format="dimension" name="kinEcosystemDashGap"/>
7+
<attr format="dimension" name="kinEcosystemDashThickness"/>
8+
<attr format="enum" name="kinEcosystemOrientation">
99
<enum name="horizontal" value="0"/>
1010
<enum name="vertical" value="1"/>
1111
</attr>
1212
</declare-styleable>
1313

1414
<declare-styleable name="KinEcosystemBalanceView">
15-
<attr format="string" name="subTitle"/>
15+
<attr format="string" name="kinEcosystemSubTitle"/>
1616
</declare-styleable>
1717
</resources>

0 commit comments

Comments
 (0)