Is index important in addView()?

Android
I can't understand the function of index in addView(View child, int index) of a ViewGroup. What's the index for? Can be index negative value? Does it ...
3 years ago

I need to set up GCM / FCM push notifications for an app. I don't know anything about server side implementation. What should I read / research?

Android
I'm a computer science major at a summer internship. I've taken most classes in my major except Operating Systems & Distributed Systems. What do...
2 years ago

Add ImageView after text

Android
I want to achieve this functionality . Please provide suggestion for it. ...
3 years ago

One activity 2 buttons which can go different activities

Android
From an activity with some sensor data and two buttons, one to show graphs and another to display its parameters. Question: When you click on one of...
3 years ago

Using Paint.setStrokeJoin() and Paint.setStrokeMiter()

Android
I'm curious about what these methods do and how to use them as there doesnt seem to be any details beyond the single sentence descriptions in the Java...
3 years ago

Android Databinding: Possible to bind values from a HashMap

Android
I am binding to an Object's fields--strings, integers etc--to a layout file. For example: <data> <variable name="appState" ...
3 years ago

Android widget WRAP_CONTENT not working [FIXED]

Android
I have following widget in my app and it contains an ImageView with width and height set as WRAP_CONTENT. Root view is a RelativeLayout again with wid...
3 years ago

Center android google map on group of markers?

Android
I have a bunch of markers in which I load onto a google map. My problem is that, the camera is not ontop of the markers. Can I center it on top of all...
3 years ago

replace two fragments with each other using animation

Android
I'm just a beginner to native android developing. I have an application in which I have a fragment inside of an activity. This fragment has a header, ...
3 years ago

React-Native: Module AppRegistry is not a registered callable module

Android
I'm currently trying to get the ES6 react-native-webpack-server running on an Android emulator. The difference is I've upgraded my package.json and bu...
3 years ago

How to set text to view from drawer header layout in navigation drawer without inflating view

Android
I want to set text to the navigation drawers headers text, I searched a lot but everyone does it by inflating a layout but for me it creates 2 headers...
3 years ago

Handling Back Button with Fragment

Android
In my MainActivity, I am launching a fragment using the following: private void displayView() { Log.d("displayView", "in select item"); ...
3 years ago

Changing Background Color Of Playback icons in leanback

Android
I am using PlaybackOverLayFragment in Android Tv for playback controls.I want to change the background color when particular icons are selected.But no...
3 years ago

Toolbar's gravity (or positioning) not working properly in CollapsingToolbarLayout

Android
I have a layout with Toolbar and TablLayout with some nice collapsing effect seen below with the help of a CollapsingToolbarLayout: The first picture...
3 years ago

How to test TextInputLayout values (hint, error, etc.) using Android Espresso?

Android
I am trying to test using Espresso if my TextInputLayout views have specific hint. I'd used a code as below: Espresso.onView(ViewMatchers.withId(R.id...
3 years ago

How to specify which view is clicked in layout added multiple times

Android
I have a layout which takes user's children information. Let's say that this layout takes info about the children's first name, last name, and age. I ...
3 years ago

How to keep an image in an Android activity during an orientation change?

Android
I am very new to Android programming and have been experimenting with building an app. In my new app I have the user press a button which allows them...
3 years ago

Generate int unique id as android notification id

Android
When i send multiple of push notifications , i need them to be all shown in notification bar , ordered by the time sent desc , i know i should use uni...
3 years ago

AndroidLauncher cannot find assets, but DesktopLauncher can (Android Studio, libGDX)

Android
I am trying to make an android app, I am using Android Studio and libGDX. The problem is that my app keeps crashing since it cannot find my sprite. ...
3 years ago

Mediaplayer pause button followed by play, media starts from beginning

Android
I'm trying to make a simple media player with play,pause and stop button. Play and stop buttons work fine. However pause button behaves like stop butt...
3 years ago