Created
August 21, 2025 02:35
-
-
Save rainbow23/461d3c596b9d5932ed9c84bd5082e7e4 to your computer and use it in GitHub Desktop.
content_common.xml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<androidx.constraintlayout.widget.ConstraintLayout | |
xmlns:android="http://schemas.android.com/apk/res/android" | |
xmlns:app="http://schemas.android.com/apk/res-auto" | |
android:layout_width="match_parent" | |
android:layout_height="match_parent" | |
android:padding="16dp"> | |
<!-- 1つ目:CheckBox --> | |
<CheckBox | |
android:id="@+id/common_checkbox" | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content" | |
android:text="CheckBox (Common)" | |
app:layout_constraintTop_toTopOf="parent" | |
app:layout_constraintBottom_toTopOf="@+id/common_radiobutton" | |
app:layout_constraintStart_toStartOf="parent" | |
app:layout_constraintEnd_toEndOf="parent" | |
app:layout_constraintVertical_chainStyle="packed" /> | |
<!-- 2つ目:RadioButton --> | |
<RadioButton | |
android:id="@+id/common_radiobutton" | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content" | |
android:text="RadioButton (Common)" | |
app:layout_constraintTop_toBottomOf="@id/common_checkbox" | |
app:layout_constraintStart_toStartOf="parent" | |
app:layout_constraintEnd_toEndOf="parent" /> | |
</androidx.constraintlayout.widget.ConstraintLayout> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment