Skip to content

Commit b207baf

Browse files
committed
Padding can be added from both compose and xml
1 parent cc74810 commit b207baf

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

sample/src/main/java/dev/arkbuilders/sample/ScoreActivity.kt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,6 @@ class ScoreActivity : AppCompatActivity() {
104104
horizontal.disposeComposition()
105105
horizontal.setContent {
106106
HorizontalScoreWidgetComposable(
107-
modifier = Modifier.padding(60.dp),
108107
size = DpSize(200.dp, 80.dp),
109108
controller = scoreWidgetController
110109
)

sample/src/main/res/layout/activity_score.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
android:id="@+id/score_widget_horizontal"
2929
android:layout_width="wrap_content"
3030
android:layout_height="wrap_content"
31-
android:layout_marginTop="50dp"
31+
android:padding="70dp"
3232
app:layout_constraintEnd_toEndOf="parent"
3333
app:layout_constraintStart_toStartOf="parent"
3434
app:layout_constraintTop_toBottomOf="@id/btn_pick_resource" />

0 commit comments

Comments
 (0)