commit f2a213e6d88ed189e5df4bb087d207dd44d56fa7 Author: 杨万里 <1726150332@qq.com> Date: Mon Mar 9 09:35:49 2026 +0800 first commit diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..aa724b7 --- /dev/null +++ b/.gitignore @@ -0,0 +1,15 @@ +*.iml +.gradle +/local.properties +/.idea/caches +/.idea/libraries +/.idea/modules.xml +/.idea/workspace.xml +/.idea/navEditor.xml +/.idea/assetWizardSettings.xml +.DS_Store +/build +/captures +.externalNativeBuild +.cxx +local.properties diff --git a/.idea/compiler.xml b/.idea/compiler.xml new file mode 100644 index 0000000..61a9130 --- /dev/null +++ b/.idea/compiler.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/.idea/gradle.xml b/.idea/gradle.xml new file mode 100644 index 0000000..23a89bb --- /dev/null +++ b/.idea/gradle.xml @@ -0,0 +1,22 @@ + + + + + + + \ No newline at end of file diff --git a/.idea/jarRepositories.xml b/.idea/jarRepositories.xml new file mode 100644 index 0000000..a5f05cd --- /dev/null +++ b/.idea/jarRepositories.xml @@ -0,0 +1,25 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/misc.xml b/.idea/misc.xml new file mode 100644 index 0000000..d5d35ec --- /dev/null +++ b/.idea/misc.xml @@ -0,0 +1,9 @@ + + + + + + + + \ No newline at end of file diff --git a/.idea/vcs.xml b/.idea/vcs.xml new file mode 100644 index 0000000..94a25f7 --- /dev/null +++ b/.idea/vcs.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/app/.gitignore b/app/.gitignore new file mode 100644 index 0000000..42afabf --- /dev/null +++ b/app/.gitignore @@ -0,0 +1 @@ +/build \ No newline at end of file diff --git a/app/build.gradle b/app/build.gradle new file mode 100644 index 0000000..4261a6e --- /dev/null +++ b/app/build.gradle @@ -0,0 +1,65 @@ +plugins { + id 'com.android.application' +} + +android { + compileSdkVersion 30 + + + defaultConfig { + applicationId "com.highway.tirebing" + minSdkVersion 26 + targetSdkVersion 30 + versionCode 1 + versionName "1.0" + + testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" + } + signingConfigs { + debug { + File strFile = new File("/chainway.keystore") + storeFile file(strFile) + storePassword "123456" + keyPassword "123456" + keyAlias "chainway" + } + release { + File strFile = new File("/chainway.keystore") + storeFile file(strFile) + storePassword "123456" + keyPassword "123456" + keyAlias "chainway" + } + } + buildTypes { + release { + minifyEnabled false + proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' + } + } + compileOptions { + sourceCompatibility JavaVersion.VERSION_1_8 + targetCompatibility JavaVersion.VERSION_1_8 + } +} +repositories { + flatDir { + dirs 'libs' + } +} +dependencies { + implementation fileTree(include: ['*.jar'], dir: 'libs') + + implementation files('libs/xUtils-2.5.5.jar') //implementation files('org.xutils:xutils:2.5.+') + implementation files('libs/jxl.jar') + implementation(name: 'DeviceAPI_ver20210618', ext: 'aar') + + implementation 'androidx.appcompat:appcompat:1.1.0' + implementation 'com.google.android.material:material:1.1.0' + implementation 'androidx.constraintlayout:constraintlayout:1.1.3' + implementation 'androidx.navigation:navigation-fragment:2.2.2' + implementation 'androidx.navigation:navigation-ui:2.2.2' + testImplementation 'junit:junit:4.+' + androidTestImplementation 'androidx.test.ext:junit:1.1.1' + androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0' +} \ No newline at end of file diff --git a/app/chainway.keystore b/app/chainway.keystore new file mode 100644 index 0000000..4f3e1c7 Binary files /dev/null and b/app/chainway.keystore differ diff --git a/app/libs/DeviceAPI_ver20210618.aar b/app/libs/DeviceAPI_ver20210618.aar new file mode 100644 index 0000000..9c8178a Binary files /dev/null and b/app/libs/DeviceAPI_ver20210618.aar differ diff --git a/app/libs/IGLBarDecoder.jar b/app/libs/IGLBarDecoder.jar new file mode 100644 index 0000000..29fa68c Binary files /dev/null and b/app/libs/IGLBarDecoder.jar differ diff --git a/app/libs/jxl.jar b/app/libs/jxl.jar new file mode 100644 index 0000000..e759c9d Binary files /dev/null and b/app/libs/jxl.jar differ diff --git a/app/libs/xUtils-2.5.5.jar b/app/libs/xUtils-2.5.5.jar new file mode 100644 index 0000000..3cdf65b Binary files /dev/null and b/app/libs/xUtils-2.5.5.jar differ diff --git a/app/proguard-rules.pro b/app/proguard-rules.pro new file mode 100644 index 0000000..52566cc --- /dev/null +++ b/app/proguard-rules.pro @@ -0,0 +1,22 @@ +# Add project specific ProGuard rules here. +# You can control the set of applied configuration files using the +# proguardFiles setting in build.gradle. +# +# For more details, see +# http://developer.android.com/guide/developing/tools/proguard.html + +# If your project uses WebView with JS, uncomment the following +# and specify the fully qualified class name to the JavaScript interface +# class: +#-keepclassmembers class fqcn.of.javascript.interface.for.webview { +# public *; +#} + +# Uncomment this to preserve the line number information for +# debugging stack traces. +#-keepattributes SourceFile,LineNumberTable + +# If you keep the line number information, uncomment this to +# hide the original source file name. +#-renamesourcefileattribute SourceFile +-keep class * extends java.lang.annotation.Annotation { *; } \ No newline at end of file diff --git a/app/src/androidTest/java/com/highway/tirebing/ExampleInstrumentedTest.java b/app/src/androidTest/java/com/highway/tirebing/ExampleInstrumentedTest.java new file mode 100644 index 0000000..b2de9df --- /dev/null +++ b/app/src/androidTest/java/com/highway/tirebing/ExampleInstrumentedTest.java @@ -0,0 +1,26 @@ +package com.highway.tirebing; + +import android.content.Context; + +import androidx.test.platform.app.InstrumentationRegistry; +import androidx.test.ext.junit.runners.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 Testing documentation + */ +@RunWith(AndroidJUnit4.class) +public class ExampleInstrumentedTest { + @Test + public void useAppContext() { + // Context of the app under test. + Context appContext = InstrumentationRegistry.getInstrumentation().getTargetContext(); + assertEquals("com.highway.tirebing", appContext.getPackageName()); + } +} \ No newline at end of file diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml new file mode 100644 index 0000000..18a3712 --- /dev/null +++ b/app/src/main/AndroidManifest.xml @@ -0,0 +1,28 @@ + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/app/src/main/java/com/highway/tirebing/Barcode2D.java b/app/src/main/java/com/highway/tirebing/Barcode2D.java new file mode 100644 index 0000000..e797b22 --- /dev/null +++ b/app/src/main/java/com/highway/tirebing/Barcode2D.java @@ -0,0 +1,106 @@ +package com.highway.tirebing; + +import android.content.BroadcastReceiver; +import android.content.Context; +import android.content.Intent; +import android.content.IntentFilter; +import android.util.Log; + +import com.rscja.barcode.BarcodeUtility; + +/** + * Created by wskyo on 2021-6-18. + */ + +public class Barcode2D { + private String TAG = "Scanner_barcodeTest"; + private BarcodeUtility barcodeUtility = null; + private BarcodeDataReceiver barcodeDataReceiver = null; + private IBarcodeResult iBarcodeResult = null; + private Context context; + + public Barcode2D(Context context) { + barcodeUtility = BarcodeUtility.getInstance(); + this.context = context; + } + + //开始扫码 + public void startScan(Context context) { + if (barcodeUtility != null) { + Log.i(TAG, "ScanBarcode"); + barcodeUtility.startScan(context, BarcodeUtility.ModuleType.BARCODE_2D); + } + } + + //停止扫描 + public void stopScan(Context context) { + if (barcodeUtility != null) { + Log.i(TAG, "stopScan"); + barcodeUtility.stopScan(context, BarcodeUtility.ModuleType.BARCODE_2D); + } + } + + //打开 + public void open(Context context, IBarcodeResult iBarcodeResult) { + if (barcodeUtility != null) { + this.iBarcodeResult = iBarcodeResult; + barcodeUtility.setOutputMode(context, 2);//设置广播接收数据 + barcodeUtility.setScanResultBroadcast(context, "com.scanner.broadcast", "data");//设置接收数据的广播 + barcodeUtility.open(context, BarcodeUtility.ModuleType.BARCODE_2D);//打开2D + barcodeUtility.setReleaseScan(context, false);//设置松开扫描按键,不停止扫描 + barcodeUtility.setScanFailureBroadcast(context, true);//扫描失败也发送广播 + barcodeUtility.enableContinuousScan(context, false);//关闭键盘助手连续扫描 + barcodeUtility.enablePlayFailureSound(context, false);//关闭键盘助手 扫描失败的声音 + //barcodeUtility.enablePlaySuccessSound(context, false);//关闭键盘助手 扫描成功的声音 + barcodeUtility.enableEnter(context, false);//关闭回车 + barcodeUtility.setBarcodeEncodingFormat(context, 1); + + if (barcodeDataReceiver == null) { + barcodeDataReceiver = new BarcodeDataReceiver(); + IntentFilter intentFilter = new IntentFilter(); + intentFilter.addAction("com.scanner.broadcast"); + context.registerReceiver(barcodeDataReceiver, intentFilter); + } + } + } + + //关闭 + public void close(Context context) { + if (barcodeUtility != null) { + barcodeUtility.close(context, BarcodeUtility.ModuleType.BARCODE_2D);//关闭2D + if (barcodeDataReceiver != null) { + context.unregisterReceiver(barcodeDataReceiver); + barcodeDataReceiver = null; + } + } + } + + protected class BarcodeDataReceiver extends BroadcastReceiver { + @Override + public void onReceive(Context context, Intent intent) { + String barCode = intent.getStringExtra("data"); + String status = intent.getStringExtra("SCAN_STATE"); + + if (status != null && (status.equals("cancel"))) { + return; + } else { + if (barCode == null) { + barCode = "Scan fail"; + } + if (iBarcodeResult != null) + iBarcodeResult.getBarcode(barCode); + } + } + } +} + + + //if (barCode != null && !barCode.equals("")) { + //success + //byte[] barcodeBytes = intent.getByteArrayExtra("dataBytes");//获取原始的bytes数据 + //if(barcodeBytes!=null) { + // byte[] decodeData= Base64.decode(barcodeBytes,Base64.DEFAULT); + // barCode=StringUtility.bytes2HexString(decodeData); + //} + + //} diff --git a/app/src/main/java/com/highway/tirebing/BaseMainActivity.java b/app/src/main/java/com/highway/tirebing/BaseMainActivity.java new file mode 100644 index 0000000..c304cc8 --- /dev/null +++ b/app/src/main/java/com/highway/tirebing/BaseMainActivity.java @@ -0,0 +1,85 @@ +package com.highway.tirebing; + +import android.app.ActionBar; +import android.app.Application; +import android.app.ProgressDialog; +import android.os.AsyncTask; +import android.os.Bundle; + +import com.google.android.material.floatingactionbutton.FloatingActionButton; +import com.google.android.material.snackbar.Snackbar; +import com.rscja.deviceapi.RFIDWithUHFUART; + +import androidx.appcompat.app.AppCompatActivity; +import androidx.appcompat.widget.Toolbar; + +import android.view.View; +import android.widget.Toast; + +public class BaseMainActivity extends AppCompatActivity { + // public Reader mReader; + public RFIDWithUHFUART mReader; +// protected androidx.appcompat.app.ActionBar mActionBar; + @Override + protected void onCreate(Bundle savedInstanceState) { + super.onCreate(savedInstanceState); + } + public void initUHF() { + +// mActionBar = getSupportActionBar(); +// mActionBar.setDisplayShowTitleEnabled(true); +// mActionBar.setDisplayShowHomeEnabled(true); +// mActionBar.setDisplayHomeAsUpEnabled(true); +// mActionBar.setNavigationMode(ActionBar.NAVIGATION_MODE_TABS); + try { + mReader = RFIDWithUHFUART.getInstance(); + } catch (Exception ex) { + + toastMessage(ex.getMessage()); + return; + } + + if (mReader != null) { + new InitTask().execute(); + } + } + public void toastMessage(String msg) { + Toast.makeText(this, msg, Toast.LENGTH_SHORT).show(); + } + + public void toastMessage(int resId) { + Toast.makeText(this, resId, Toast.LENGTH_SHORT).show(); + } + public class InitTask extends AsyncTask { + ProgressDialog mypDialog; + + @Override + protected Boolean doInBackground(String... params) { + // TODO Auto-generated method stub + return mReader.init(); + } + + @Override + protected void onPostExecute(Boolean result) { + super.onPostExecute(result); + + mypDialog.cancel(); + + if (!result) { + Toast.makeText(BaseMainActivity.this, "init fail", Toast.LENGTH_SHORT).show(); + } + } + + @Override + protected void onPreExecute() { + // TODO Auto-generated method stub + super.onPreExecute(); + + mypDialog = new ProgressDialog(BaseMainActivity.this); + mypDialog.setProgressStyle(ProgressDialog.STYLE_SPINNER); + mypDialog.setMessage("初始化中..."); + mypDialog.setCanceledOnTouchOutside(false); + mypDialog.show(); + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/highway/tirebing/IBarcodeResult.java b/app/src/main/java/com/highway/tirebing/IBarcodeResult.java new file mode 100644 index 0000000..c4aaee6 --- /dev/null +++ b/app/src/main/java/com/highway/tirebing/IBarcodeResult.java @@ -0,0 +1,9 @@ +package com.highway.tirebing; + +/** + * Created by Administrator on 2021-6-20. + */ + +public interface IBarcodeResult { + public void getBarcode(String barcode); +} \ No newline at end of file diff --git a/app/src/main/java/com/highway/tirebing/MainActivity.java b/app/src/main/java/com/highway/tirebing/MainActivity.java new file mode 100644 index 0000000..3e33d9b --- /dev/null +++ b/app/src/main/java/com/highway/tirebing/MainActivity.java @@ -0,0 +1,190 @@ +package com.highway.tirebing; + +import androidx.appcompat.app.AppCompatActivity; + +import android.app.ProgressDialog; +import android.media.AudioManager; +import android.media.SoundPool; +import android.os.AsyncTask; +import android.os.Bundle; +import android.os.Process; +import android.util.Log; +import android.view.KeyEvent; +import android.view.View; + +import com.google.android.material.textfield.TextInputEditText; + +import java.util.HashMap; + +public class MainActivity extends BaseMainActivity implements View.OnClickListener,IBarcodeResult{ + private String TAG = "MainActivity_2D"; + private TextInputEditText etBarcode; + private Barcode2D barcode2D; + // 标记是否正在扫描,防止重复触发 + private boolean isScanning = false; + @Override + protected void onCreate(Bundle savedInstanceState) { + super.onCreate(savedInstanceState); + setContentView(R.layout.activity_main); + barcode2D = new Barcode2D(this); + etBarcode = findViewById(R.id.etBarcode); + initSound(); + initUHF(); + new InitTask().execute();// open(); + } + private HashMap soundMap = new HashMap(); + private SoundPool soundPool; + private float volumnRatio; + private AudioManager am; + + private void initSound() { + soundPool = new SoundPool(10, AudioManager.STREAM_MUSIC, 5); + soundMap.put(1, soundPool.load(this, R.raw.barcodebeep, 1)); + soundMap.put(2, soundPool.load(this, R.raw.serror, 1)); + am = (AudioManager) this.getSystemService(AUDIO_SERVICE);// 实例化AudioManager对象 + } + /** + * 播放提示音 + * + * @param id 成功1,失败2 + */ + public void playSound(int id) { + + float audioMaxVolumn = am.getStreamMaxVolume(AudioManager.STREAM_MUSIC); // 返回当前AudioManager对象的最大音量值 + float audioCurrentVolumn = am.getStreamVolume(AudioManager.STREAM_MUSIC);// 返回当前AudioManager对象的音量值 + volumnRatio = audioCurrentVolumn / audioMaxVolumn; + try { + soundPool.play(soundMap.get(id), volumnRatio, // 左声道音量 + volumnRatio, // 右声道音量 + 1, // 优先级,0为最低 + 0, // 循环次数,0无不循环,-1无永远循环 + 1 // 回放速度 ,该值在0.5-2.0之间,1为正常速度 + ); + } catch (Exception e) { + e.printStackTrace(); + } + } + @Override + protected void onDestroy() { + Log.i(TAG, "onDestroy"); + close(); + super.onDestroy(); + android.os.Process.killProcess(Process.myPid()); + } + + @Override + public void onClick(View v) { + + } + + @Override + public boolean onKeyDown(int keyCode, KeyEvent event) { + // 检查是否是 KeyCode 139 (通常是扫描枪的触发键) + if (keyCode == 139) { + Log.d(TAG, "检测到扫描键按下 (KeyCode 139)"); + + // 防止在正在扫描时重复触发,或者根据业务需求决定是否需要互斥 + if (!isScanning) { + start(); + } else { + // 如果已经在扫描,可以选择停止再重新开始,或者忽略 + // stop(); + // start(); + Log.d(TAG, "正在扫描中,忽略重复触发"); + } + // 返回 true 表示我们已经处理了这个事件,不再传递给其他控件(如 EditText) + // 如果返回 false,事件可能会继续传递,导致输入框也收到按键事件 + return true; + } + else if (keyCode == 293) { + Log.d(TAG, "检测到 UHF 切换键 (293) - 执行:关闭 2D -> 打开 UHF"); + + // A. 关闭 2D 扫描 + if (isScanning2D) { + stop(); + } + + // B. 打开 UHF 扫描 + // 注意:请确保 initUHF() 是执行“打开”动作,或者你需要调用专门的 startUHF() 方法 + // 如果 initUHF() 只是初始化硬件,这里应该调用 startUHF() + openUHF(); + + // 可选:播放提示音表示模式切换成功 + // playSound(1); + + return true; + } + // 其他按键交给系统默认处理 + return super.onKeyDown(keyCode, event); + } + + @Override + public void getBarcode(String barcode) { + Log.d(TAG,barcode); + playSound(1); + etBarcode.setText(barcode); + isScanning = false; + } + public class InitTask extends AsyncTask { + ProgressDialog mypDialog; + + @Override + protected Boolean doInBackground(String... params) { + // TODO Auto-generated method stub + try { + open(); + Thread.sleep(1000); + } catch (InterruptedException e) { + e.printStackTrace(); + } + return true; + } + + @Override + protected void onPostExecute(Boolean result) { + super.onPostExecute(result); + mypDialog.cancel(); + } + + @Override + protected void onPreExecute() { + // TODO Auto-generated method stub + super.onPreExecute(); + mypDialog = new ProgressDialog(MainActivity.this); + mypDialog.setProgressStyle(ProgressDialog.STYLE_SPINNER); + mypDialog.setMessage("init..."); + mypDialog.setCanceledOnTouchOutside(false); + mypDialog.setCancelable(false); + mypDialog.show(); + } + } + private void start() { + Log.d(TAG, "执行 startScan"); + isScanning = true; + if (barcode2D != null) { + barcode2D.startScan(this); + } + + } + + private void stop() { + Log.d(TAG, "执行 stopScan"); + isScanning = false; + if (barcode2D != null) { + barcode2D.stopScan(this); + } + } + + private void open() { + if (barcode2D != null) { + barcode2D.open(this, this); + } + } + + private void close() { + if (barcode2D != null) { + barcode2D.stopScan(this); + barcode2D.close(this); + } + } +} \ No newline at end of file diff --git a/app/src/main/res/drawable-v24/ic_launcher_foreground.xml b/app/src/main/res/drawable-v24/ic_launcher_foreground.xml new file mode 100644 index 0000000..2b068d1 --- /dev/null +++ b/app/src/main/res/drawable-v24/ic_launcher_foreground.xml @@ -0,0 +1,30 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/app/src/main/res/drawable/ic_launcher_background.xml b/app/src/main/res/drawable/ic_launcher_background.xml new file mode 100644 index 0000000..07d5da9 --- /dev/null +++ b/app/src/main/res/drawable/ic_launcher_background.xml @@ -0,0 +1,170 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/app/src/main/res/layout/activity_main.xml b/app/src/main/res/layout/activity_main.xml new file mode 100644 index 0000000..6159cf0 --- /dev/null +++ b/app/src/main/res/layout/activity_main.xml @@ -0,0 +1,109 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/app/src/main/res/layout/content_base_main.xml b/app/src/main/res/layout/content_base_main.xml new file mode 100644 index 0000000..3691469 --- /dev/null +++ b/app/src/main/res/layout/content_base_main.xml @@ -0,0 +1,6 @@ + + \ No newline at end of file diff --git a/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml b/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml new file mode 100644 index 0000000..eca70cf --- /dev/null +++ b/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml @@ -0,0 +1,5 @@ + + + + + \ No newline at end of file diff --git a/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml b/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml new file mode 100644 index 0000000..eca70cf --- /dev/null +++ b/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml @@ -0,0 +1,5 @@ + + + + + \ No newline at end of file diff --git a/app/src/main/res/mipmap-hdpi/ic_launcher.png b/app/src/main/res/mipmap-hdpi/ic_launcher.png new file mode 100644 index 0000000..a571e60 Binary files /dev/null and b/app/src/main/res/mipmap-hdpi/ic_launcher.png differ diff --git a/app/src/main/res/mipmap-hdpi/ic_launcher_round.png b/app/src/main/res/mipmap-hdpi/ic_launcher_round.png new file mode 100644 index 0000000..61da551 Binary files /dev/null and b/app/src/main/res/mipmap-hdpi/ic_launcher_round.png differ diff --git a/app/src/main/res/mipmap-hdpi/icon.png b/app/src/main/res/mipmap-hdpi/icon.png new file mode 100644 index 0000000..43dc050 Binary files /dev/null and b/app/src/main/res/mipmap-hdpi/icon.png differ diff --git a/app/src/main/res/mipmap-mdpi/ic_launcher.png b/app/src/main/res/mipmap-mdpi/ic_launcher.png new file mode 100644 index 0000000..c41dd28 Binary files /dev/null and b/app/src/main/res/mipmap-mdpi/ic_launcher.png differ diff --git a/app/src/main/res/mipmap-mdpi/ic_launcher_round.png b/app/src/main/res/mipmap-mdpi/ic_launcher_round.png new file mode 100644 index 0000000..db5080a Binary files /dev/null and b/app/src/main/res/mipmap-mdpi/ic_launcher_round.png differ diff --git a/app/src/main/res/mipmap-xhdpi/ic_launcher.png b/app/src/main/res/mipmap-xhdpi/ic_launcher.png new file mode 100644 index 0000000..6dba46d Binary files /dev/null and b/app/src/main/res/mipmap-xhdpi/ic_launcher.png differ diff --git a/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png b/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png new file mode 100644 index 0000000..da31a87 Binary files /dev/null and b/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png differ diff --git a/app/src/main/res/mipmap-xxhdpi/ic_launcher.png b/app/src/main/res/mipmap-xxhdpi/ic_launcher.png new file mode 100644 index 0000000..15ac681 Binary files /dev/null and b/app/src/main/res/mipmap-xxhdpi/ic_launcher.png differ diff --git a/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png b/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png new file mode 100644 index 0000000..b216f2d Binary files /dev/null and b/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png differ diff --git a/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png b/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png new file mode 100644 index 0000000..f25a419 Binary files /dev/null and b/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png differ diff --git a/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png b/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png new file mode 100644 index 0000000..e96783c Binary files /dev/null and b/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png differ diff --git a/app/src/main/res/navigation/nav_graph.xml b/app/src/main/res/navigation/nav_graph.xml new file mode 100644 index 0000000..da4c876 --- /dev/null +++ b/app/src/main/res/navigation/nav_graph.xml @@ -0,0 +1,28 @@ + + + + + + + + + + + + \ No newline at end of file diff --git a/app/src/main/res/raw/barcodebeep.ogg b/app/src/main/res/raw/barcodebeep.ogg new file mode 100644 index 0000000..ca1532c Binary files /dev/null and b/app/src/main/res/raw/barcodebeep.ogg differ diff --git a/app/src/main/res/raw/serror.ogg b/app/src/main/res/raw/serror.ogg new file mode 100644 index 0000000..8cc359a Binary files /dev/null and b/app/src/main/res/raw/serror.ogg differ diff --git a/app/src/main/res/values-night/themes.xml b/app/src/main/res/values-night/themes.xml new file mode 100644 index 0000000..44011e9 --- /dev/null +++ b/app/src/main/res/values-night/themes.xml @@ -0,0 +1,16 @@ + + + + \ No newline at end of file diff --git a/app/src/main/res/values/colors.xml b/app/src/main/res/values/colors.xml new file mode 100644 index 0000000..e6e6428 --- /dev/null +++ b/app/src/main/res/values/colors.xml @@ -0,0 +1,20 @@ + + + #FFBB86FC + #FF6200EE + #FF3700B3 + #FF03DAC5 + #FF018786 + #FF000000 + #FFFFFFFF + #008577 + #00574B + #D81B60 + #f0fcff + + #529cfd + + #F0F5FD + #E6E8F6FC + #3b4753 + \ No newline at end of file diff --git a/app/src/main/res/values/dimens.xml b/app/src/main/res/values/dimens.xml new file mode 100644 index 0000000..125df87 --- /dev/null +++ b/app/src/main/res/values/dimens.xml @@ -0,0 +1,3 @@ + + 16dp + \ No newline at end of file diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml new file mode 100644 index 0000000..e0cc92d --- /dev/null +++ b/app/src/main/res/values/strings.xml @@ -0,0 +1,12 @@ + + 轮胎绑定 + BaseMainActivity + + First Fragment + Second Fragment + Next + Previous + + Hello first fragment + Hello second fragment. Arg: %1$s + \ No newline at end of file diff --git a/app/src/main/res/values/themes.xml b/app/src/main/res/values/themes.xml new file mode 100644 index 0000000..3d0eecd --- /dev/null +++ b/app/src/main/res/values/themes.xml @@ -0,0 +1,26 @@ + + + + + + +