Questions tagged as 'android'

1
answer

Change color of icons in API 19 KitKat

Since API 19 (KitKat) is still very popular, it is a good choice to support this release. However, it does not support many features, such as backgroundTint and ImageTint. This puts me in many compatibility issues and design choices. I have s...
asked by 11.05.2017 / 15:47
1
answer

How to get the status of Android toggleButton?

How to get the status of ToggleButton if it is turned on or off, I looked at the documentation of Android only has the method to change the state, had to pick the state of the button to make the comparison.     
asked by 12.05.2017 / 19:57
1
answer

setOnClickListener Adapter on an object in the row of a ListView

My app has a ListView, in which it receives information from a Json (URL), and each line has an ImageView that when clicked, line information will be added as "Favorite". For this, I created two images (iconfav_off and iconfav_on), Then I...
asked by 22.02.2017 / 02:35
1
answer

How do I put a list in disguise with RecyclerView in Android Studio

I need to put the list down, ie the list starts from the java image which should be the first image. This is a RecyclerView     
asked by 20.10.2017 / 20:41
1
answer

Layout Chat -Invert the side of my message

So I'm starting now to do the chat activity I do not have any code yet, but thinking of the process came a doubt ... Almost the way I'm going to do All sent messages will be on one side, what I want is for it stays the same as whatsapp or many o...
asked by 05.02.2017 / 23:59
1
answer

Error with Android Style

I'm not able to compile my project, I get the following error <type> attribute is required for <item> Here'smystyle.xml<?xmlversion="1.0" encoding="utf-8" ?> <resources> <style name="MyTheme" parent="MyTheme.Base...
asked by 25.05.2017 / 03:09
1
answer

Registration Screen - User Replay

I have a post code, which registers my users, but they can be repeated, I would like help to make a code so that users can not repeat themselves, however I am new to Android and I do not know how to do this , my code: public class onbuttonclic...
asked by 22.05.2017 / 20:27
1
answer

How to change the text color of the navigation drawer?

As I do to change the color of the text, I already tried to add textcolor in the menu's XML and it does not work     
asked by 25.05.2017 / 19:50
4
answers

ImageButtons Background

I have a ImageButton and when I click on it I want the Background of it to pass to another ImageButton . I have View v of the first ImageButton , and imgB6 is the ImageButton I want to get the ba...
asked by 29.01.2017 / 23:13
2
answers

TextView is not displaying decimal numbers of a variable of type long!

I created 3 TextViews and 2 variables of type long . 2 of the TextViews will display the two long variables separately, the latter displaying the result of a division of the first variable ( n01 ) variable long by the second ( n02 ). = >...
asked by 01.02.2017 / 00:55