mirror of
https://github.com/Skysamara/airshot_a.git
synced 2025-12-05 22:06:05 +00:00
add button start shooting
This commit is contained in:
parent
353c34dbe3
commit
2cb5a3825a
1
.idea/misc.xml
generated
1
.idea/misc.xml
generated
@ -5,6 +5,7 @@
|
||||
<map>
|
||||
<entry key="..\:/_my/_Project/airshot_a/app/src/main/res/drawable-anydpi/ic_bluetooth_off.xml" value="0.143" />
|
||||
<entry key="..\:/_my/_Project/airshot_a/app/src/main/res/drawable-anydpi/ic_bluetooth_on.xml" value="0.1" />
|
||||
<entry key="..\:/_my/_Project/airshot_a/app/src/main/res/layout/activity_main.xml" value="0.184375" />
|
||||
<entry key="..\:/_my/_project/android/airshot/app/src/main/res/layout/activity_main.xml" value="0.75" />
|
||||
</map>
|
||||
</option>
|
||||
|
||||
@ -86,6 +86,12 @@ class MainActivity : AppCompatActivity() {
|
||||
Toast.makeText(this, "Turn on bluetooth first", Toast.LENGTH_SHORT).show()
|
||||
}
|
||||
}
|
||||
|
||||
shootBtn.setOnClickListener {
|
||||
//TODO Проверить, что bluetooth включен и подключена мишень
|
||||
startShooting()
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
override fun onActivityResult(requestCode: Int, resultCode: Int, data: Intent?) {
|
||||
|
||||
@ -56,6 +56,13 @@
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:textColor="#000"/>
|
||||
<Button
|
||||
android:id="@+id/shootBtn"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
style="@style/Widget.AppCompat.Button.Colored"
|
||||
android:text="Start shooting"
|
||||
android:minWidth="200dp"/>
|
||||
|
||||
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user