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