ce2b2d0f by 17205857019@139.com

11

1 parent b07046c9
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) {
......
......@@ -308,7 +308,4 @@
android:textColor="#fffef9" />
</LinearLayout>
</LinearLayout>
\ No newline at end of file
......
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
......@@ -50,6 +50,6 @@ public class HexTool {
buildCommand(danjia, "60 00") +
buildCommand("总价 元", "70 00") +
buildCommand(zongjia, "80 00") +
"0000";
"000000";
}
}
\ No newline at end of file
......
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
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!