Questions tagged as 'kotlin'

1
answer

RecyclerView how to pass the data to two different layouts?

Good I have two layouts created odd and even in the form of a card and I want them to be sent according to odd or even the position to the main layout that would be the recyclerView and I do not know how to work the adapter so that I can only se...
asked by 29.09.2018 / 19:38
0
answers

kotlin (Spring boot 2 + JPA + mysql) - Error creating bean with name

I'm working with kotlinVersion = '1.2.51' springBootVersion = '2.0.5.RELEASE' java 8 but I have an error when compiling the code I get something like org.springframework.beans.factory.UnsatisfiedDependencyException: Error crea...
asked by 24.09.2018 / 22:59
2
answers

Open fragment from activity

How can I open the ItvList fragment from the AddItv activity's Snackbar? import android.app.DatePickerDialog import android.content.Intent import android.os.AsyncTask import android.support.v7.app.AppCompatActivity import android.os.Bundle imp...
asked by 10.09.2018 / 09:00
1
answer

Android studio EditorLayout problems

the views of my interface are not shown in the android editorLayout help, thanks ] 1     
asked by 23.08.2018 / 07:13
0
answers

Problems with fragments and bottom navigation bar

I'm starting in the world of android and kotlin, and I'm having a problem that when I click on an item in the bottom nav bar, instead of going through fragment, I close the app. I sent them the code of the classes and fragments that I generated...
asked by 22.07.2018 / 15:53
0
answers

Create a searchbar kotlin

Hi, I need to create a searchbar that filters the results of my cardview. This is the cardview class: import android.content.Intent import android.os.AsyncTask import android.support.v7.app.AppCompatActivity import android.os.Bundle import...
asked by 08.07.2018 / 18:23
0
answers

Intent between cardview kotlin

Good morning I have a problem to pass data between my different activities with cardview. My app could be divided as follows: Activity A.1: It consists of an activity with a cardview where I manage a JSON. Activity A.2: It is the ada...
asked by 07.07.2018 / 18:00
0
answers

TextView null after the callBack of an object With Dagger2

I have a problem trying to change a TextView through a callback using an object provided by Dagger2. If I make the instance of the same object of the common form (new Object ..) everything works. But if it is done through the dagger instance the...
asked by 02.07.2018 / 20:15
1
answer

how to work with an item of a spinner

I have a spinner and when I'm in "Annual" I want to modify an EditText, how could I do that, this is my code val tipo_plan = listOf("Anual","Mensual","Individual") val adapterTipo_plan = ArrayAdapter<String>(this, android.R.layou...
asked by 28.06.2018 / 18:21
0
answers

how could I create a PUBLIC folder in internal memory in android?

I managed to create the folder but private, that is, only the same app can see it and what I'm looking for is that it can be viewed from any file browser, internal memory not sd val directorio = File(filesDir, nombreDirectorio) if (!d...
asked by 21.06.2018 / 02:23