Questions tagged as 'android-layout'

1
answer

How to make different versions of an image for different screen densities? [duplicate]

I have an image that will be placed inside my app (just an example), how can I do a hdpi , xhdpi , xxhdpi , etc version of it? I know I should put in their folders, but when I only have one image how can I make these differen...
asked by 28.11.2017 / 19:41
1
answer

Change the Hint's gravity - EditText

In the xml of my edittext I put the gravity property to leave the cursor always at the end, however I needed to leave the text hint at the beginning. Is it possible to set a gravity property for the text and another property for the hint? Here i...
asked by 17.10.2017 / 17:00
2
answers

problem of objects on top of each other in Android Studio

I'm learning to create android apps, but face-to-face I get an error when I test the app on my phone, and text gets on top of the other, or any object I add. inAndroidstudiolookslikethis: xml:<?xmlversion="1.0" encoding="utf-8"?> <a...
asked by 04.09.2017 / 23:33
1
answer

Error inflating class android.support.design.widget.NavigationView Android NavigationView

Good evening everyone!    I'm trying to create an application with navigationView pwla the first time and I'm encountering problems at the time of the setContentView call (R.layout.activity_main); the application consists of the activity main ca...
asked by 31.08.2017 / 03:25
1
answer

Error: (44) No resource identifier found for attribute 'srcCompat' in package 'name of my package'

Hello, When I open my project, the following error occurs: Error: (44) No resource identifier found for attribute 'srcCompat' in package. And the R of my layout, do not find the layouts and with that all my classes are in error. Here are some...
asked by 15.10.2017 / 19:46
2
answers

I can not add items in scroolview

I'm using this scroolview however I need to put new items underneath, and when I scroll down it does not come down, could you help me? follow xml code: link     
asked by 20.07.2017 / 02:32
4
answers

How do I insert a button after a listview?

Hello, I need to insert a button right after my listview. That is, when I finish sliding my listview will have a button at the end. I'm trying to do as follows: <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"...
asked by 08.06.2017 / 20:20
2
answers

GridView scroll slow, heavy,

I'm trying to create an app that is sort of a gallery. Search for photos on your phone and show it to the user. The app is already working, but it happens that the gridview scroll is slow. I do not know what to do to try to improve perform...
asked by 30.03.2017 / 13:11
1
answer

How to show the old android timePicker? the one that appears only the numbers

I'm using a code from the android documentation itself to create the timepicker as a dialog, but it's popping up like this AndIwantittoappearlikethis ClassthatcreatestimepickerpublicclassTimePickerFragmentextendsDialogFragmentimplementsTimeP...
asked by 29.03.2017 / 01:02
1
answer

Central alignment appears correctly in the preview of the activity, but not in the execution of the app?

I placed center alignment for all textView and activity preview, still in android studio, all right: ButwhenIruntheappitdoesnothappen: Evenifyousetthelayout_widthoftextViewstomath_parentsothattheyhidethewholeextensionofthedeviceinthehori-zon...
asked by 20.03.2017 / 00:06