Es gibt viele Möglichkeiten an ein Ziel zu kommen. Manchmal fällt es jedoch schwer, eine gute und schnelle Lösung zu finden.
Hier schreiben wir über Tipps und Erfahrungen, welche wir gerne mit der Welt teilen möchten.
WE SHARE OUR KNOW-HOW.
Es gibt viele Möglichkeiten an ein Ziel zu kommen. Manchmal fällt es jedoch schwer, eine gute und schnelle Lösung zu finden.
Hier schreiben wir über Tipps und Erfahrungen, welche wir gerne mit der Welt teilen möchten.
Announcing our first open source library.
I found existing Pickers to be quite limiting.
They can be found in the official Pickers documentation.
The name already gives it away. They only work with either date or time data.
The official NumberPicker can be hacked to display custom strings instead. To do this you have to use the setDisplayedValues method.
However, styling is practically impossible.
I haven't been able to find a library which fulfills all my criteria. Either they were:
<ch.swissdev.pickerview.PickerView
app:orientation="vertical" />
<ch.swissdev.pickerview.PickerView
app:fadeColor="@android:color/black"
app:orientation="vertical" />
<ch.swissdev.pickerview.PickerView
app:selectedItemColor="#6200EE"
app:fadeColor="@android:color/black"
app:orientation="vertical" />
Oriented horizontally
<ch.swissdev.pickerview.PickerView
app:selectedItemColor="#6200EE"
app:fadeColor="@android:color/black"
app:orientation="horizontal" />
<ch.swissdev.pickerview.PickerView
app:applyColorFilterToImageViews="true"
app:selectedItemColor="#6200EE"
app:fadeColor="#03DAC5"
app:orientation="horizontal" />
web_view.settings.domStorageEnabled = true
implementation platform('com.google.firebase:firebase-bom:24.6.0')
implementation 'com.google.firebase:firebase-auth'
implementation 'com.google.firebase:firebase-firestore'
Source: https://firebase.google.com/docs/android/setup#firebase-bom
val intent = packageManager.getLaunchIntentForPackage(packageName)
finishAffinity()
startActivity(intent)
exitProcess(0)
ProviderInstaller.installIfNeeded(context)
Source: https://developer.android.com/training/articles/security-gms-provider
./gradlew app:dependencies > tree.txt
val intent = Intent(Intent.ACTION_SEND)
intent.putExtra(Intent.EXTRA_TEXT, content)
intent.type = "text/plain"
startActivity(Intent.createChooser(intent, title))
This is particularly useful if you are using someone elses account. Just add the query parameter `hl`. For example: `hl=en`.