Questions tagged [anko-component]

6 questions
3
votes
2 answers

What do i use now that Anko is deprecated?

How do I fix the deprecation warning in this code? Alternatively, are there any other options for doing this? runOnUiThread { doAsync { // room insert query } } // anko Commons implementation…
Bolt UIX
  • 5,988
  • 6
  • 31
  • 58
1
vote
1 answer

Android Studio 3.3.1, Anko support 0.10.7: Getting grey screen with no preview

Using this configuration I can't see any preview of Anko Preview, only a grey screen. Help, I'm Blocked!! I used so many Anko Library 0.10.* and it doesn't work, my preview is only in grey, deadlines are not far and I'm stuck with this problem for…
1
vote
0 answers

Getting an IDE Error with Anko Layout Preview

Update: It may have to do with the fact that I'm using the latest androidx.support libraries rather than old android.support. Will investigate in that direction and update again. update 2: Still get the same error even after creating a project that…
user2297550
  • 3,142
  • 3
  • 28
  • 39
0
votes
1 answer

Android community vs Anko Layouts

I am confused about Anko Layout I read many advantages that Anko Layout have. One of them is executed much faster than xml. But my questions are: Is Anko Layout stable ? Is the community level the same as the Android Community? Have Anko any…
0
votes
1 answer

How to set the button color in Vertical Layout in Anko

I am trying a login form using Anko vertical layout. Trying to change the background and text color of the button like below. But it is not working. class LoginActivity : AppCompatActivity() { override fun onCreate(savedInstanceState: Bundle?)…
Raja Jawahar
  • 6,742
  • 9
  • 45
  • 56
-1
votes
1 answer

android - how to observe viewmodel in ankocomponent

i want to use viewmodelproviders in anko component i studied viewmodel documentation on google developer guide but this particular use case is not documented class BroadcastCalendarFragment: Fragment() { lateinit var mBroadcastModel:…