python (12.9k questions)
javascript (9.2k questions)
reactjs (4.7k questions)
java (4.2k questions)
java (4.2k questions)
c# (3.5k questions)
c# (3.5k questions)
html (3.3k questions)
Click Handling on Views in Clean Architecture
I have to implement click listener using binding and ViewModel as per clean architecture.
I have two button to select language like English and Chinese.
LanguageActivity.kt
@AndroidEntryPoint
class ...
Taimoor Khan
Votes: 0
Answers: 0
How does ViewModelProviders know when there is a configuration change VS user explicitly creates a new activity?
public class MainActivity extends Activity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.acti...
Qian Wu
Votes: 0
Answers: 1
How do I pass a function from a ViewModel to my scaffold's floating action button in Jetpack Compose?
I'm building an Android app using purely Jetpack Compose. My entire application is wrapped under one scaffold, and has a ViewModel for each "screen" (which are composables) in my app. Becaus...
sping
Votes: 0
Answers: 1
Firebase make 3 requests at a time MVVM
So I am starting to build a chat app and now I am at the registration screen.
Every time I press the login button,the request is sent only 1 time,like it should do.
The problem starts when I get in re...
HoLoGram
Votes: 0
Answers: 1