When using PreferenceDialogFragmentCompat in androidx.preference, you need to pass your fragment as a target fragment that implements DialogPreference.TargetFragment.
However, Fragment.setTargetFragment() is deprecated.
Official solution: @SuppressWarnings("deprecation"). 😂
@Zahra_HY ViewModel scoped to a common parentFragment
So it should be something like this:
ViewModelProvider(requireParentFragment()).get(SharedViewModel::https://t.co/YfzFvC3IUn)
Where the two fragments are child fragments using childFragmentManager of the common parent Fragment.
If you ever want to show embedded YouTube content in a WebView, it is useful to know that the fullscreen button won't work out of the box.
You need to manually show the fullscreen view using WebChromeClient's onShowCustomView/onHideCustomView callbacks.
https://t.co/yeUWhNxAYK
Who's excited for the new Simple-Stack 2.7.0 update? 😁 #androiddev
After a few days of coding, predictive back support (Android 14, targetSdk 34, android:enableBackInvokedCallback) is finally coming 😉
Migration path is provided from onBackPressed/HandlesBack, of course.
@CFDevelop It helps describe how an endpoint is expected to work.
I.e. GET and DELETE shouldn't accept a body.
Also POST, PUT, PATCH and DELETE doesn't necessarily return a response body.
Lots of nuances which help with design/understanding of how endpoints are intended to be used.
@dhirajchhabra97 @androiddevRTbot Not all svg allow methods are allowed vector methods for Android.
There is a great tool, #CoralVector I use to inspect svgs that seem to have issues in Android Studio.
@dhirajchhabra97 @androiddevRTbot Not all svg allow methods are allowed vector methods for Android.
There is a great tool, #CoralVector I use to inspect svgs that seem to have issues in Android Studio.
Building and maintaining free, open-source projects is glorified on social media, but it comes at a cost.
It takes time and effort away from freelancing and building profitable projects.
I appreciate FOSS projects as much as the next guy, but there's a dark side to it.
@DroidlifeRs Plenty of these so-called "best practices", especially multi-module setups, arise from the vision that "Reddit has 200+ modules, Lyft has 850+ modules, clearly you need many modules to make good apps" but they did it because they have a huge team, not because YOUR app needs them.
@VasiliyZukanov You could add 1 line of ViewBinding code (MyFragmentBinding binding = MyFragmentBinding.bind(view);) above your findViewByIds, and then replace the `Button button = findViewById(https://t.co/o33ctthnYR.btnButton)`s with `Button button = binding.btnButton` and you solved the issue
12 years ago, Twitter’s office used a Mac Mini to tunnel into the servers. One day, an IT guy found it in the closet.
“Anyone know who owns this?”
“Unplug it. Someone will show up.”
Everyone lost access to servers. Huge crisis. It became known as the “Load Bearing Mac Mini.”
Finally working on some projects that use #JetpackCompose in prod, a few things I'm really enjoying..
1 - annotating everything with "experimental"
2 - Guessing what my ui looks like because the preview is broken
3 - All the time I get back waiting for things to build 👌
TSHA Stock Soars 56%+ on Astella Deal…But Here are 3 Issues Investors Need to See!
If you’re not yet familiar with this company, the name tells you they’re engaged in gene therapy.
https://t.co/es7bQ5SqOx
@LiamBlizard It's the perception on openness. .NET is seen by most as a Microsoft owned, MS led technology.
And the best C# and .NET experience comes when buying a Visual Studio license. VS Code works ok, but not nearly as great.
https://t.co/M6F1KshzgR
We released @realm Kotlin 1.4.0 with support for Kotlin 1.7.20 🥳. Also, the new memory model is now the only one supported. Details are in the changelog: https://t.co/eh1nLaVxDr