Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
zhouzhou
/
new_ser
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
ce2b2d0f
authored
2025-03-10 10:37:02 +0800
by
17205857019@139.com
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
11
1 parent
b07046c9
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
3 additions
and
46 deletions
app/src/main/java/top/keepempty/MainActivity.java
app/src/main/res/layout/activity_main.xml
ddtest/src/androidTest/java/com/example/ddtest/ExampleInstrumentedTest.java
ddtest/src/main/java/com/example/ddtest/HexTool.java
ddtest/src/test/java/com/example/ddtest/ExampleUnitTest.java
app/src/main/java/top/keepempty/MainActivity.java
View file @
ce2b2d0
package
top
.
keepempty
;
import
android.content.Intent
;
import
android.os.Bundle
;
import
android.support.v4.content.ContextCompat
;
import
android.support.v7.app.AppCompatActivity
;
...
...
@@ -71,6 +72,7 @@ public class MainActivity extends AppCompatActivity implements AdapterView.OnIte
mSendDataEt
.
setText
(
ett
);
}
});
}
public
String
getFinalHex
(
String
pizhong
,
String
zhongliang
,
String
danjia
,
String
zongjia
)
{
...
...
app/src/main/res/layout/activity_main.xml
View file @
ce2b2d0
...
...
@@ -308,7 +308,4 @@
android:textColor=
"#fffef9"
/>
</LinearLayout>
</LinearLayout>
\ No newline at end of file
...
...
ddtest/src/androidTest/java/com/example/ddtest/ExampleInstrumentedTest.java
deleted
100644 → 0
View file @
b07046c
package
com
.
example
.
ddtest
;
import
android.content.Context
;
import
android.support.test.InstrumentationRegistry
;
import
android.support.test.runner.AndroidJUnit4
;
import
org.junit.Test
;
import
org.junit.runner.RunWith
;
import
static
org
.
junit
.
Assert
.*;
/**
* Instrumented test, which will execute on an Android device.
*
* @see <a href="http://d.android.com/tools/testing">Testing documentation</a>
*/
@RunWith
(
AndroidJUnit4
.
class
)
public
class
ExampleInstrumentedTest
{
@Test
public
void
useAppContext
()
{
// Context of the app under test.
Context
appContext
=
InstrumentationRegistry
.
getInstrumentation
().
getTargetContext
();
assertEquals
(
"com.example.ddtest.test"
,
appContext
.
getPackageName
());
}
}
\ No newline at end of file
ddtest/src/main/java/com/example/ddtest/HexTool.java
View file @
ce2b2d0
...
...
@@ -50,6 +50,6 @@ public class HexTool {
buildCommand
(
danjia
,
"60 00"
)
+
buildCommand
(
"总价 元"
,
"70 00"
)
+
buildCommand
(
zongjia
,
"80 00"
)
+
"0000"
;
"0000
00
"
;
}
}
\ No newline at end of file
...
...
ddtest/src/test/java/com/example/ddtest/ExampleUnitTest.java
deleted
100644 → 0
View file @
b07046c
package
com
.
example
.
ddtest
;
import
org.junit.Test
;
import
static
org
.
junit
.
Assert
.*;
/**
* Example local unit test, which will execute on the development machine (host).
*
* @see <a href="http://d.android.com/tools/testing">Testing documentation</a>
*/
public
class
ExampleUnitTest
{
@Test
public
void
addition_isCorrect
()
{
assertEquals
(
4
,
2
+
2
);
}
}
\ No newline at end of file
Write
Preview
Styling with
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment