Questions tagged as 'android-studio'

1
answer

How to convert the date and time into a text? Android Studio

for example: 03/28/2018 10:57:24 and when registering or updating it is appreciated: "A moment ago", "An hour ago" in the xml     
asked by 28.03.2018 / 17:59
1
answer

Change the color of a button when pressed [duplicated]

I'm trying to make a Button change color by pressing it but there's no way activity_xml: drawable:     
asked by 01.02.2018 / 05:24
1
answer

ListView cap to TextView

You see, I have to do an exercise in which, I have a textview next to a ListView, which has several names. When you click on the ListView, the text of the TextView will be changed to the element of the chosen ListView. But I find that the listvi...
asked by 14.01.2018 / 11:46
1
answer

Intermediate photo in a TextView without cutting the text in two

How can I place text around elements in Android Studio to look like this: Or with the intermediate text without having to chop the text in two like this:     
asked by 11.12.2017 / 18:28
1
answer

IllegalStateException error using MediaPlayer - Android

I am developing an app, it works, I give the list view the radio I want, it starts to play, but if I try to change the radio it fails. Any solution? Here the LogCat:    10-03 11: 56: 32.895 1410-1410 / com.david.animefm2   D / ViewRoo...
asked by 03.10.2017 / 12:03
2
answers

Have an app end when it is placed in the background?

I would like to know how I can achieve this, if it is killing all the Activities, because I am doing a kind of Password Manager.     
asked by 05.10.2017 / 23:05
1
answer

How can I invest a Layout? [closed]

What I want is to invest a Layout (that looks around) , so they have an idea is something like this:     
asked by 21.09.2017 / 22:52
1
answer

Go to another Activity Android Studio [duplicated]

I have a problem with the following code: public void BotonAceptar (View vista){ Intent intent= new Intent (DadesPersonals.this, EAC1.class); startActivity(intent); setContentView(R.layout.activity_eac1); EAC1...
asked by 26.09.2017 / 12:01
1
answer
2
answers

Error: error: '' is incompatible with attribute android: layout_weight (attr) float. and "R" red

I have the following error: And this is the code he sends me to: <?xml version="1.0" encoding="utf-8"?> <android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="...
asked by 10.11.2017 / 23:18