Questions tagged as 'android-xml'

1
answer

What is the reason for the "This view is not constrained ..." error in ConstraintLayout?

What is the reason for this error?    This view is not constrained, it only has designtime positions, so it will jump to (0,0) unless you add constraints XML <?xml version="1.0" encoding="utf-8"?> <android.support.constraint.Co...
asked by 22.06.2017 / 00:05
2
answers

Change visibility of xml layout with change of device orientation

I need to change the visibility of a layout in xml when the orientation of the device is from portrait to landscape. I want to add 2 columns when performing this action. I used the code android:visibility="gone" to hide, but I can not fin...
asked by 25.11.2017 / 16:32
1
answer

How to change the brightness of the EditText cursor?

I would like to know the name of the attribute that changes that color bar, Thanks.     
asked by 02.07.2016 / 22:45
2
answers

Underline a word inside a TextView [duplicate]

How can I emphasize, leave a single word inside a TextView in bold / italic? For example: <TextView android:text="Abelha Barco Casa Dado" android:layout_width="wrap_content" android:layout...
asked by 22.12.2016 / 20:50
1
answer

I'm wrong with Apostrophe not preceded by

I'm trying to internationalize my app to the English language, but I end up getting this error    Error: (10) Apostrophe not preceded by \ (in Please note, if you're on a device with android 6.0 above, you need the permissions that the follow...
asked by 07.11.2016 / 15:43
1
answer

How to create a divider between views?

I'm creating an app that uses ListView to show items and wanted to know the best and most personalized way to create splitters between them, I also wanted to know how to use another divider between two icons, which are the options that st...
asked by 13.11.2017 / 20:04
1
answer

Images on different types of screen

At this moment I have these layout's to support the different screen sizes When I test the app on 4-inch or 4.5-inch devices, both will use the activity_main.xml layout that corresponds to the normal size but repair that on the 4...
asked by 06.02.2017 / 20:29
2
answers

How to avoid the layout destroyer in the Tabbed Layout when changing the tab?

I'm making a system with tabbed layout and with recycler view, on the first tab are the products, I click on a place the quantity and it marks the product. When I go to the third tab, the marking on the product disappears, how do I stop it? T...
asked by 21.11.2018 / 17:38
1
answer

ImageButton does not correctly display image background

I have a school system with schedule of each course and I have an activity where the user must select his course to have access to his schedule. This activity has 5 imageButtons but these imageButtons are not being displayed properly, eve...
asked by 03.08.2017 / 03:02
0
answers

Back in Android menu

There is a menu inside a menu, how to go back in the previous menu? <menu xmlns:tools="http://schemas.android.com/tools" xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:android="http://schemas.android.com/apk/res/android"> <...
asked by 28.09.2018 / 03:02