I’m using a RotateAnimation to rotate an image that I’m using as a custom cyclical spinner in Android. Here’s my rotate_indefinitely.xml file, which I placed in res/anim/: <?xml version="1.0"...
I cannot find an answer to this one: My AJAX calls return JSON data. In Google Chrome Developer Tools > Resources > XHR when I click on the resource...
I want to set background drawable of a view. There are two methods for this (as far as I see): setBackground and setBackgroundDrawable. When I use setBackground, it says...
This question already has answers here: How to display a dynamically allocated array in the Visual Studio debugger? (9 answers) Closed 8 years ago. Is it possible to view...
I’m trying to use Fragment with a ViewPager using the FragmentPagerAdapter. What I’m looking for to achieve is to replace a fragment, positioned on the first page of the...
I’m trying to use Java (not XML) to create a LinearLayout with buttons that fill the screen, and have margins. Here is code that works without margins: LinearLayout buttonsView...
How to create an EditText that has rounded corners instead of the default rectangular-shaped corners? 8 Answers 8
I tried to do custom component. I extended View class and do some drawing in onDraw overrided method. Why I need to override onMeasure? If I didn’t, everything seen...
How do you animate the change of background color of a view on Android? For example: I have a view with a red background color. The background color of...
What is the difference between Views and Materialized Views in Oracle? 8 Answers 8