android-viewgroup Questions

6

Solved

I’m working on a game for Android. To help implement it, my idea is to create a subclass of a view. I would then insert several instances of this class as children of the main view. Each instance w...
Simar asked 8/4, 2010 at 2:36

0

Why is it that when you repeatedly alter the visibility of a child view that is contained within a parent view and measure the parent view, Android returns wrong results? I created a simple test: ...

3

Solved

I am currently experiencing an issue when measuring a recyclerView before it appears. I need the measuredHeight in order to start an "expand" animation. This was previously done for a gridView in ...

4

I got following exception from one of my app user in crash logs. Unable to understand from the log trace. If anybody has some thoughts, please share. Fatal Exception: java.lang.IllegalArgumentExce...
Marilynnmarimba asked 5/11, 2014 at 7:56

1

Android ViewGroup has the following methods to add (child) Views: I know we can easily define horizontal/vertical orientation to LinearLayout in xml/programatically and add child views, eg. ...
Tetrachloride asked 25/9, 2018 at 7:20

2

Solved

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 on...
Marras asked 10/2, 2018 at 10:56

2

Solved

What purpose does FrameLayout serve in Android? Is there any specific scenario for which it is designed for? In my Android application, I have a scenario where I have to show two ImageViews, one ...

2

Solved

I have layout with child (NOT as root) element RelativeLayout and then i create ViewPager and insert it as child of my Relative layout, so it's like +Relative Layout (root) | +-- Relative Layout...
Tetrode asked 12/10, 2012 at 11:39

3

Solved

I'm trying to programmatically (not using XML files) create custom subviews in Android (that's what I call it in iOS) that is a basically a number of basic views (labels, buttons, text fields etc) ...
Accompanist asked 10/5, 2015 at 10:15

1

Solved

I am looking to create a custom ViewGroup to be used in a library; which contains a few ImageButton objects. I would like to be able to apply a style each ImageButton; but I cannot figure out how t...

4

Solved

how to create a dialog fragment with the custom shape? I have an icon that needs to be placed on top of the dialog window (with transparency). The dialog itself should be: The dialog layout...

2

As i already tried views with motion drag reading Android docs. I have clearly not saying about basics of it but i want to hide orinvisible view which will be visible when other view which is bein...
Eiderdown asked 2/11, 2016 at 13:31

1

Solved

I am developing an Android app. In my app, I need to inflate list of views dynamically. I added them and working. The problem is with setting the width and height of layout. Now I will demonstrate ...

3

I have a logo view, which is a full screen fragment containing single ImageView. I have to perform some operations after the logo image is completely visible. Following code is used to invoke the...
Epochal asked 2/8, 2016 at 11:0

1

Solved

I have tried old solutions here: Line-breaking widget layout for Android Is there a new proper way to implement this functionality?
Goldner asked 10/5, 2016 at 19:49

3

Solved

I am trying to set the height of toolbar programmatically by this way: toolbar.setLayoutParams(new Toolbar.LayoutParams(LayoutParams.MATCH_PARENT, 42)); toolbar.setMinimumHeight(42); But it causes...

1

Solved

I have several Activities in my Android app that have the same basic structure, and I'm trying to make my layouts DRY. The duplicated code looks like the below. It contains a scrollable area with a...

1

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 ach...

1

Solved

I have a custom fragment which is attached to my MainActivity. The layout file of the fragment contains the recyclerview widget. fragment_main.xml: <?xml version="1.0" encoding="utf-8"?> &l...

1

Solved

I am trying to write a custom view for checkboxPreferences. I have: <CheckBoxPreference android:key="@string/pref_acceptableads" android:summaryOff="@string/pref_acceptableads_summary_off" a...
Catboat asked 11/3, 2015 at 13:56

2

Solved

What is this blue shadow called which apears when the view is pulled after it ends? is there a listener triggered when this appears or goes? I have implemented https://github.com/maurycyw/Stagge...
Assr asked 11/2, 2015 at 8:40

2

Solved

I've seen a few people ask how to zoom an entire ViewGroup (such as a RelativeLayout) in one go. At the moment this is something I need to achieve. The most obvious approach, to me, would be to hol...
1

© 2022 - 2024 — McMap. All rights reserved.