Questions tagged as 'android-xml'

0
answers

Change the text color of a button via XML when clicking on it

Good afternoon!   I'm creating a styleGuides for an android application and I'm having a hard time changing the text color of the button to the moment it is clicked by the user:   In this example I'm creating a cancel button, where, initially, t...
asked by 05.05.2018 / 20:08
0
answers

How to increase the space between items in a navigation drawer?

DevelopinganapplicationIsawthatindeviceswithhigherresolutiontheitemsgetveryclosetogether,Iwantpracticality,thisishowmobileapplicationsshouldbe,nobuttonstoosmall,thismakestheuser'slifedifficult,asyoucanseeinthephotonordoesitseemtohavelittlesospa...
asked by 19.07.2017 / 03:08
1
answer

How to implement this class in a TextView so that it works correctly?

I found this " self-shrinking " code in the link and would like to know how to implement in TextView. ** * DO WHAT YOU WANT TO PUBLIC LICENSE * Version 2, December 2004 * * Copyright (C) 2004 Sam...
asked by 15.06.2015 / 22:43
2
answers

How to use ScrollView and LinearLayout with full screen height?

I have my code: <?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:tools="http://schemas.android.com/tool...
asked by 15.10.2016 / 02:27
1
answer

Is it possible to use a Strings.xml specific to the Android version?

I applied a different color to certain words within some TextViews with the% TAG of%. I was able to get to this result after an internet search. The problem is that this feature only works for newer versions of Android, in older versions the...
asked by 21.07.2018 / 00:54
1
answer

It is possible to use a variable in Strings.xml

I'm trying to make a string in the string.xml replace a field on the screen, but I've been searching and I'm not able to use it as a variable string.xml <string name="nome">%1$s</string> class.java Resources res = getResour...
asked by 14.07.2017 / 21:32
1
answer

Put Button at the bottom of the screen - Android

I have an ExpandableListView and a button that should only appear when someone gives the Scroll on it until the end. I already tried to put it as footer but if the list ends in the middle of the screen the button is in the middle, I need it to b...
asked by 05.07.2016 / 16:03
1
answer

CardView within a ScrollView

I can not get the scrollview to work in my cardview .... As the scrollview works with a single child, I changed the main layout to ScrollView and created a linearLayout to encompass the rest within it. but it does not work at all, I did exactly...
asked by 05.05.2018 / 21:28
1
answer

circle with shape edges

How to make this circle in xml? What I have so far: <?xml version="1.0" encoding="utf-8"?> <layer-list xmlns:android="http://schemas.android.com/apk/res/android"> <item android:top="4dp" android:right=...
asked by 26.12.2017 / 12:06
1
answer

Problems with xml in different sizes of screens [duplicated]

Good afternoon, I can not understand how it does the compatibility of several screen sizes in my application, I looked on the internet and on youtube and there to create a folder inside res with the name layout-small if it would be for small...
asked by 05.09.2017 / 20:29