Skip to content

Tag: android

error package android.support.design.widget does not exist

when i try to build my android project i get this errors Error:(8, 37) error: package android.support.design.widget does not exist Error:(18, 9) error: cannot find symbol class TabLayout Error:(18, 32) error: cannot find symbol class TabLayout Error:(21, 33) error: cannot find symbol variable TabLayout Error:…

Android Create Calendar Event always as Birthday

I have a strange issue when I create a calendar event programmatically its always noted as Birthday Calendar (type) I don’t have any clue why its noted like that. My code I use is as below: Xamarin C# Please does someone has any tips or ideas which can point me to the right direction? Thanks in advance.…

Capitalize every word in Edit text while typing

I want to capitilze every word in edit text while typing. My XML:- Now I am using But problem is it is not working in some device. Ex LG tablet. So I decided to do this programatically. So I am using following codes. Here my app getting crash. I found the problem while debugging. Problem is the onTextChanged …

Android Studio FloatingActionButton error

I installed Android Studio yesterday, and after battling multiple java and other errors, I have come to an error that I cannot seem to fix. I have not added anything or done any code, I have simply just started a new project and I get this error in the Preview over the phone: Rendering Problems: Followed by a…

Retrofit: How to wait for response

I have AsyncTask and the doInBackground method inside which, I sending POST request using Retrofit. My code looks like: The problem is: Retrofit sending request asynchronously and while it, the doInBackground method returning the value. So I need to send a request in the same thread with all executions in the…

How do I add a shadow beneath my action bar in Android?

I’m trying to get a shadow to appear beneath my action bar, but for some reason the shadow continually appears and begins at the very top of the screen, instead of beneath the action bar. I’m using a CustomView android.support.v7.widget.Toolbar action bar widget in each of my xml layout files. How…