Questions tagged [android-rendering]

13 questions
24
votes
0 answers

Renderscript not generating librs.xx.so if renderscriptTargetApi > 20

I'm using renderscript for audio dsp processing. It works well until I decided to bump up renderscriptTargetApi version from 19 to 24 in an attempt to make use of newer renderscript APIs in a backward compatible way. There is no issue with the…
6
votes
0 answers

Android UI render time

I got in Android Vital a warning that my UI render time is slow. As they explained in vital page: Frozen UI frames: Percentage of daily sessions during which users experienced more than 0.1% of frames with a render time greater than 700ms. A…
3
votes
0 answers

Android Rendering Problems : Using an obsolete version of the 5.1 layout library

I am getting following problem while rendering XML file. Using an obsolete version of the 5.1 layout library which contains many known bugs: Install Update, Ignore For Now Is there any bug or problem in New SDK. P.S. I saw…
2
votes
0 answers

How to draw cutout in PreviewView Android Compose?

I'm creating a QR Scanner where the preview view is blur except the centre square part, I was able to blur PreviewView but not able to think of a way to unblur the centre cutout part. AndroidView( modifier = Modifier.fillMaxSize(), …
2
votes
1 answer

Render problem due to Collapsing Toolbar in Android Studio

My Layout editor doesn't render this layout with collapsing toolbar, other layouts render just fine. I have tried refreshing, invalidate cache/restart, gradle implementations to stable versions, set the API 29 and 28 for preview instead of 30, sync…
2
votes
1 answer

Setting window layout after calling setContentView()

I am creating an activity that as a dialog format: it does not cover the whole screen, but only part of it. What I did was in the onCreate() method of this activity, after calling setContentView(), I call: window.setLayout(windowWidthInDp,…
1
vote
0 answers

Need some detail of how SurfaceFlinger and BufferQueue works on Android platform

I'm investigating the issue with application hang. The issue is only reproducible on Samsung S22 with adaptive fps feature ON. My app uses opengl to render its content. Also we use VideoView widget from Android SDK to playback some short movies. The…
1
vote
1 answer

Blur Mask Filters are not supported

I have one custom class which extends View class and in which i am just drawing some custom Bitmaps. Now problem is whenever i am using that class in xml, it creates rendering problem. Here is my XML code :
Ravi
  • 34,851
  • 21
  • 122
  • 183
0
votes
1 answer

How to measure the layout performance in android?

I had been using nested views in one of the screens in my android app. Now that I have removed all of them and used a ConstraintLayout for performance gains, I want to measure how much the performance has increased. Is there a way to measure the…
0
votes
1 answer

Android Rendering: Is actually in the end everything rendered via OpenGL

Is actually in the end everything rendered via OpenGL in Android. I have already checked out this video https://youtu.be/zdQRIYOST64 and the relevant documents. And it seems that not all is rendered via OpenGL or maybe Vulkan nowadays. But when it…
0
votes
1 answer

Shouldn't the right be left + width for a view?

For a custom view that draws a rectangle I see the following code in the onDraw @Override protected void onDraw(Canvas canvas) { int left = getPaddingLeft(); int right = getWidth() - getPaddingLeft() - getPaddingRight(); …
Jim
  • 3,845
  • 3
  • 22
  • 47
0
votes
2 answers

Preview is not showing for some activity

Preview is not showing for some XML files in android studio but the application works fine. In order to develop my application, I need to be able to see all preview properly I've read several posts in StackOverflow I change style, sdk ,but it…
-1
votes
1 answer

CoordinatorLayout AppBarLayout and Floating actionButton not Working

After Updating android studio to version 2.1.2 I have this problem. I have just started to create this application. On basic activity i see this error. I have tried to Invalidate caches/Restart option. Here is my…
Mohsin
  • 11
  • 3