├── app ├── .gitignore ├── src │ ├── main │ │ ├── res │ │ │ ├── drawable-hdpi │ │ │ │ ├── bamboo.jpg │ │ │ │ ├── logo.png │ │ │ │ ├── mat2.jpg │ │ │ │ ├── mat3.jpg │ │ │ │ ├── photo.jpg │ │ │ │ ├── photo2.jpg │ │ │ │ ├── ic_info_black_24dp.png │ │ │ │ ├── ic_mic_white_24dp.png │ │ │ │ ├── ic_sync_black_24dp.png │ │ │ │ ├── ic_hotel_grey600_24dp.png │ │ │ │ ├── ic_settings_black_24dp.png │ │ │ │ ├── ic_arrow_back_white_24dp.png │ │ │ │ └── ic_notifications_black_24dp.png │ │ │ ├── mipmap-hdpi │ │ │ │ ├── ic_launcher.png │ │ │ │ └── ic_drawer_home.png │ │ │ ├── mipmap-mdpi │ │ │ │ ├── ic_launcher.png │ │ │ │ └── ic_bluetooth_black_36dp.png │ │ │ ├── mipmap-xhdpi │ │ │ │ └── ic_launcher.png │ │ │ ├── mipmap-xxhdpi │ │ │ │ └── ic_launcher.png │ │ │ ├── mipmap-xxxhdpi │ │ │ │ └── ic_launcher.png │ │ │ ├── drawable-mdpi │ │ │ │ ├── ic_info_black_24dp.png │ │ │ │ ├── ic_sync_black_24dp.png │ │ │ │ └── ic_notifications_black_24dp.png │ │ │ ├── drawable-xhdpi │ │ │ │ ├── ic_info_black_24dp.png │ │ │ │ ├── ic_sync_black_24dp.png │ │ │ │ └── ic_notifications_black_24dp.png │ │ │ ├── drawable-xxhdpi │ │ │ │ ├── ic_info_black_24dp.png │ │ │ │ ├── ic_sync_black_24dp.png │ │ │ │ └── ic_notifications_black_24dp.png │ │ │ ├── drawable-xxxhdpi │ │ │ │ ├── ic_info_black_24dp.png │ │ │ │ ├── ic_sync_black_24dp.png │ │ │ │ └── ic_notifications_black_24dp.png │ │ │ ├── values │ │ │ │ ├── dimens.xml │ │ │ │ ├── colors.xml │ │ │ │ ├── styles.xml │ │ │ │ └── strings.xml │ │ │ ├── menu │ │ │ │ └── menu.xml │ │ │ ├── values-w820dp │ │ │ │ └── dimens.xml │ │ │ ├── drawable-v21 │ │ │ │ ├── ic_info_black_24dp.xml │ │ │ │ ├── ic_notifications_black_24dp.xml │ │ │ │ └── ic_sync_black_24dp.xml │ │ │ ├── drawable │ │ │ │ └── bg_card.xml │ │ │ ├── layout │ │ │ │ ├── activity_main.xml │ │ │ │ ├── record_item.xml │ │ │ │ ├── pw_change.xml │ │ │ │ ├── fragment_users.xml │ │ │ │ ├── activity_record.xml │ │ │ │ ├── list_item.xml │ │ │ │ ├── activity_setting.xml │ │ │ │ ├── add_user.xml │ │ │ │ ├── activity_login.xml │ │ │ │ ├── fragment_main.xml │ │ │ │ └── activity_about.xml │ │ │ └── xml │ │ │ │ ├── pref_headers.xml │ │ │ │ ├── pref_data_sync.xml │ │ │ │ ├── pref_notification.xml │ │ │ │ └── pref_general.xml │ │ ├── java │ │ │ └── com │ │ │ │ ├── zhai │ │ │ │ └── btlock │ │ │ │ │ └── MainActivity.java │ │ │ │ └── rocky │ │ │ │ └── btlock │ │ │ │ ├── data │ │ │ │ ├── Record.java │ │ │ │ ├── User.java │ │ │ │ └── Constant.java │ │ │ │ ├── activity │ │ │ │ ├── AboutActivity.java │ │ │ │ ├── RecordActivity.java │ │ │ │ ├── MainActivity.java │ │ │ │ ├── SettingActivity.java │ │ │ │ └── LoginActivity.java │ │ │ │ ├── fragment │ │ │ │ ├── FragmentMain.java │ │ │ │ └── FragmentUsers.java │ │ │ │ ├── adapter │ │ │ │ ├── RecordAdapter.java │ │ │ │ └── ListAdapter.java │ │ │ │ ├── utils │ │ │ │ └── Utils.java │ │ │ │ └── bluetooth │ │ │ │ └── BluetoothLeClass.java │ │ └── AndroidManifest.xml │ ├── test │ │ └── java │ │ │ └── com │ │ │ ├── rocky │ │ │ └── btlock │ │ │ │ └── ExampleUnitTest.java │ │ │ └── zhai │ │ │ └── btlock │ │ │ └── ExampleUnitTest.java │ └── androidTest │ │ └── java │ │ └── com │ │ ├── rocky │ │ └── btlock │ │ │ └── ApplicationTest.java │ │ └── zhai │ │ └── btlock │ │ └── ExampleInstrumentedTest.java ├── proguard-rules.pro └── build.gradle ├── settings.gradle ├── Screenshot ├── about.png ├── login.png ├── main.jpeg ├── main.png ├── photo.jpeg ├── record.png ├── xieyi.png ├── openlock.png ├── setting.png └── usermannger.png ├── .idea ├── copyright │ └── profiles_settings.xml ├── modules.xml ├── runConfigurations.xml ├── compiler.xml ├── gradle.xml └── misc.xml ├── gradle └── wrapper │ ├── gradle-wrapper.jar │ └── gradle-wrapper.properties ├── .gitignore ├── gradle.properties ├── README.md ├── gradlew.bat └── gradlew /app/.gitignore: -------------------------------------------------------------------------------- 1 | /build 2 | -------------------------------------------------------------------------------- /settings.gradle: -------------------------------------------------------------------------------- 1 | include ':app' 2 | -------------------------------------------------------------------------------- /Screenshot/about.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rockzhai/BLE-Lock-Android/HEAD/Screenshot/about.png -------------------------------------------------------------------------------- /Screenshot/login.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rockzhai/BLE-Lock-Android/HEAD/Screenshot/login.png -------------------------------------------------------------------------------- /Screenshot/main.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rockzhai/BLE-Lock-Android/HEAD/Screenshot/main.jpeg -------------------------------------------------------------------------------- /Screenshot/main.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rockzhai/BLE-Lock-Android/HEAD/Screenshot/main.png -------------------------------------------------------------------------------- /Screenshot/photo.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rockzhai/BLE-Lock-Android/HEAD/Screenshot/photo.jpeg -------------------------------------------------------------------------------- /Screenshot/record.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rockzhai/BLE-Lock-Android/HEAD/Screenshot/record.png -------------------------------------------------------------------------------- /Screenshot/xieyi.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rockzhai/BLE-Lock-Android/HEAD/Screenshot/xieyi.png -------------------------------------------------------------------------------- /Screenshot/openlock.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rockzhai/BLE-Lock-Android/HEAD/Screenshot/openlock.png -------------------------------------------------------------------------------- /Screenshot/setting.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rockzhai/BLE-Lock-Android/HEAD/Screenshot/setting.png -------------------------------------------------------------------------------- /Screenshot/usermannger.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rockzhai/BLE-Lock-Android/HEAD/Screenshot/usermannger.png -------------------------------------------------------------------------------- /.idea/copyright/profiles_settings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | -------------------------------------------------------------------------------- /gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rockzhai/BLE-Lock-Android/HEAD/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | *.iml 2 | .gradle 3 | /local.properties 4 | /.idea/workspace.xml 5 | /.idea/libraries 6 | .DS_Store 7 | /build 8 | /captures 9 | -------------------------------------------------------------------------------- /app/src/main/res/drawable-hdpi/bamboo.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rockzhai/BLE-Lock-Android/HEAD/app/src/main/res/drawable-hdpi/bamboo.jpg -------------------------------------------------------------------------------- /app/src/main/res/drawable-hdpi/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rockzhai/BLE-Lock-Android/HEAD/app/src/main/res/drawable-hdpi/logo.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-hdpi/mat2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rockzhai/BLE-Lock-Android/HEAD/app/src/main/res/drawable-hdpi/mat2.jpg -------------------------------------------------------------------------------- /app/src/main/res/drawable-hdpi/mat3.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rockzhai/BLE-Lock-Android/HEAD/app/src/main/res/drawable-hdpi/mat3.jpg -------------------------------------------------------------------------------- /app/src/main/res/drawable-hdpi/photo.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rockzhai/BLE-Lock-Android/HEAD/app/src/main/res/drawable-hdpi/photo.jpg -------------------------------------------------------------------------------- /app/src/main/res/drawable-hdpi/photo2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rockzhai/BLE-Lock-Android/HEAD/app/src/main/res/drawable-hdpi/photo2.jpg -------------------------------------------------------------------------------- /app/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rockzhai/BLE-Lock-Android/HEAD/app/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rockzhai/BLE-Lock-Android/HEAD/app/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rockzhai/BLE-Lock-Android/HEAD/app/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rockzhai/BLE-Lock-Android/HEAD/app/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-hdpi/ic_drawer_home.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rockzhai/BLE-Lock-Android/HEAD/app/src/main/res/mipmap-hdpi/ic_drawer_home.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rockzhai/BLE-Lock-Android/HEAD/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-hdpi/ic_info_black_24dp.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rockzhai/BLE-Lock-Android/HEAD/app/src/main/res/drawable-hdpi/ic_info_black_24dp.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-hdpi/ic_mic_white_24dp.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rockzhai/BLE-Lock-Android/HEAD/app/src/main/res/drawable-hdpi/ic_mic_white_24dp.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-hdpi/ic_sync_black_24dp.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rockzhai/BLE-Lock-Android/HEAD/app/src/main/res/drawable-hdpi/ic_sync_black_24dp.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-mdpi/ic_info_black_24dp.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rockzhai/BLE-Lock-Android/HEAD/app/src/main/res/drawable-mdpi/ic_info_black_24dp.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-mdpi/ic_sync_black_24dp.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rockzhai/BLE-Lock-Android/HEAD/app/src/main/res/drawable-mdpi/ic_sync_black_24dp.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-hdpi/ic_hotel_grey600_24dp.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rockzhai/BLE-Lock-Android/HEAD/app/src/main/res/drawable-hdpi/ic_hotel_grey600_24dp.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-xhdpi/ic_info_black_24dp.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rockzhai/BLE-Lock-Android/HEAD/app/src/main/res/drawable-xhdpi/ic_info_black_24dp.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-xhdpi/ic_sync_black_24dp.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rockzhai/BLE-Lock-Android/HEAD/app/src/main/res/drawable-xhdpi/ic_sync_black_24dp.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-xxhdpi/ic_info_black_24dp.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rockzhai/BLE-Lock-Android/HEAD/app/src/main/res/drawable-xxhdpi/ic_info_black_24dp.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-xxhdpi/ic_sync_black_24dp.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rockzhai/BLE-Lock-Android/HEAD/app/src/main/res/drawable-xxhdpi/ic_sync_black_24dp.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-xxxhdpi/ic_info_black_24dp.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rockzhai/BLE-Lock-Android/HEAD/app/src/main/res/drawable-xxxhdpi/ic_info_black_24dp.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-xxxhdpi/ic_sync_black_24dp.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rockzhai/BLE-Lock-Android/HEAD/app/src/main/res/drawable-xxxhdpi/ic_sync_black_24dp.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-mdpi/ic_bluetooth_black_36dp.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rockzhai/BLE-Lock-Android/HEAD/app/src/main/res/mipmap-mdpi/ic_bluetooth_black_36dp.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-hdpi/ic_settings_black_24dp.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rockzhai/BLE-Lock-Android/HEAD/app/src/main/res/drawable-hdpi/ic_settings_black_24dp.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-hdpi/ic_arrow_back_white_24dp.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rockzhai/BLE-Lock-Android/HEAD/app/src/main/res/drawable-hdpi/ic_arrow_back_white_24dp.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-hdpi/ic_notifications_black_24dp.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rockzhai/BLE-Lock-Android/HEAD/app/src/main/res/drawable-hdpi/ic_notifications_black_24dp.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-mdpi/ic_notifications_black_24dp.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rockzhai/BLE-Lock-Android/HEAD/app/src/main/res/drawable-mdpi/ic_notifications_black_24dp.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-xhdpi/ic_notifications_black_24dp.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rockzhai/BLE-Lock-Android/HEAD/app/src/main/res/drawable-xhdpi/ic_notifications_black_24dp.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-xxhdpi/ic_notifications_black_24dp.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rockzhai/BLE-Lock-Android/HEAD/app/src/main/res/drawable-xxhdpi/ic_notifications_black_24dp.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-xxxhdpi/ic_notifications_black_24dp.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rockzhai/BLE-Lock-Android/HEAD/app/src/main/res/drawable-xxxhdpi/ic_notifications_black_24dp.png -------------------------------------------------------------------------------- /app/src/main/res/values/dimens.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 16dp 4 | 16dp 5 | 6 | -------------------------------------------------------------------------------- /gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | #Mon Dec 28 10:00:20 PST 2015 2 | distributionBase=GRADLE_USER_HOME 3 | distributionPath=wrapper/dists 4 | zipStoreBase=GRADLE_USER_HOME 5 | zipStorePath=wrapper/dists 6 | distributionUrl=https\://services.gradle.org/distributions/gradle-2.14.1-all.zip 7 | -------------------------------------------------------------------------------- /app/src/main/res/menu/menu.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 9 | 10 | -------------------------------------------------------------------------------- /.idea/modules.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /app/src/main/res/values-w820dp/dimens.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 16dp 4 | 16dp 5 | 150dp 6 | 8dp 7 | 16dp 8 | 9 | -------------------------------------------------------------------------------- /app/src/test/java/com/rocky/btlock/ExampleUnitTest.java: -------------------------------------------------------------------------------- 1 | package com.rocky.btlock; 2 | 3 | import org.junit.Test; 4 | 5 | import static org.junit.Assert.*; 6 | 7 | /** 8 | * To work on unit tests, switch the Test Artifact in the Build Variants view. 9 | */ 10 | public class ExampleUnitTest { 11 | @Test 12 | public void addition_isCorrect() throws Exception { 13 | assertEquals(4, 2 + 2); 14 | } 15 | } -------------------------------------------------------------------------------- /app/src/main/java/com/zhai/btlock/MainActivity.java: -------------------------------------------------------------------------------- 1 | package com.zhai.btlock; 2 | 3 | import android.support.v7.app.AppCompatActivity; 4 | import android.os.Bundle; 5 | 6 | public class MainActivity extends AppCompatActivity { 7 | 8 | @Override 9 | protected void onCreate(Bundle savedInstanceState) { 10 | super.onCreate(savedInstanceState); 11 | setContentView(R.layout.activity_main); 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /app/src/androidTest/java/com/rocky/btlock/ApplicationTest.java: -------------------------------------------------------------------------------- 1 | package com.rocky.btlock; 2 | 3 | import android.app.Application; 4 | import android.test.ApplicationTestCase; 5 | 6 | /** 7 | * Testing Fundamentals 8 | */ 9 | public class ApplicationTest extends ApplicationTestCase { 10 | public ApplicationTest() { 11 | super(Application.class); 12 | } 13 | } -------------------------------------------------------------------------------- /app/src/main/res/drawable-v21/ic_info_black_24dp.xml: -------------------------------------------------------------------------------- 1 | 6 | 9 | 10 | -------------------------------------------------------------------------------- /app/src/test/java/com/zhai/btlock/ExampleUnitTest.java: -------------------------------------------------------------------------------- 1 | package com.zhai.btlock; 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 Testing documentation 11 | */ 12 | public class ExampleUnitTest { 13 | @Test 14 | public void addition_isCorrect() throws Exception { 15 | assertEquals(4, 2 + 2); 16 | } 17 | } -------------------------------------------------------------------------------- /app/src/main/res/drawable-v21/ic_notifications_black_24dp.xml: -------------------------------------------------------------------------------- 1 | 6 | 9 | 10 | -------------------------------------------------------------------------------- /app/src/main/res/drawable-v21/ic_sync_black_24dp.xml: -------------------------------------------------------------------------------- 1 | 6 | 9 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/bg_card.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /.idea/runConfigurations.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 11 | 12 | -------------------------------------------------------------------------------- /app/proguard-rules.pro: -------------------------------------------------------------------------------- 1 | # Add project specific ProGuard rules here. 2 | # By default, the flags in this file are appended to flags specified 3 | # in D:\ProgramFiles\Android\sdk/tools/proguard/proguard-android.txt 4 | # You can edit the include path and order by changing the proguardFiles 5 | # directive in build.gradle. 6 | # 7 | # For more details, see 8 | # http://developer.android.com/guide/developing/tools/proguard.html 9 | 10 | # Add any project specific keep options here: 11 | 12 | # If your project uses WebView with JS, uncomment the following 13 | # and specify the fully qualified class name to the JavaScript interface 14 | # class: 15 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview { 16 | # public *; 17 | #} 18 | -------------------------------------------------------------------------------- /app/src/main/java/com/rocky/btlock/data/Record.java: -------------------------------------------------------------------------------- 1 | package com.rocky.btlock.data; 2 | 3 | /** 4 | * Created by Rocky on 2016/6/2. 5 | */ 6 | public class Record { 7 | public int getId() { 8 | return id; 9 | } 10 | 11 | public void setId(int id) { 12 | this.id = id; 13 | } 14 | 15 | public String getTime() { 16 | return time; 17 | } 18 | 19 | public void setTime(String time) { 20 | this.time = time; 21 | } 22 | 23 | private int id; 24 | 25 | public String getName() { 26 | return name; 27 | } 28 | 29 | public void setName(String name) { 30 | this.name = name; 31 | } 32 | 33 | private String name; 34 | private String time; 35 | 36 | } 37 | -------------------------------------------------------------------------------- /app/src/main/java/com/rocky/btlock/data/User.java: -------------------------------------------------------------------------------- 1 | package com.rocky.btlock.data; 2 | 3 | /** 4 | * Created by Rocky on 2016/6/1. 5 | */ 6 | public class User { 7 | public int getId() { 8 | return id; 9 | } 10 | 11 | public void setId(int id) { 12 | this.id = id; 13 | } 14 | 15 | public boolean isHaveFiger() { 16 | return haveFiger; 17 | } 18 | 19 | public void setHaveFiger(boolean haveFiger) { 20 | this.haveFiger = haveFiger; 21 | } 22 | 23 | public String getName() { 24 | return name; 25 | } 26 | 27 | public void setName(String name) { 28 | this.name = name; 29 | } 30 | 31 | private int id ; 32 | private boolean haveFiger; 33 | private String name; 34 | } 35 | -------------------------------------------------------------------------------- /.idea/compiler.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /.idea/gradle.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 18 | 19 | -------------------------------------------------------------------------------- /app/src/main/res/layout/activity_main.xml: -------------------------------------------------------------------------------- 1 | 2 | 12 | 13 | 17 | 18 | -------------------------------------------------------------------------------- /app/src/main/res/layout/record_item.xml: -------------------------------------------------------------------------------- 1 | 2 | 8 | 9 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /app/src/androidTest/java/com/zhai/btlock/ExampleInstrumentedTest.java: -------------------------------------------------------------------------------- 1 | package com.zhai.btlock; 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 | * Instrumentation test, which will execute on an Android device. 14 | * 15 | * @see Testing documentation 16 | */ 17 | @RunWith(AndroidJUnit4.class) 18 | public class ExampleInstrumentedTest { 19 | @Test 20 | public void useAppContext() throws Exception { 21 | // Context of the app under test. 22 | Context appContext = InstrumentationRegistry.getTargetContext(); 23 | 24 | assertEquals("com.zhai.btlock", appContext.getPackageName()); 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /app/src/main/res/xml/pref_headers.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 |
9 | 10 |
14 | 15 |
19 | 20 | 21 | -------------------------------------------------------------------------------- /gradle.properties: -------------------------------------------------------------------------------- 1 | # Project-wide Gradle settings. 2 | 3 | # IDE (e.g. Android Studio) users: 4 | # Gradle settings configured through the IDE *will override* 5 | # any settings specified in this file. 6 | 7 | # For more details on how to configure your build environment visit 8 | # http://www.gradle.org/docs/current/userguide/build_environment.html 9 | 10 | # Specifies the JVM arguments used for the daemon process. 11 | # The setting is particularly useful for tweaking memory settings. 12 | # Default value: -Xmx10248m -XX:MaxPermSize=256m 13 | # org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8 14 | 15 | # When configured, Gradle will run in incubating parallel mode. 16 | # This option should only be used with decoupled projects. More details, visit 17 | # http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects 18 | # org.gradle.parallel=true -------------------------------------------------------------------------------- /app/src/main/res/layout/pw_change.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 15 | 16 | 24 | 25 | 26 | -------------------------------------------------------------------------------- /app/src/main/res/layout/fragment_users.xml: -------------------------------------------------------------------------------- 1 | 2 | 7 |