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"...
  • May 23, 2022
  • 0 Comments
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...
  • May 19, 2022
  • 0 Comments
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...
  • May 18, 2022
  • 0 Comments
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...
  • May 13, 2022
  • 0 Comments