Skip to content

Commit

Permalink
Padding can be added from both compose and xml
Browse files Browse the repository at this point in the history
  • Loading branch information
mdrlzy committed Dec 27, 2024
1 parent cc74810 commit b207baf
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,6 @@ class ScoreActivity : AppCompatActivity() {
horizontal.disposeComposition()
horizontal.setContent {
HorizontalScoreWidgetComposable(
modifier = Modifier.padding(60.dp),
size = DpSize(200.dp, 80.dp),
controller = scoreWidgetController
)
Expand Down
2 changes: 1 addition & 1 deletion sample/src/main/res/layout/activity_score.xml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
android:id="@+id/score_widget_horizontal"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="50dp"
android:padding="70dp"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/btn_pick_resource" />
Expand Down

0 comments on commit b207baf

Please sign in to comment.