Skip to content

Commit

Permalink
android better than flutter
Browse files Browse the repository at this point in the history
  • Loading branch information
mariobodemann committed Oct 21, 2021
1 parent e74ba44 commit 3af16d5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions app/src/main/java/berlindroid/zethree/MainActivity.kt
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,10 @@ class MainActivity : Activity() {
}
}

fun onFlutterClicked(view: View?) {
findViewById<Button>(R.id.flutter_button).text = "Android is better than Floeter"
}

fun tryMeFun(view: View?) {
Toast.makeText(
this,
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/res/layout/main_activity.xml
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@
android:id="@+id/flutter_button"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:onClick="tryMeFun"
android:onClick="onFlutterClicked"
android:text="Flutter" />
</androidx.constraintlayout.widget.ConstraintLayout>

0 comments on commit 3af16d5

Please sign in to comment.