Skip to content

Commit

Permalink
fix: delete invalid resources.
Browse files Browse the repository at this point in the history
  • Loading branch information
GitHubZJY committed Aug 6, 2020
1 parent 84ddd1e commit 51be4ce
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 8 deletions.
2 changes: 1 addition & 1 deletion app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ android {
dependencies {
implementation fileTree(dir: "libs", include: ["*.jar"])
implementation project(":xtableview")
implementation 'androidx.appcompat:appcompat:1.1.0'
implementation 'androidx.appcompat:appcompat:1.2.0'
implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'androidx.test.ext:junit:1.1.1'
Expand Down
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ buildscript {
}
dependencies {
classpath "com.android.tools.build:gradle:4.0.1"

classpath 'com.github.dcendents:android-maven-gradle-plugin:2.1'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
Expand Down
3 changes: 2 additions & 1 deletion xtableview/build.gradle
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
apply plugin: 'com.android.library'
apply plugin: 'com.github.dcendents.android-maven'

android {
compileSdkVersion 30
Expand All @@ -23,7 +24,7 @@ android {

dependencies {
compileOnly fileTree(dir: "libs", include: ["*.jar"])
implementation 'androidx.appcompat:appcompat:1.1.0'
implementation 'androidx.appcompat:appcompat:1.2.0'
implementation 'androidx.recyclerview:recyclerview:1.1.0'
implementation 'com.android.support.constraint:constraint-layout:1.1.3'
testCompileOnly 'junit:junit:4.12'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ public void onClick(View v) {
if (v instanceof LinearLayout) {
((LinearLayout) v).getChildAt(0).setVisibility(VISIBLE);
TextView menuTv = (TextView) ((LinearLayout) v).getChildAt(0);
menuTv.setText("确认删除");
menuTv.setText("Confirm delete");
}
}
}
Expand All @@ -88,7 +88,7 @@ public void resetMenu() {
menuTag.setConfirm(false);
}
if (menuTv instanceof TextView) {
((TextView) menuTv).setText("删除");
((TextView) menuTv).setText("Delete");
}
}
}
Binary file not shown.
4 changes: 1 addition & 3 deletions xtableview/src/main/res/layout/table_swipe_menu_layout.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,9 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:drawableStart="@drawable/table_view_ic_delete"
android:drawableLeft="@drawable/table_view_ic_delete"
android:drawablePadding="6dp"
android:gravity="center"
android:text="删除"
android:text="Delete"
android:textColor="@color/table_swipe_delete_txt_color"
android:textSize="13sp" />

Expand Down

0 comments on commit 51be4ce

Please sign in to comment.