Questions tagged as 'android'

2
answers

How to make view pager of images as free market app and others

I would like to ask your help on how to make this layout that neither the Free Market app and others out there like Viva Real Estate. The layout I need is the same as this image I'm putting below, It would be a toolbar the same way and just belo...
asked by 17.10.2015 / 23:05
2
answers

How to put line break in direct xml textview?

I wanted to put this text more organized without having to create several textview, and I had the idea of using line break.     
asked by 21.03.2017 / 17:44
1
answer

Login with Android PHP and Mysql

Hello! Following a tutorial I created an app that includes registration and login with PHP and MYSQL android, the registration works perfectly, except that in the login part when the inserted data is correct instead of taking me to another scree...
asked by 14.08.2017 / 17:27
1
answer

Error RecyclerView: No layout manager attached

I could not find the error. My activity: private AdapterPacientes adapterPacientes; private static MVP.Presenter presenter; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setConte...
asked by 09.02.2017 / 05:00
4
answers

Deserialize Json and put the values in views

Well, what I want to do is an activity where a Json is consumed. The problem is that all tutorials show only how to return a Json in a listview. What I want is a structure something like this: Title: Textview ; Image: Imageview...
asked by 16.03.2017 / 17:14
1
answer

retrofit - How to send a JSON via POST

Talk to me, I'm using Retrofit 2 and I'm not able to send JSON to WS. I have my class here that sets json the way I need it: CustomGsonAdapter public class CustomGsonAdapter { public static class UserAdapter implements JsonSerializer&l...
asked by 04.05.2017 / 19:59
1
answer

Get the drawable used as a CheckBox image

Whenever I have to save the image associated with a checkbox through the imagem = minha_checkbox.getButtonDrawable(); method it always gives me an error called call requires API level 23 (current min is 17) How can I resolve thi...
asked by 10.12.2016 / 18:09
2
answers

How do I avoid resetting screen elements when turning the phone?

I have an Activity with only a stopwatch basically, and when the phone turns, the stopwatch is reset. Is there an event that causes Activity to be restarted while doing this? I would like to prevent this behavior.     
asked by 09.03.2016 / 02:24
4
answers

How to open another Activity from a Navigation Drawer?

I need to call a Activity from an item of navigation drawer . Can anyone help? These are the items I want to call for Activity s: public boolean onNavigationItemSelected(MenuItem item) { // Handle navigation vie...
asked by 17.03.2016 / 02:32
1
answer

Working with Base64 image in Android Studio

I have an app in Android Studio and would like to use Base64 image in ImageView and ImageButton. I already know how to convert the image (from the Drawable folder) to String, but I do not know how to apply this as a background for my items....
asked by 25.06.2016 / 07:16