Skip to content

Commit 51be4ce

Browse files
committed
fix: delete invalid resources.
1 parent 84ddd1e commit 51be4ce

File tree

6 files changed

+7
-8
lines changed

6 files changed

+7
-8
lines changed

app/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ android {
2525
dependencies {
2626
implementation fileTree(dir: "libs", include: ["*.jar"])
2727
implementation project(":xtableview")
28-
implementation 'androidx.appcompat:appcompat:1.1.0'
28+
implementation 'androidx.appcompat:appcompat:1.2.0'
2929
implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
3030
testImplementation 'junit:junit:4.12'
3131
androidTestImplementation 'androidx.test.ext:junit:1.1.1'

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ buildscript {
66
}
77
dependencies {
88
classpath "com.android.tools.build:gradle:4.0.1"
9-
9+
classpath 'com.github.dcendents:android-maven-gradle-plugin:2.1'
1010
// NOTE: Do not place your application dependencies here; they belong
1111
// in the individual module build.gradle files
1212
}

xtableview/build.gradle

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
apply plugin: 'com.android.library'
2+
apply plugin: 'com.github.dcendents.android-maven'
23

34
android {
45
compileSdkVersion 30
@@ -23,7 +24,7 @@ android {
2324

2425
dependencies {
2526
compileOnly fileTree(dir: "libs", include: ["*.jar"])
26-
implementation 'androidx.appcompat:appcompat:1.1.0'
27+
implementation 'androidx.appcompat:appcompat:1.2.0'
2728
implementation 'androidx.recyclerview:recyclerview:1.1.0'
2829
implementation 'com.android.support.constraint:constraint-layout:1.1.3'
2930
testCompileOnly 'junit:junit:4.12'

xtableview/src/main/java/com/zjy/xtableview/widget/swipe/SwipeMenuView.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ public void onClick(View v) {
7171
if (v instanceof LinearLayout) {
7272
((LinearLayout) v).getChildAt(0).setVisibility(VISIBLE);
7373
TextView menuTv = (TextView) ((LinearLayout) v).getChildAt(0);
74-
menuTv.setText("确认删除");
74+
menuTv.setText("Confirm delete");
7575
}
7676
}
7777
}
@@ -88,7 +88,7 @@ public void resetMenu() {
8888
menuTag.setConfirm(false);
8989
}
9090
if (menuTv instanceof TextView) {
91-
((TextView) menuTv).setText("删除");
91+
((TextView) menuTv).setText("Delete");
9292
}
9393
}
9494
}
Binary file not shown.

xtableview/src/main/res/layout/table_swipe_menu_layout.xml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,9 @@
1010
android:layout_width="wrap_content"
1111
android:layout_height="wrap_content"
1212
android:layout_gravity="center"
13-
android:drawableStart="@drawable/table_view_ic_delete"
14-
android:drawableLeft="@drawable/table_view_ic_delete"
1513
android:drawablePadding="6dp"
1614
android:gravity="center"
17-
android:text="删除"
15+
android:text="Delete"
1816
android:textColor="@color/table_swipe_delete_txt_color"
1917
android:textSize="13sp" />
2018

0 commit comments

Comments
 (0)