-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e6b7e44
commit 4f61c93
Showing
5 changed files
with
236 additions
and
65 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
<shape xmlns:android="http://schemas.android.com/apk/res/android"> | ||
<solid android:color="#F5F5F5"/> <!-- Arka Plan Rengi --> | ||
<corners android:radius="8dp"/> <!-- Kenar Köşe Yuvarlama --> | ||
<solid android:color="#F5F5F5"/> | ||
<corners android:radius="8dp"/> | ||
<size android:width="100dp" android:height="20dp"/> | ||
<padding android:left="8dp" android:right="8dp" android:top="4dp" android:bottom="4dp"/> | ||
</shape> |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,80 +1,238 @@ | ||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" | ||
<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:layout_gravity="center" | ||
android:background="@android:color/white" | ||
android:gravity="center" | ||
android:orientation="vertical" | ||
android:padding="16dp"> | ||
|
||
<Switch | ||
android:id="@+id/switch_ego" | ||
android:layout_width="wrap_content" | ||
<androidx.cardview.widget.CardView | ||
android:id="@+id/cardViewEgo" | ||
style="@style/CardViewStyle" | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
android:layout_marginBottom="16dp" | ||
android:background="@drawable/switch_background" | ||
android:checked="true" | ||
android:padding="10dp" | ||
android:text="Ego" | ||
android:textColor="@android:color/black" | ||
android:thumb="@drawable/ic_ego_icon" /> | ||
|
||
<Switch | ||
android:id="@+id/switch_anger" | ||
android:layout_width="wrap_content" | ||
app:cardCornerRadius="10dp" | ||
app:layout_constraintEnd_toEndOf="parent" | ||
app:layout_constraintStart_toStartOf="parent" | ||
app:layout_constraintTop_toTopOf="parent"> | ||
|
||
<LinearLayout | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
android:layout_margin="10dp" | ||
android:orientation="horizontal"> | ||
|
||
<TextView | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:text="Ego" | ||
android:textColor="@android:color/black" /> | ||
|
||
<Space | ||
android:layout_width="0dp" | ||
android:layout_height="wrap_content" | ||
android:layout_weight="1" /> | ||
|
||
<Switch | ||
android:id="@+id/switch_ego" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:checked="true" | ||
android:thumb="@drawable/ic_ego_icon" | ||
android:track="@drawable/switch_background" /> | ||
</LinearLayout> | ||
</androidx.cardview.widget.CardView> | ||
|
||
<androidx.cardview.widget.CardView | ||
android:id="@+id/cardViewAnger" | ||
style="@style/CardViewStyle" | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
android:layout_marginBottom="16dp" | ||
android:background="@drawable/switch_background" | ||
android:enabled="false" | ||
android:padding="10dp" | ||
android:text="Anger" | ||
android:textColor="@android:color/black" | ||
android:thumb="@drawable/ic_angry_icon" /> | ||
|
||
<Switch | ||
android:id="@+id/switch_disgust" | ||
android:layout_width="wrap_content" | ||
app:cardCornerRadius="10dp" | ||
app:layout_constraintEnd_toEndOf="parent" | ||
app:layout_constraintStart_toStartOf="parent" | ||
app:layout_constraintTop_toBottomOf="@id/cardViewEgo"> | ||
|
||
<LinearLayout | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
android:layout_margin="10dp" | ||
android:orientation="horizontal"> | ||
|
||
<TextView | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:text="Anger" | ||
android:textColor="@android:color/black" /> | ||
|
||
<Space | ||
android:layout_width="0dp" | ||
android:layout_height="wrap_content" | ||
android:layout_weight="1" /> | ||
|
||
<Switch | ||
android:id="@+id/switch_anger" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:enabled="false" | ||
android:thumb="@drawable/ic_angry_icon" | ||
android:track="@drawable/switch_background" /> | ||
</LinearLayout> | ||
</androidx.cardview.widget.CardView> | ||
|
||
<androidx.cardview.widget.CardView | ||
android:id="@+id/cardViewDisgust" | ||
style="@style/CardViewStyle" | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
android:layout_marginBottom="16dp" | ||
android:background="@drawable/switch_background" | ||
android:enabled="false" | ||
android:padding="10dp" | ||
android:text="Disgust" | ||
android:textColor="@android:color/black" | ||
android:thumb="@drawable/ic_disgust_icon" /> | ||
|
||
<Switch | ||
android:id="@+id/switch_fear" | ||
android:layout_width="wrap_content" | ||
app:cardCornerRadius="10dp" | ||
app:layout_constraintEnd_toEndOf="parent" | ||
app:layout_constraintStart_toStartOf="parent" | ||
app:layout_constraintTop_toBottomOf="@id/cardViewAnger"> | ||
|
||
<LinearLayout | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
android:layout_margin="10dp" | ||
android:orientation="horizontal"> | ||
|
||
<TextView | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:text="Disgust" | ||
android:textColor="@android:color/black" /> | ||
|
||
<Space | ||
android:layout_width="0dp" | ||
android:layout_height="wrap_content" | ||
android:layout_weight="1" /> | ||
|
||
<Switch | ||
android:id="@+id/switch_disgust" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:enabled="false" | ||
android:thumb="@drawable/ic_disgust_icon" | ||
android:track="@drawable/switch_background" /> | ||
</LinearLayout> | ||
</androidx.cardview.widget.CardView> | ||
|
||
<androidx.cardview.widget.CardView | ||
android:id="@+id/cardViewFear" | ||
style="@style/CardViewStyle" | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
android:layout_marginBottom="16dp" | ||
android:background="@drawable/switch_background" | ||
android:enabled="false" | ||
android:padding="10dp" | ||
android:text="Fear" | ||
android:textColor="@android:color/black" | ||
android:thumb="@drawable/ic_fear_icon" /> | ||
|
||
<Switch | ||
android:id="@+id/switch_joy" | ||
android:layout_width="wrap_content" | ||
app:cardCornerRadius="10dp" | ||
app:layout_constraintEnd_toEndOf="parent" | ||
app:layout_constraintStart_toStartOf="parent" | ||
app:layout_constraintTop_toBottomOf="@id/cardViewDisgust"> | ||
|
||
<LinearLayout | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
android:layout_margin="10dp" | ||
android:orientation="horizontal"> | ||
|
||
<TextView | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:text="Fear" | ||
android:textColor="@android:color/black" /> | ||
|
||
<Space | ||
android:layout_width="0dp" | ||
android:layout_height="wrap_content" | ||
android:layout_weight="1" /> | ||
|
||
<Switch | ||
android:id="@+id/switch_fear" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:enabled="false" | ||
android:thumb="@drawable/ic_fear_icon" | ||
android:track="@drawable/switch_background" /> | ||
</LinearLayout> | ||
</androidx.cardview.widget.CardView> | ||
|
||
<androidx.cardview.widget.CardView | ||
android:id="@+id/cardViewJoy" | ||
style="@style/CardViewStyle" | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
android:layout_marginBottom="16dp" | ||
android:background="@drawable/switch_background" | ||
android:enabled="false" | ||
android:padding="10dp" | ||
android:text="Joy" | ||
android:textColor="@android:color/black" | ||
android:thumb="@drawable/ic_joy_icon" /> | ||
|
||
<Switch | ||
android:id="@+id/switch_sadness" | ||
android:layout_width="wrap_content" | ||
app:cardCornerRadius="10dp" | ||
app:layout_constraintEnd_toEndOf="parent" | ||
app:layout_constraintStart_toStartOf="parent" | ||
app:layout_constraintTop_toBottomOf="@id/cardViewFear"> | ||
|
||
<LinearLayout | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
android:layout_margin="10dp" | ||
android:orientation="horizontal"> | ||
|
||
<TextView | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:text="Joy" | ||
android:textColor="@android:color/black" /> | ||
|
||
<Space | ||
android:layout_width="0dp" | ||
android:layout_height="wrap_content" | ||
android:layout_weight="1" /> | ||
|
||
<Switch | ||
android:id="@+id/switch_joy" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:enabled="false" | ||
android:thumb="@drawable/ic_joy_icon" | ||
android:track="@drawable/switch_background" /> | ||
</LinearLayout> | ||
</androidx.cardview.widget.CardView> | ||
|
||
<androidx.cardview.widget.CardView | ||
android:id="@+id/cardViewSadness" | ||
style="@style/CardViewStyle" | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
android:background="@drawable/switch_background" | ||
android:enabled="false" | ||
android:padding="10dp" | ||
android:text="Sadness" | ||
android:textColor="@android:color/black" | ||
android:thumb="@drawable/ic_sad_icon" /> | ||
|
||
</LinearLayout> | ||
android:layout_marginBottom="16dp" | ||
app:cardCornerRadius="10dp" | ||
app:layout_constraintEnd_toEndOf="parent" | ||
app:layout_constraintStart_toStartOf="parent" | ||
app:layout_constraintTop_toBottomOf="@id/cardViewJoy"> | ||
|
||
<LinearLayout | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
android:layout_margin="10dp" | ||
android:orientation="horizontal"> | ||
|
||
<TextView | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:text="Sadness" | ||
android:textColor="@android:color/black" /> | ||
|
||
<Space | ||
android:layout_width="0dp" | ||
android:layout_height="wrap_content" | ||
android:layout_weight="1" /> | ||
|
||
<Switch | ||
android:id="@+id/switch_sadness" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:enabled="false" | ||
android:thumb="@drawable/ic_sad_icon" | ||
android:track="@drawable/switch_background" /> | ||
</LinearLayout> | ||
</androidx.cardview.widget.CardView> | ||
|
||
</androidx.constraintlayout.widget.ConstraintLayout> |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<resources> | ||
<dimen name="smallMargin">5dp</dimen> | ||
</resources> |
This file contains 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
This file contains 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