ce2b2d0f by 17205857019@139.com

11

1 parent b07046c9
1 package top.keepempty; 1 package top.keepempty;
2 2
3 import android.content.Intent;
3 import android.os.Bundle; 4 import android.os.Bundle;
4 import android.support.v4.content.ContextCompat; 5 import android.support.v4.content.ContextCompat;
5 import android.support.v7.app.AppCompatActivity; 6 import android.support.v7.app.AppCompatActivity;
...@@ -71,6 +72,7 @@ public class MainActivity extends AppCompatActivity implements AdapterView.OnIte ...@@ -71,6 +72,7 @@ public class MainActivity extends AppCompatActivity implements AdapterView.OnIte
71 mSendDataEt.setText(ett); 72 mSendDataEt.setText(ett);
72 } 73 }
73 }); 74 });
75
74 } 76 }
75 77
76 public String getFinalHex(String pizhong, String zhongliang, String danjia, String zongjia) { 78 public String getFinalHex(String pizhong, String zhongliang, String danjia, String zongjia) {
......
...@@ -308,7 +308,4 @@ ...@@ -308,7 +308,4 @@
308 android:textColor="#fffef9" /> 308 android:textColor="#fffef9" />
309 309
310 </LinearLayout> 310 </LinearLayout>
311
312
313
314 </LinearLayout> 311 </LinearLayout>
...\ No newline at end of file ...\ No newline at end of file
......
1 package com.example.ddtest;
2
3 import android.content.Context;
4 import android.support.test.InstrumentationRegistry;
5 import android.support.test.runner.AndroidJUnit4;
6
7 import org.junit.Test;
8 import org.junit.runner.RunWith;
9
10 import static org.junit.Assert.*;
11
12 /**
13 * Instrumented test, which will execute on an Android device.
14 *
15 * @see <a href="http://d.android.com/tools/testing">Testing documentation</a>
16 */
17 @RunWith(AndroidJUnit4.class)
18 public class ExampleInstrumentedTest {
19 @Test
20 public void useAppContext() {
21 // Context of the app under test.
22 Context appContext = InstrumentationRegistry.getInstrumentation().getTargetContext();
23 assertEquals("com.example.ddtest.test", appContext.getPackageName());
24 }
25 }
...\ No newline at end of file ...\ No newline at end of file
...@@ -50,6 +50,6 @@ public class HexTool { ...@@ -50,6 +50,6 @@ public class HexTool {
50 buildCommand(danjia, "60 00") + 50 buildCommand(danjia, "60 00") +
51 buildCommand("总价 元", "70 00") + 51 buildCommand("总价 元", "70 00") +
52 buildCommand(zongjia, "80 00") + 52 buildCommand(zongjia, "80 00") +
53 "0000"; 53 "000000";
54 } 54 }
55 } 55 }
...\ No newline at end of file ...\ No newline at end of file
......
1 package com.example.ddtest;
2
3 import org.junit.Test;
4
5 import static org.junit.Assert.*;
6
7 /**
8 * Example local unit test, which will execute on the development machine (host).
9 *
10 * @see <a href="http://d.android.com/tools/testing">Testing documentation</a>
11 */
12 public class ExampleUnitTest {
13 @Test
14 public void addition_isCorrect() {
15 assertEquals(4, 2 + 2);
16 }
17 }
...\ No newline at end of file ...\ No newline at end of file
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!