android-components Questions
11
Solved
Is there a way to pass additional argument to my custom AndroidViewModel constructor except Application context.
Example:
public class MyViewModel extends AndroidViewModel {
private final LiveDat...
Aside asked 18/9, 2017 at 16:17
10
Solved
I try to implement persistent library in my android kotlin project, but catch this error on compile time:
error: Room cannot pick a constructor since multiple constructors are
suitable. Try to ...
Billingsgate asked 19/6, 2017 at 0:39
4
By using the below code, I'm trying to start new service from a Broadcast receiver, but the service does not seem to start. What is the correct way to start a service in kotlin?
val intent = Intent...
Necking asked 9/8, 2017 at 8:47
0
I'm trying to debug some code and was hoping to list the fragments in the current backstack in Android. The stock solution is to simply list them from the support manager, so from a method within a...
Roley asked 26/5, 2019 at 19:59
7
I'm currently using the Android Architecture Component's Navigation, but I'm running into an issue with my Navigation Drawer. It shows the hamburger menu when at my starting destination, but other ...
Extremist asked 25/7, 2018 at 23:8
1
Solved
Directory
@Entity(tableName = "directory")
class Directory(@PrimaryKey(autoGenerate = false) var id: Int? = null,
@ColumnInfo(name = DIR_NAME) var dirName: String? = null,
@Ignore var dirImages:...
Jens asked 11/5, 2018 at 9:44
2
Solved
Today I was Googling for "material design components" I ended up at this site:
https://material.io/components/
As I remember, I've never seen it before.
In the Android section there are instru...
Tolerate asked 10/4, 2018 at 2:40
4
When editing Java files, if I'm at the end of the line and I type the Enter key, it starts the next line properly indented 4 columns, to match the line above. That's OK but it's indenting with a ta...
Thunderpeal asked 1/6, 2016 at 19:59
1
© 2022 - 2024 — McMap. All rights reserved.