Skip to content

Commit

Permalink
Add layout margin to improve spacing for best visualizing
Browse files Browse the repository at this point in the history
  • Loading branch information
MostafaMohamed2002 committed Oct 14, 2024
1 parent efc20ef commit 3a42196
Show file tree
Hide file tree
Showing 10 changed files with 142 additions and 109 deletions.
2 changes: 1 addition & 1 deletion app/src/main/res/layout/card_view_text.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:padding="12dp">
android:padding="14dp">

<LinearLayout
android:layout_width="match_parent"
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/res/layout/card_view_with_image.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:padding="12dp">
android:padding="16dp">

<ImageView
android:id="@+id/imgView1"
Expand Down
5 changes: 1 addition & 4 deletions app/src/main/res/layout/card_view_with_switch.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,7 @@
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:paddingTop="12dp"
android:paddingBottom="6dp"
android:paddingLeft="12dp"
android:paddingRight="12dp">
android:padding="14dp">

<LinearLayout
android:layout_width="match_parent"
Expand Down
122 changes: 61 additions & 61 deletions app/src/main/res/layout/fragment_about.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,71 +5,71 @@
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_margin="15dp"
android:paddingBottom="50dp"
android:background="@color/you_background_color">
<LinearLayout
android:id="@+id/linearLayout"
<LinearLayout
android:id="@+id/linearLayout"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:paddingBottom="10dp"
android:orientation="vertical"
android:padding="10dp">
<TextView
android:id="@+id/tvTitle"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="10dp"
android:paddingTop="24dp"
android:text="@string/app.about.community.title"
android:textColor="@color/text_color"
android:textSize="20sp"
android:textStyle="bold" />
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/recycleView2"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:paddingBottom="10dp"
android:orientation="vertical"
android:padding="10dp">
<TextView
android:id="@+id/tvTitle"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="10dp"
android:paddingTop="10dp"
android:text="@string/app.about.community.title"
android:textColor="@color/text_color"
android:textSize="20sp"
android:textStyle="bold" />
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/recycleView2"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginStart="8dp"
android:layout_marginEnd="8dp"
android:background="@drawable/rounded_all_corners"
android:layout_marginTop="10dp" />
android:layout_marginStart="8dp"
android:layout_marginEnd="8dp"
android:background="@drawable/rounded_all_corners"
android:layout_marginTop="10dp" />

<TextView
android:id="@+id/tvTitle2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="10dp"
android:layout_marginTop="16dp"
android:text="@string/app.about.feedback.title"
android:textColor="@color/text_color"
android:textSize="20sp"
android:textStyle="bold" />
<TextView
android:id="@+id/tvTitle2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="10dp"
android:layout_marginTop="16dp"
android:text="@string/app.about.feedback.title"
android:textColor="@color/text_color"
android:textSize="20sp"
android:textStyle="bold" />

<androidx.recyclerview.widget.RecyclerView
android:id="@+id/recycleView"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginStart="8dp"
android:layout_marginEnd="8dp"
android:background="@drawable/rounded_all_corners"
android:layout_marginTop="10dp" />
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/recycleView"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginStart="8dp"
android:layout_marginEnd="8dp"
android:background="@drawable/rounded_all_corners"
android:layout_marginTop="10dp" />

<TextView
android:id="@+id/tvTitle3"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="10dp"
android:layout_marginStart="16dp"
android:text="@string/app.about.legal.title"
android:textColor="@color/text_color"
android:textSize="20sp"
android:textStyle="bold" />
<TextView
android:id="@+id/tvTitle3"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="10dp"
android:layout_marginStart="16dp"
android:text="@string/app.about.legal.title"
android:textColor="@color/text_color"
android:textSize="20sp"
android:textStyle="bold" />

<androidx.recyclerview.widget.RecyclerView
android:id="@+id/recycleView3"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginStart="8dp"
android:layout_marginEnd="8dp"
android:background="@drawable/rounded_all_corners"
android:layout_marginTop="10dp"/>
</LinearLayout>
</ScrollView>
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/recycleView3"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginStart="8dp"
android:layout_marginTop="10dp"
android:background="@drawable/rounded_all_corners" />
</LinearLayout>
</ScrollView>
24 changes: 12 additions & 12 deletions app/src/main/res/layout/fragment_language_settings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,9 @@
android:id="@+id/functionalitySettingsTitle"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/app.settings.keyboard.functionality.title"
android:layout_marginStart="3dp"
android:layout_marginTop="8dp"
android:text="@string/app.settings.keyboard.functionality.title"
android:textColor="@color/app_text_color"
android:textSize="20sp"
android:textStyle="bold"
Expand All @@ -27,46 +28,45 @@
android:id="@+id/functionalityRecyclerView"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginTop="50dp"
android:padding="12dp"
android:layout_marginStart="8dp"
android:layout_marginEnd="8dp"
android:padding="12dp"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="0.0"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
app:layout_constraintTop_toBottomOf="@+id/functionalitySettingsTitle" />

<TextView
android:id="@+id/layoutSettingsTitle"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/app.settings.keyboard.layout.title"
android:layout_marginStart="3dp"
android:layout_marginTop="16dp"
android:text="@string/app.settings.keyboard.layout.title"
android:textColor="@color/app_text_color"
android:textSize="20sp"
android:textStyle="bold"
app:layout_constraintTop_toBottomOf="@id/functionalityRecyclerView"
app:layout_constraintBottom_toTopOf="@id/layoutRecyclerView"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="0.054"
app:layout_constraintStart_toStartOf="parent"

app:layout_constraintTop_toBottomOf="@id/functionalityRecyclerView"
app:layout_constraintVertical_bias="0.022" />




<androidx.recyclerview.widget.RecyclerView
android:id="@+id/layoutRecyclerView"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginTop="20dp"
android:padding="12dp"
app:layout_constraintEnd_toEndOf="parent"
android:layout_marginStart="8dp"
android:layout_marginTop="8dp"
android:layout_marginEnd="8dp"
android:paddingStart="12dp"
android:paddingEnd="12dp"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="0.0"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/functionalityRecyclerView" />
app:layout_constraintTop_toBottomOf="@+id/layoutSettingsTitle" />

</androidx.constraintlayout.widget.ConstraintLayout>
Loading

0 comments on commit 3a42196

Please sign in to comment.