florent37 / florent37/ShapeOfView

RoundRectView not displayed

Open
#28 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
3.2k
Forks
400
PR merge metrics
No merged PRs in 30d

Description

I everyone I've got a little bug when using multiple RoundRectView inside a scrollView.
My layout is something like this

```xml




```
Every layout is like this
```xml



```

and this is the `@style/AppTheme.CardDettaglioCasting`
```xml

<item name="android:elevation">4dp</item>
<item name="android:layout_marginEnd">16dp</item>
<item name="android:layout_marginLeft">16dp</item>
<item name="android:layout_marginRight">16dp</item>
<item name="android:layout_marginStart">16dp</item>
<item name="android:layout_marginTop">24dp</item>
<item name="shape_roundRect_bottomLeftRadius">16dp</item>
<item name="shape_roundRect_bottomRightRadius">16dp</item>
<item name="shape_roundRect_topLeftRadius">16dp</item>
<item name="shape_roundRect_topRightRadius">16dp</item>
<item name="android:background">@drawable/background_card_casting</item>

```

Inside layouts there're some relativelayout, linear layout, images, textview and all of them are `layout_height="wrap_content"`. In particular in the last layout there is a RecycleView with about 10 rows. If I include the last layout (the one with the recycleview) I don't see that layout and the Logcat gives me

```
RoundRectView not displayed because it is too large to fit into a software layer (or drawing cache), needs 11166432 bytes, only 8294400 available
```

I'm trying to display some much stuff and I ran in some performance issue?

Thanks for your help

Contributor guide

No contributing guide indexed for this repository

Research direction

Reproduce the XML layout with multiple included RoundRectView elements, especially the final layout containing a RecyclerView with about 10 rows. Start by inspecting RoundRectView rendering and the Logcat software-layer size error. Done means the final layout is displayed without the reported allocation failure and the performance impact is understood.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, java
Domain
mobile, performance
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.