Skip to content

Commit

Permalink
Center the title text in custom bridge sheet
Browse files Browse the repository at this point in the history
Signed-off-by: meenbeese <meenbeese@tutanota.com>
  • Loading branch information
meenbeese committed Nov 22, 2023
1 parent 5d43a1a commit 007029d
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 9 deletions.
4 changes: 3 additions & 1 deletion app/src/main/res/layout/custom_bridge_bottom_sheet.xml
Expand Up @@ -14,7 +14,9 @@
android:text="@string/custom_bridge"
style="@style/BottomSheetHeader"
android:layout_width="wrap_content"
android:layout_height="wrap_content"/>
android:layout_height="wrap_content"
android:layout_marginTop="8dp"
android:layout_marginStart="118dp" />

<TextView
android:textColor="@android:color/white"
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/res/layout/layout_apps.xml
Expand Up @@ -17,7 +17,7 @@
android:visibility="gone" />

<GridView
android:layout_marginLeft="@dimen/activity_horizontal_margin"
android:layout_marginStart="@dimen/activity_horizontal_margin"
android:layout_marginTop="4dp"
android:layout_marginBottom="4dp"
android:id="@+id/applistview"
Expand Down
14 changes: 7 additions & 7 deletions app/src/main/res/layout/layout_apps_item.xml
Expand Up @@ -9,7 +9,7 @@
<TextView
android:visibility="visible"
android:id="@+id/tvHeader"
android:layout_marginLeft="8dp"
android:layout_marginStart="8dp"
tools:text="@string/apps_suggested_title"
android:textColor="@color/text_purple"
android:layout_width="wrap_content"
Expand All @@ -24,8 +24,8 @@
android:id="@+id/tvSubheader"
tools:text="@string/app_suggested_subtitle"
android:textColor="@android:color/white"
android:layout_marginLeft="8dp"
android:layout_marginRight="4dp"
android:layout_marginStart="8dp"
android:layout_marginEnd="4dp"
android:layout_width="wrap_content"
android:layout_height="wrap_content"/>

Expand All @@ -41,10 +41,10 @@
android:layout_height="match_parent"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintStart_toStartOf="parent"
android:layout_marginRight="@dimen/activity_horizontal_margin" />
android:layout_marginEnd="@dimen/activity_horizontal_margin" />

<ImageView
android:layout_marginLeft="4dp"
android:layout_marginStart="4dp"
android:id="@+id/itemicon"
android:layout_width="48dp"
android:layout_height="match_parent"
Expand All @@ -68,10 +68,10 @@
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintStart_toEndOf="@id/itemicon"
app:layout_constraintEnd_toEndOf="parent"
android:layout_marginRight="2dp"
android:layout_marginEnd="2dp"
tools:text="App Name Here that is really long"
android:gravity="center_vertical"
android:layout_marginLeft="@dimen/activity_horizontal_margin" />
android:layout_marginStart="@dimen/activity_horizontal_margin" />


</androidx.constraintlayout.widget.ConstraintLayout>
Expand Down

0 comments on commit 007029d

Please sign in to comment.