remove the unnecessary button
This commit is contained in:
parent
b1c41b2985
commit
9b1234d081
@ -25,7 +25,6 @@ import kotlin.random.Random
|
|||||||
class MainActivity : AppCompatActivity() {
|
class MainActivity : AppCompatActivity() {
|
||||||
|
|
||||||
|
|
||||||
private lateinit var myButton: Button
|
|
||||||
private lateinit var mainLayout: ConstraintLayout
|
private lateinit var mainLayout: ConstraintLayout
|
||||||
private lateinit var canvasview: View
|
private lateinit var canvasview: View
|
||||||
private lateinit var tv: TextView
|
private lateinit var tv: TextView
|
||||||
@ -49,14 +48,10 @@ class MainActivity : AppCompatActivity() {
|
|||||||
v.setPadding(systemBars.left, systemBars.top, systemBars.right, systemBars.bottom)
|
v.setPadding(systemBars.left, systemBars.top, systemBars.right, systemBars.bottom)
|
||||||
insets
|
insets
|
||||||
}
|
}
|
||||||
myButton = findViewById(R.id.button)
|
|
||||||
mainLayout = findViewById(R.id.main)
|
mainLayout = findViewById(R.id.main)
|
||||||
canvasview = findViewById(R.id.view)
|
canvasview = findViewById(R.id.view)
|
||||||
tv = findViewById(R.id.textView)
|
tv = findViewById(R.id.textView)
|
||||||
|
|
||||||
myButton.setOnClickListener {
|
|
||||||
csacsi(mainLayout, canvasview, tv)
|
|
||||||
}
|
|
||||||
handler.post(updateFiboClock)
|
handler.post(updateFiboClock)
|
||||||
}
|
}
|
||||||
private fun csacsi (m: ConstraintLayout, cv: View, tv: TextView) {
|
private fun csacsi (m: ConstraintLayout, cv: View, tv: TextView) {
|
||||||
|
|||||||
@ -19,17 +19,7 @@
|
|||||||
app:layout_constraintEnd_toEndOf="parent"
|
app:layout_constraintEnd_toEndOf="parent"
|
||||||
app:layout_constraintStart_toStartOf="parent"
|
app:layout_constraintStart_toStartOf="parent"
|
||||||
app:layout_constraintTop_toTopOf="parent"
|
app:layout_constraintTop_toTopOf="parent"
|
||||||
app:layout_constraintVertical_bias="0.663" />
|
app:layout_constraintVertical_bias="0.758" />
|
||||||
|
|
||||||
<Button
|
|
||||||
android:id="@+id/button"
|
|
||||||
android:layout_width="wrap_content"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:text="Na Nyomás!"
|
|
||||||
app:layout_constraintBottom_toBottomOf="parent"
|
|
||||||
app:layout_constraintEnd_toEndOf="parent"
|
|
||||||
app:layout_constraintStart_toStartOf="parent"
|
|
||||||
app:layout_constraintTop_toBottomOf="@+id/textView" />
|
|
||||||
|
|
||||||
<View
|
<View
|
||||||
android:id="@+id/view"
|
android:id="@+id/view"
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user