Android: borders on content-sized components
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 35/100
- Tipo de issue
- Nueva funcionalidad
- Claridad
- Bastante claro
- Estado de actividad
- Activo
- Stack tecnológico
- android, kotlin, react-native
- Área
- mobile-dev
Línea de trabajo
Start in the Android rendering path where borderWidth/borderColor are baked into a bitmap and stretched over the component; that is the code that skips drawing when there is no fixed numeric width/height. Read that path together with how the background color is applied, then check #194 for the content-sized badge/pill case that motivates this. The suggested outer-box/inner-box approach with padding is a starting point only, so confirm with maintainers before building; done means a border renders on a content-sized component with an opaque background, and fixed-size hollow or translucent borders still work.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
On Android, borderWidth and borderColor are only drawn when a component has a fixed numeric width and height. Glance has no border modifier, so the background and border are drawn into a bitmap that Android stretches over the component. A component sized by its content, by flex or by "100%" has no size to draw that bitmap at, so the border is skipped. Content-sized badges and pills are a common case for borders (see #194).
A possible partial approach for components with an opaque background: draw the border as an outer box filled with borderColor and padded by borderWidth, around an inner box with the background. That follows the content's size. It can't produce hollow or translucent fills, because the outer color would show through, so those would still need a fixed size.
- Lenguaje dominante
- TypeScript
- Estrellas
- 864
- Forks
- 51
- Merge medio
- 2 d 2 h
- PR fusionados (30 d)
- 10
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Sin plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de callstackincubator/voltra
-
Per-widget server settings are not read for instance scopes (widgets with configuration parameters)Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
callstackincubator/voltra#381 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 65/100
callstackincubator/voltra#376 ·
Los mantenedores suelen responder en 1 día
-
iOS: first foreground after launch remounts the whole app (isHeadless written into root appProperties)Posiblemente ocupada Un pull request vinculado a esta issue está abierto o ya se fusionó. Abiertoplatform:iOS
Dificultad 2/5 1-3 horas Aptitud para principiantes 66/100
callstackincubator/voltra#340 · 1 comentario · 3 reacciones ·
Los mantenedores suelen responder en 1 día
-
refactor-scout
Dificultad 2/5 1-3 horas Aptitud para principiantes 88/100
callstackincubator/voltra#308 ·
Los mantenedores suelen responder en 1 día
-
refactor-scout
Dificultad 2/5 1-3 horas Aptitud para principiantes 88/100
callstackincubator/voltra#307 ·
Los mantenedores suelen responder en 1 día
Todos los issues de callstackincubator/voltra
Issues similares
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 72/100
cursor/community-plugins#583 ·
Los mantenedores suelen responder en 1 día
-
A model answer with prose after its fenced JSON is rejected as NOT_JSONPosiblemente ocupada Un pull request vinculado a esta issue está abierto o ya se fusionó. Abiertoafk-ok importer size:S
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
enorm-labs/event-junkie#5404 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 82/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
Wavvon/Wavvon-clients#493 ·
Los mantenedores suelen responder en 1 día
-
documentation
Dificultad 1/5 1-3 horas Aptitud para principiantes 72/100
answerLoops/answerLoops#679 ·
Los mantenedores suelen responder en 1 día