Questions tagged as 'android'

1
answer

Display Interstitial when clicking the home button of ToolBar

I tried to implement displaying an interstitial banner on the home button of my activity but it did not work correctly. I used @Override public boolean onOptionsItemSelected(MenuItem item) { int id = item.getItemId(); if (id ==...
asked by 27.04.2017 / 23:13
2
answers

Send data from a Fragment to an Activity

Good Morning Personal I have a fragment containing a listview where it clears the data coming from a webservice. In the onclick method I have the following code where I pass some values to another activity according to the code below. ltwPacot...
asked by 27.04.2017 / 13:58
2
answers

It takes time to load RecyclerView

Is it normal for 3 seconds to load a recyclerview with data from 16,000 records in sqlite? Is there any way to optimize the upload? Code here     
asked by 22.04.2017 / 17:59
3
answers

Is it possible to reuse a base project for other projects?

I'm developing three similar projects, where basically the behavior of the screens and layouts will be the same. What will change from one to another are texts, background images, icons. How could I reuse a project without having to start over w...
asked by 24.04.2017 / 16:32
2
answers

Change background color when ListView has no items

Is there any way to customize a listView in addition to the textView default? The screen is obviously empty, but I would like to change the background color only when fetching it does not display the results. mEstadoVazioTextVie...
asked by 17.05.2017 / 14:47
1
answer

Error performing a SQLITE table creation

I'm trying the following error: android.database.sqlite.SQLiteException: no such column: np (code 1): , while compiling: SELECT _id, nome, email, np, tipoFunc FROM usuarios ORDER BY nome ASC...
asked by 21.06.2017 / 21:11
1
answer

FriendlyChat - date in messages [closed]

Implemented in my Android Studio project FriendlyChat available in codelab. But in the messages there is no date and time. How to implement the date and time in this project? Here are the Friendly Chat codes Could anyone help me?     
asked by 28.03.2017 / 03:12
2
answers

It is possible to open activity within framelayout

Is it possible to "inflate" an activity (in this activity has a recicleview) inside a framelayout? if not, what I use to open 3 different activitys, keeping the navigation bar down as in the screenshot    public class PrincipalActivity extend...
asked by 23.06.2017 / 05:09
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

FloatingActionButton, how does it appear on all screens?

How do I get this FloatingActionButton (Email Button) to appear on all my screens, without having to put one on each screen?     
asked by 29.03.2017 / 00:04