Questions tagged as 'android'

1
answer

Error creating sparrow up menu in cardview

I'm creating an application that uses cardview in my list. And I'm having trouble adding the menu in the cardview, as shown below: Mycardviewclass:classCustomAdapterextendsBaseAdapter{privateList<Palheta>palhetas;publicCustomAdapter(List&...
asked by 12.01.2018 / 21:27
3
answers

ERROR: No resource found that matches the given name: attr 'colorAccent'

I created a project from scratch and when I was compiling it is giving this error. I have already updated the Android SDK and still the error continues. This is giving on all Style.xml nodes . What is going on? It's the first compile. My Style...
asked by 25.09.2017 / 18:24
1
answer

Activate button event when giving enter in an edit

I created a "register" screen where the user informs the name / surname and where there is a Continue button that goes to another screen. I would like this new screen to open when the user hit Enter, but I do not know how to make the Enter key h...
asked by 26.10.2017 / 04:48
2
answers

how to put monetary mask for EditText in an Android application?

How to put monetary mask for EditText in an Android application only with numeric values without the R $, that is, to print in EditText 2.99? If you have an example.     
asked by 14.11.2017 / 12:46
2
answers

Open BLOB in php

I have a field of type BLOB to save images in my mysql, the image comes from an android APP via POST, the way the BLOB string arrives I saved in the bank. When I try to show the contents of this BLOB in a page, everything goes blank. PHP code t...
asked by 11.09.2017 / 18:52
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
2
answers

Do you need to use the AppCompat and Support Design libraries when the minimum API is 21?

Recently I upgraded an application that I'm developing to use a minimum API at 21 (Lollipop), before it was at 19 (KitKat). In the case of KitKat I needed to use AppCompat and Support Design to enjoy the DrawerLayout, CoordinatorLayout, Float...
asked by 13.09.2017 / 16:55
1
answer

ListView with config.properties

I have the following question, I'm using a listview with a 300 character of a game, when clicking on a character it inserts some data that is written in config.properties , all the characters have descriptions, vocations among other...
asked by 14.09.2017 / 15:47
2
answers

How to read Json with Android

I would like to know how I read json in two different ways. 1 - I have a Json {"nome": "JOA", "cpf": 7.4417, "idade": "15"},{"nome": "PAT", "cpf": 8.5528, "idade": "20"}"}; This even can read and play in variables, but only the first par...
asked by 14.09.2017 / 22:03
1
answer

Creating a positiveButton in a Dialog on Android

I have the following method to create a Dialog in an Android application: public static void alertBuilder(String mensagem, Type tipo, Context contexto){ Dialog dialog = new Dialog(contexto, R.style.alert); dialog.setContentView...
asked by 21.06.2018 / 20:36