Questions tagged [android-viewgroup]

A ViewGroup is a special view that can contain other views, called children. The view group is the base class for layouts and views containers

223 questions
3
votes
1 answer

view and viewgroup android

I know java basics and I am learning Android development now. I have learnt that there are two central android classes for the ui, View and ViewGroup. I want you to correct me wherever I am wrong. ViewGroup is a subclass of View and holds View…
garfield
  • 89
  • 7
3
votes
1 answer

ViewPager: java.lang.IllegalArgumentException: pointerIndex out of range

I am writing an code to handle touch event based on what suggested here. I am using ViewPager as an ViewGroup and ListView(I know #thisbad) as child view of Fragment. This is what I wanted to achieve: Detect multitouch event on child view then…
CoDe
  • 11,056
  • 14
  • 90
  • 197
3
votes
1 answer

Trespass ViewGroup's Limits when using animations

I have a ImageView inside a RelativeLayout. The ImageView is filling the whole RelativeLayout. The RelativeLayout cannot become bigger. I want to make the ImageView bigger using ScaleAnimation like that: final ScaleAnimation scaleAnimationGoBigger =…
2
votes
0 answers

Android Hover View Boundaries to listen on exit and enter view bounds

I am trying to implement something like a custom keyboard that builds fully dynamic My problem is that I want to when hovering any view just show a hint [bigger view for the same one] and I want if I am still hovering I want my hint to still appear…
2
votes
0 answers

Dynamically adding views in a fragment

I am trying to add dynamic views into my layouts relative view. So the dynamic view which is to be added is another layout containing couple of editexts and other fields. Everything works perfectly but the only issue is whenever i add new views…
md gouse
  • 527
  • 1
  • 6
  • 22
2
votes
1 answer

Wrapping KeyboardView in ViewGroup: java.lang.IllegalStateException: The specified child already has a parent

I am using InputMethodService, Keyboard and KeyboardView (i know, it has been deprecated recently) in order to create a custom keyboard. override fun onCreateInputView(): View { view = layoutInflater.inflate( …
2
votes
3 answers

Android Viewgroup Issues

I have an issue using a viewGroup, for some reason the id doesn't process the statement, and really I tried everything, can you help please? I don't know if it is something about the version3.3.2 or what's wrong with the code public class…
2
votes
0 answers

Blur ViewGroup excluding one View

I'm using Blurry library to achieve the effect of blurred screen. How can I blur whole ViewGroup but except of one, particular View? I'm trying to achieve an effect similar to the following:
2
votes
1 answer

Restore view in ConstraintLayout after it's visibility has been set to View.GONE

The app I'm building has a use case in which, based on some data I create sections in a Fragment. To visualize, a given fragment A has a layout with main container element being ScrollView. There, the scroll view has a toolbar (irrelevant for this…
2
votes
0 answers

Change colorPrimary and colorAccent programmatically for use in ContextThemeWrapper

I'm working on a live event app for a client. There are about 20 view containers that make heavy use of colorPrimary and colorAccent for coloring the views. The client has just now decided that those colors should be different for each event. Is…
2
votes
0 answers

why viewgroup invalidate does not make it's child's draw method be called back

I have made a custom viewgroup which has five imageview. When I invalidate this viewgroup, why do all the "draw" methods of these imageview never get called back? Doesn't the invalidate method traverse the viewtree from viewrootiml?
user7870531
2
votes
3 answers

Programmatically add a View to the bottom of the screen

I want to add a View at the bottom of an existing layout, regardless of the type of ViewGroup (Linear, Relative etc...) which is defined in the Activity layout file The Activity layout file looks like this:
Michael A
  • 5,770
  • 16
  • 75
  • 127
2
votes
1 answer

Custom View with two TextViews

I want to create a custom view with 2 TextViews, with possibility change text and text appearances from xml. This view should have two state - normal and selected (TextViews style should be different for each state). I need some example for it.
waldemar
  • 655
  • 2
  • 10
  • 24
2
votes
0 answers

Auto Scroll a Android ViewGroup top to bottom and bottom to top

Here I'm trying to scroll a GridView automatically top to bottom and as it comes to last item scroll it back to top from bottom using smoothScrollToPosition but its very fast. The code is : homeGridView.postDelayed(new Runnable() { public…
Siri
  • 143
  • 11
2
votes
1 answer

Changing RatingBar Size Programmatically?

Is there a way to change RatingBar Widget size , programmatically without using xml styles? I know we can customize size of RatingBar using xml styles , but it is still not generic enough , i seem to encounter some of good github libraries that…
Zulqurnain Jutt
  • 1,083
  • 3
  • 15
  • 41
1 2
3
14 15