Questions tagged as 'android-layout'

0
answers

Problem with Nine-Patch image in Android Studio?

I have this XML code for the APP interface: <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" **android:background="@drawable/fond...
asked by 03.05.2016 / 17:11
1
answer

Problem when calling the Keyboard from an AlertDialog that is called from the fragment

Well, basically, I have the following problem. I have a ReciclerView that contains several EditText and will update it as the text changes and when it is required, it will return the list of items. This in turn is done from an AlertDialog, si...
asked by 11.11.2018 / 06:51
6
answers

Do not go back to a previous activity

The fact is that I want that when the application is executed for the first time, the first activity of PresentacionActivity is shown and that when the user press continue button go to the next activity, start the MainActivity. After this, that...
asked by 17.09.2018 / 19:09
3
answers

Cancel AsyncTask and the ProgressDialog when pressing back button on Android

I have a AsyncTask that launches a ProgressDialog in modal form, that can not be canceled. In the onPreExecute start the progressDialog progress = ProgressDialog.show(MainActivity.this, "titulo","progreso x", tru...
asked by 31.05.2017 / 22:04
3
answers

Android components together when running app

First time this problem happens to me, I created a very small application from scratch, everything is perfect in the design, but when you run the app, everything comes together on the top - left side. Here the code: <?xml version="1.0...
asked by 25.04.2017 / 01:29
3
answers

Disable a button

Good afternoon, I was trying and I do not understand how to do it. I want the user to choose an option, by pressing a button, depending on the button you have chosen, a specific action takes place. The problem is that if you press the A button,...
asked by 10.09.2016 / 16:11
2
answers

Android: CoordinatorLayout problem with GridView

Inside a CoordinatorLayout I have a GridView, the problem I have is that only the first two images of the GridView are seen and the rest are not anymore, I hope and they can help me. <?xml version="1.0" encoding="utf-8"?> <android.su...
asked by 13.12.2016 / 01:01
1
answer

Material Design Toolbar to save content

I want to generate the following toolbar following the guidelines of Material Design on the left that shows the X , the title and on the right a button Save Starting with the template that is autogenerated by Android-S...
asked by 06.02.2018 / 15:37
1
answer

Error Only the original thread that created a view of the hierarchy can touch its views. on Android

After Android-Studio warned me that there is too much load on the main thread.    Skipped 113 frames: the application may be doing too much work on its main thread I have created a runnable to launch a thread with some processes:...
asked by 10.05.2017 / 15:14
2
answers

How to detect the rotation of the screen and change the data of the GridLayoutManager

As many of us know that when turning the screen of the phone or tablet what the application does is to load the activity again, I need to detect that turn and change the value of the GridLayoutManager and pass it to the recyclerview, the content...
asked by 18.11.2017 / 06:17