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
Questions tagged [android-viewgroup]
223 questions
0
votes
2 answers
Drag/Move ViewGroup in android
I have a ViewGroup and I want to move it on screen by finger when user press long click to circleMenu . How can I move ViewGroup?
Here is java :
public class ViewService extends Service implements OnItemSelectedListener,
OnItemClickListener,…

Lazy
- 1,807
- 4
- 29
- 49
-1
votes
1 answer
how to inflated view set Condition is null or not
I want to check infalted view Edittext null or not if it is null then I want to set error below particular Edittext view. I search on google but not found a satisfied answer.
This is my code I write for inflate view.
void inflateData(int passenger)…

suraj
- 641
- 1
- 7
- 15
-1
votes
5 answers
what are view and View in "import android.view.View"
I want to know the difference between view and View in "import android.view.View"statement.My confusion is whether View is a package or a class. If View is a class, what is View.OnClickListener

Chaitu
- 9
- 1
-1
votes
2 answers
Android Adding view from inflate layout and how to update particular textview value in layout
I have created view from inflating separate layout. I used for loop to create view more than 5 view like an ListView. Here I want call balance check. Inside view, I will click balance button and once receive response from server, I want to update…

harikrishnan
- 1,985
- 4
- 32
- 63
-1
votes
1 answer
Is RecyclerView a ViewGroup?
Is RecyclerView is a ViewGroup?
As in the below code, I am using onInterceptTouchEvent which is used with ViewGroups only and as I am implementing this with recyclerView, is RecyclerView is a ViewGroup? if not then what is the ViewGroup on which I…

Jatin Verma
- 363
- 3
- 12
-1
votes
1 answer
Add view to custom view group
I try to add view to my custom view group but all my attempts are unsuccessful
My custom view group
class CircleView : ViewGroup, View.OnTouchListener {
private var controller: SpeedControllerImp? = null
constructor(context: Context) :…

Eugene Surkov
- 255
- 1
- 3
- 9
-1
votes
1 answer
Two ListViews in a single layout change their weight after adding list items
I added two ListViews in a layout. I want them to maintain their 'layout_weight's throughout the activity. But when I add items to the second ListView, first one shrinks ignoring the layout_weight assigned.
How can I solve this issue?
Here's what I…

aruke
- 611
- 1
- 10
- 17
-1
votes
2 answers
Android background selector and textcolor selector conflict
I set a background selector to a ViewGroup, and this ViewGroup has a child TextView, I set a selector to textColor, then I press this ViewGroup, the TextView'textColor dismissed in pressed state.

liangzhitao
- 11
- 1
- 3
-1
votes
1 answer
Clicklistener for View Group Android
I am working on android application in which i am using ViewGroup to show my footer in my list view. Now i want to make an listener event for that view group, so user can press that footer. My code to make that footer and view group is given below…

Usman Khan
- 3,739
- 6
- 41
- 89
-2
votes
2 answers
Buttons of bottom view showing through
I have a fragment (we can call fragment A) and I am inflating another view on top of fragment A (we will call that view B), but the buttons that are part of fragment A are visible in view B. In order to display view B I do:
LayoutInflater inflater =…

BlackHatSamurai
- 23,275
- 22
- 95
- 156
-3
votes
1 answer
TextView doesn't show the required text
My MainActivity class has an if that checks is something is true it starts a new Activity which sets the text of a TextView to what I want.
MainActivity:
public static int caseA = 1;
if(caseA) {
Intent i = new Intent(Timer.this,…

Bryn
- 257
- 4
- 16
-6
votes
1 answer
Fatal Exception: java.lang.ArrayIndexOutOfBoundsException length=12; index=12 on samsung device 6.0.1 android version
Fatal Exception: java.lang.ArrayIndexOutOfBoundsException length=12; index=12 I encounter this bug only on samsung 6.0.1(android version) device.I didn't encounter this bug on any other android devices
stacktrace is below There is crash report on…

hugerde
- 919
- 1
- 12
- 27
-7
votes
1 answer
Can I copy the content from GridLayout in android?
Is there any way in android to copy and paste GridLayout as same as Textview did?
I have the GridLayout inside of LinearLayout. Inside of gridlayout, I have added more than one textviews.
I need to copy all the content inside from that gridlayout.…

Nithya Murugan
- 1
- 2