Questions tagged as 'android'

1
answer

Attribute "titleTextStyle" has already been defined

I try to compile my project but I get these types of errors    "Error: (2) Attribute" titleTextStyle "has already been defined" this is my gradle dependencies { compile 'com.android.support:multidex:1.0.0' compile project(':library') co...
asked by 04.05.2016 / 19:49
2
answers

Problem with gradle sync

I just installed Android Studio , and you're giving me this error all the time: Failed to resolve: com.android.support.test.espresso:espresso-core:2.2.2 Failed to resolve: com.android.support: appcompat-v7:26 Any suggestions as to w...
asked by 20.07.2017 / 08:56
1
answer

Sort View Pager

I was working with ViewPager and I had a problem. I have 3 layout created (screen1, main screen, screen2) that I want to show that way, that the application opens showing the main screen and that when I slide to the left it shows the screen1 and...
asked by 03.10.2016 / 23:26
1
answer

Calendar HOUR_OF_DAY and MINUTE

I have this problem: Calendar c = Calendar.getInstance(); Log.i("RESULTADO", String.valueOf(c.get(Calendar.HOUR_OF_DAY))); Log.i("RESULTADO", String.valueOf(c.get(Calendar.MINUTE))); This gives in the logcat: I/RESULTADO: 10 I...
asked by 18.06.2016 / 17:26
2
answers

Update ImageView from a File

I am trying to update a ImageView from a File , but I do not get it. Let me explain: It is a simple app that just uploads and searches for a specific photo on the card and displays it. That makes it great. When I press the button...
asked by 29.09.2016 / 15:25
1
answer

Hour data for a Spinner

I have a Spinner and as data these hours: final String[] horasInicio = new String[] { "09:00", "09:30", "10:00", "10:30", "11:00", "11:30", "12:00",...
asked by 15.06.2016 / 15:37
2
answers

I have a problem with the getMenuInflater ()

package com.example.victor.asteroids; import... public class MainActivity extends AppCompatActivity { private Button btnAcercaDe,btnSalir; @Override protected void onCreate(Bundle savedInstanceState) { super.onCrea...
asked by 17.06.2016 / 20:57
3
answers

Check if there is a comma and replace it with a period

I have an EditText where I pick up what was entered in the box and I am trying to verify if it introduced commas, letters where only a format like this is allowed: 123.11 If the user enters the parameter other than a value of type Float the a...
asked by 27.05.2017 / 17:10
2
answers

call a method in an Android activity

public void onDateSet(DatePicker view, int year, int month,int day){ String date = day+"/"+(month+1)+"/"+year; Activity1 act1 = new Activity1(); act1.MostrarDatos(date); } As you can see I want to run a method of the first activi...
asked by 20.12.2016 / 23:37
3
answers

Change the color of a TextView to only certain characters

I have this TextView : <TextView android:id="@+id/textView17" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginTop="10dp" android:text="Lorem ipsum dolor sit amet,...
asked by 01.06.2017 / 10:44