Skip to main content
The 2024 Developer Survey results are live! See the results

All Questions

Tagged with
192 questions with no upvoted or accepted answers
8 votes
1 answer
179 views

Calendar View show/gone inside Recyclerview ViewHolder Issue on Android 8, 9 only

I have a recyclerview with 2 or more viewholders, 1st Viewholder is just top heading banner 2nd vlewholder is for booking widget which has 3 dropdowns/detail menus including CalendarView -- All in ...
Nadeem Iqbal's user avatar
  • 2,366
7 votes
1 answer
2k views

doOnPreDraw method not getting called for some items in a recyclerView

I'm having troubles with some animation in a recycler view. I do the relevant measurements in onViewAttachedToWindow: override fun onViewAttachedToWindow(holder: PairingViewHolder) { super....
Lorenzo Benevento's user avatar
7 votes
1 answer
3k views

Hiding a surfaceview that overlaps another one

In my app I'm using several surface views (for displaying videos and google maps), displayed on the screen in the same time. Now I have to add the possibility to change the configuration (position, ...
Tim Autin's user avatar
  • 6,166
6 votes
1 answer
3k views

How to remove the launcher icon in android 10(Q)

Before API 29, we can remove the launcher icon in the device by removing <intent-filter> <action android:name="android.intent.action.MAIN" /> <category ...
krishna sree's user avatar
6 votes
1 answer
253 views

Second toolbar's scrollFlag attribute is applied by the first toolbar

Scenario: When one of the toolbars is gone, the second toolbar will adapt the scrollFlag of the first toolbar, instead of its own scrollFlag! Note: The weird behavior happens only when one of the ...
idish's user avatar
  • 3,220
5 votes
3 answers
2k views

Android View is still getting OnClick() even by set its visibility to GONE

I know there are few questions regard this issue but all of them are using animation. I have no animation at all in my activity. I have a TextView that by default is visible and is set to Gone based ...
Hesam's user avatar
  • 53.2k
5 votes
1 answer
511 views

Identifying when a View really appears/disappears from the visible area of the activity

I would like to know if there's any concrete way by which we can get notifications on when a view is actually appearing on the screen or disappearing from the screen. I tried almost all the methods of ...
Ashok G's user avatar
  • 121
3 votes
0 answers
310 views

Can't make ImageView visible when ACTION_DRAG_ENDED is fired

I have an ImageView and a GridView. When I start to drag the image, i make it invisible (GONE): imageView.setOnLongClickListener(new View.OnLongClickListener() { @Override ...
TheWolf's user avatar
  • 71
3 votes
1 answer
2k views

Honeycomb - Status Bar Hidden during AlertDialog

I have a problem with the status bar visibility in Honeycomb (3.2) while showing an AlertDialog. In my HomeActivity I set the status bar visibility to hidden by the following code: View v = ...
user1162729's user avatar
3 votes
0 answers
1k views

Android tab activity View visibility change event

What is the event dispatched to a View when its visibility changes? I have a custom View that is attached to a tab. When my custom View becomes invisible because the user switches to other tabs, I ...
harry lee's user avatar
2 votes
1 answer
241 views

Doing a task after a view became invisible

I'm writing a screenshot app using Android MediaProjection Api in which an overlay button is shown on top of everything and user can click it to capture a screenshot anywhere. Since MediaProjection ...
Alireza Farahani's user avatar
2 votes
1 answer
287 views

How to hide part of content of the toolbar when using CoordinatorLayout

What I'm trying to achieve is to do some effect with collapsing toolbar. I have a "title" that when collapsing toolbar is expanded, must be shown under the cross (im1), but collapsing is scrolled, ...
Shudy's user avatar
  • 7,886
2 votes
0 answers
245 views

ProgressBar is not set visible before other operations by click button

I work with MediaPlayer and want to show ProgressBar before calling method mediaPlayer.prepare() (it can take up some time). I tried AsynkTast, Thread, Handler but it is show progressBar only after ...
VovaG's user avatar
  • 51
2 votes
2 answers
289 views

Setting up the visibility of an Image View depending on Shared Preferences

I Programm a Quiz App. I already set up that if the highscore is over 10, an ImageView will be shown permanently. That works very fine also on restart of the app, the only problem is that if the user ...
Alan's user avatar
  • 609
2 votes
0 answers
334 views

Setting the visibility for a linear layout(view group)

When I set setVisibility(View.GONE) or setVisibility(View.VISIBLE) for a linear layout it seems that it does not changes the visibility of the view(saying view group would be more accurate). At ...
Android's user avatar
  • 3,858

15 30 50 per page
1
2 3 4 5
13