kleinere Anpassungen

master
Niko Diamadis 6 years ago
parent 161e8371df
commit 54ac48d603

@ -144,7 +144,7 @@ class MainActivity : AppCompatActivity() {
MaterialDialog(this) MaterialDialog(this)
.cancelable(false) .cancelable(false)
.title(0, "Bitte gebe deinen Namen ein") .title(0, "Bitte gib deinen Namen ein")
.show { .show {
input(hint = "Dein Name", prefill = currentName, waitForPositiveButton = false) { dialog, inputName -> input(hint = "Dein Name", prefill = currentName, waitForPositiveButton = false) { dialog, inputName ->
try { try {
@ -180,7 +180,7 @@ class MainActivity : AppCompatActivity() {
databaseReference.addChildEventListener(listener) databaseReference.addChildEventListener(listener)
MaterialDialog(this) MaterialDialog(this)
.title(0, "Bitte gebe den Admin-Key ein") .title(0, "Bitte gib den Admin-Key ein")
.show { .show {
input(hint = "Admin-Key", waitForPositiveButton = false) { _, inputKey -> input(hint = "Admin-Key", waitForPositiveButton = false) { _, inputKey ->
positiveButton { positiveButton {

@ -136,7 +136,6 @@ class ProjectActivity : AppCompatActivity() {
} else { } else {
MaterialDialog(this) MaterialDialog(this)
.show { .show {
title(0, "Fehler")
message(0, "Du bist bereits eingetragen.") message(0, "Du bist bereits eingetragen.")
positiveButton(0, "Ok") positiveButton(0, "Ok")
} }

@ -10,6 +10,6 @@ class IconCredits : AppCompatActivity() {
override fun onCreate(savedInstanceState: Bundle?) { override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState) super.onCreate(savedInstanceState)
setContentView(AboutIcons(this, R.drawable::class.java).hideModificationAnnotation().setTitle("Benutzte Icons").get()) setContentView(AboutIcons(this, R.drawable::class.java).setTitle("Benutzte Icons").get())
} }
} }

@ -10,7 +10,9 @@
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_gravity="center_horizontal" android:layout_gravity="center_horizontal"
android:layout_marginTop="20dp"> android:layout_marginTop="20dp"
android:layout_marginStart="35dp"
android:layout_marginEnd="35dp">
<TextView <TextView
android:id="@+id/title_view" android:id="@+id/title_view"

Loading…
Cancel
Save