Skip to content

Commit

Permalink
Merge branch 'fix-text-clipping' of git://github.com/Backfighter/mone…
Browse files Browse the repository at this point in the history
…ywallet into Backfighter-fix-text-clipping
  • Loading branch information
AndreAle94 committed May 22, 2021
2 parents 3e9c82b + 574c446 commit eee8c4f
Show file tree
Hide file tree
Showing 9 changed files with 115 additions and 106 deletions.
6 changes: 4 additions & 2 deletions app/src/main/res/layout/adapter_budget_type_selector_item.xml
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,10 @@
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="@dimen/material_component_dialog_lists_with_avatar_height"
android:background="?attr/selectableItemBackground" >
android:layout_height="wrap_content"
android:background="?attr/selectableItemBackground"
android:paddingTop="@dimen/material_component_lists_padding_top"
android:paddingBottom="@dimen/material_component_lists_padding_bottom">

<com.oriondev.moneywallet.ui.view.theme.ThemedImageView
android:id="@+id/avatar_image_view"
Expand Down
6 changes: 4 additions & 2 deletions app/src/main/res/layout/adapter_data_format_selector_item.xml
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,10 @@
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="@dimen/material_component_dialog_lists_with_avatar_height"
android:background="?attr/selectableItemBackground" >
android:layout_height="wrap_content"
android:background="?attr/selectableItemBackground"
android:paddingTop="@dimen/material_component_lists_padding_top"
android:paddingBottom="@dimen/material_component_lists_padding_bottom" >

<com.oriondev.moneywallet.ui.view.theme.ThemedImageView
android:id="@+id/avatar_image_view"
Expand Down
72 changes: 36 additions & 36 deletions app/src/main/res/layout/adapter_event_selector_item.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
<?xml version="1.0" encoding="utf-8"?><!--
~ Copyright (c) 2018.
~
~ This file is part of MoneyWallet.
Expand All @@ -18,20 +17,21 @@
~ along with MoneyWallet. If not, see <http://www.gnu.org/licenses/>.
-->

<androidx.constraintlayout.widget.ConstraintLayout
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"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="@dimen/material_component_dialog_lists_with_avatar_height"
android:background="?attr/selectableItemBackground" >
android:layout_height="wrap_content"
android:background="?attr/selectableItemBackground"
android:paddingTop="@dimen/material_component_lists_padding_top"
android:paddingBottom="@dimen/material_component_lists_padding_bottom">

<ImageView
android:id="@+id/avatar_image_view"
android:layout_width="@dimen/material_component_dialog_lists_avatar_width"
android:layout_height="@dimen/material_component_dialog_lists_avatar_height"
android:layout_marginLeft="@dimen/material_component_dialog_lists_start_margin"
android:layout_marginStart="@dimen/material_component_dialog_lists_start_margin"
android:layout_marginLeft="@dimen/material_component_dialog_lists_start_margin"
android:contentDescription="@string/description_event_icon"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintStart_toStartOf="parent"
Expand All @@ -45,47 +45,47 @@
android:orientation="horizontal"
app:layout_constraintGuide_begin="30dp" />

<com.oriondev.moneywallet.ui.view.theme.ThemedImageView
android:id="@+id/selector_image_view"
android:layout_width="@dimen/material_component_dialog_lists_selector_width"
android:layout_height="@dimen/material_component_dialog_lists_selector_height"
android:layout_marginEnd="@dimen/material_component_dialog_lists_end_margin"
android:layout_marginRight="@dimen/material_component_dialog_lists_end_margin"
android:contentDescription="@string/description_selector_icon"
android:src="@drawable/ic_check_black_24dp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:theme_backgroundColor="colorWindowBackground" />

<com.oriondev.moneywallet.ui.view.theme.ThemedTextView
android:id="@+id/primary_text_view"
android:id="@+id/secondary_text_view"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginLeft="@dimen/material_component_dialog_lists_with_avatar_text_start_margin"
android:layout_marginStart="@dimen/material_component_dialog_lists_with_avatar_text_start_margin"
android:layout_marginRight="@dimen/material_component_dialog_lists_with_avatar_text_end_margin"
android:layout_marginLeft="@dimen/material_component_dialog_lists_with_avatar_text_start_margin"
android:layout_marginEnd="@dimen/material_component_dialog_lists_with_avatar_text_end_margin"
android:textSize="@dimen/material_component_lists_two_line_with_avatar_primary_text_size"
app:layout_constraintBottom_toTopOf="@+id/text_guideline"
app:layout_constraintStart_toEndOf="@+id/avatar_image_view"
android:layout_marginRight="@dimen/material_component_dialog_lists_with_avatar_text_end_margin"
android:textSize="@dimen/material_component_lists_two_line_with_avatar_secondary_text_size"
app:layout_constraintEnd_toStartOf="@+id/selector_image_view"
app:theme_textColor="textColorPrimary"
tools:text="Travel to NewYork" />
app:layout_constraintStart_toEndOf="@+id/avatar_image_view"
app:layout_constraintTop_toBottomOf="@+id/text_guideline"
app:theme_textColor="textColorSecondary"
tools:text="Will finish tomorrow" />

<com.oriondev.moneywallet.ui.view.theme.ThemedTextView
android:id="@+id/secondary_text_view"
android:id="@+id/primary_text_view"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginLeft="@dimen/material_component_dialog_lists_with_avatar_text_start_margin"
android:layout_marginStart="@dimen/material_component_dialog_lists_with_avatar_text_start_margin"
android:layout_marginRight="@dimen/material_component_dialog_lists_with_avatar_text_end_margin"
android:layout_marginLeft="@dimen/material_component_dialog_lists_with_avatar_text_start_margin"
android:layout_marginEnd="@dimen/material_component_dialog_lists_with_avatar_text_end_margin"
android:textSize="@dimen/material_component_lists_two_line_with_avatar_secondary_text_size"
app:layout_constraintTop_toBottomOf="@+id/text_guideline"
app:layout_constraintStart_toEndOf="@+id/avatar_image_view"
android:layout_marginRight="@dimen/material_component_dialog_lists_with_avatar_text_end_margin"
android:textSize="@dimen/material_component_lists_two_line_with_avatar_primary_text_size"
app:layout_constraintBottom_toTopOf="@+id/text_guideline"
app:layout_constraintEnd_toStartOf="@+id/selector_image_view"
app:theme_textColor="textColorSecondary"
tools:text="Will finish tomorrow" />

<com.oriondev.moneywallet.ui.view.theme.ThemedImageView
android:id="@+id/selector_image_view"
android:layout_width="@dimen/material_component_dialog_lists_selector_width"
android:layout_height="@dimen/material_component_dialog_lists_selector_height"
android:layout_marginRight="@dimen/material_component_dialog_lists_end_margin"
android:layout_marginEnd="@dimen/material_component_dialog_lists_end_margin"
android:contentDescription="@string/description_selector_icon"
android:src="@drawable/ic_check_black_24dp"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:theme_backgroundColor="colorWindowBackground" />
app:layout_constraintStart_toEndOf="@+id/avatar_image_view"
app:theme_textColor="textColorPrimary"
tools:text="Travel to NewYork" />

</androidx.constraintlayout.widget.ConstraintLayout>
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,10 @@
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="@dimen/material_component_dialog_lists_with_avatar_height"
android:background="?attr/selectableItemBackground" >
android:layout_height="wrap_content"
android:background="?attr/selectableItemBackground"
android:paddingTop="@dimen/material_component_lists_padding_top"
android:paddingBottom="@dimen/material_component_lists_padding_bottom">

<ImageView
android:id="@+id/avatar_image_view"
Expand Down
45 changes: 23 additions & 22 deletions app/src/main/res/layout/adapter_person_selector_item.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,53 +18,54 @@
~ along with MoneyWallet. If not, see <http://www.gnu.org/licenses/>.
-->

<androidx.constraintlayout.widget.ConstraintLayout
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"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="@dimen/material_component_dialog_lists_with_avatar_height"
android:background="?attr/selectableItemBackground" >
android:layout_height="wrap_content"
android:background="?attr/selectableItemBackground"
android:paddingTop="@dimen/material_component_lists_padding_top"
android:paddingBottom="@dimen/material_component_lists_padding_bottom">

<ImageView
android:id="@+id/avatar_image_view"
android:layout_width="@dimen/material_component_dialog_lists_avatar_width"
android:layout_height="@dimen/material_component_dialog_lists_avatar_height"
android:layout_marginLeft="@dimen/material_component_dialog_lists_start_margin"
android:layout_marginStart="@dimen/material_component_dialog_lists_start_margin"
android:layout_marginLeft="@dimen/material_component_dialog_lists_start_margin"
android:contentDescription="@string/description_person_icon"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
tools:src="@mipmap/ic_launcher" />

<com.oriondev.moneywallet.ui.view.theme.ThemedImageView
android:id="@+id/selector_image_view"
android:layout_width="@dimen/material_component_dialog_lists_selector_width"
android:layout_height="@dimen/material_component_dialog_lists_selector_height"
android:layout_marginEnd="@dimen/material_component_dialog_lists_end_margin"
android:layout_marginRight="@dimen/material_component_dialog_lists_end_margin"
android:contentDescription="@string/description_selector_icon"
android:src="@drawable/ic_check_black_24dp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:theme_backgroundColor="colorWindowBackground" />

<com.oriondev.moneywallet.ui.view.theme.ThemedTextView
android:id="@+id/primary_text_view"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginLeft="@dimen/material_component_dialog_lists_with_avatar_text_start_margin"
android:layout_marginStart="@dimen/material_component_dialog_lists_with_avatar_text_start_margin"
android:layout_marginRight="@dimen/material_component_dialog_lists_with_avatar_text_end_margin"
android:layout_marginLeft="@dimen/material_component_dialog_lists_with_avatar_text_start_margin"
android:layout_marginEnd="@dimen/material_component_dialog_lists_with_avatar_text_end_margin"
android:layout_marginRight="@dimen/material_component_dialog_lists_with_avatar_text_end_margin"
android:textSize="@dimen/material_component_lists_two_line_with_avatar_primary_text_size"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintStart_toEndOf="@+id/avatar_image_view"
app:layout_constraintEnd_toStartOf="@+id/selector_image_view"
app:layout_constraintStart_toEndOf="@+id/avatar_image_view"
app:layout_constraintTop_toTopOf="parent"
app:theme_textColor="textColorPrimary"
tools:text="John Doe" />

<com.oriondev.moneywallet.ui.view.theme.ThemedImageView
android:id="@+id/selector_image_view"
android:layout_width="@dimen/material_component_dialog_lists_selector_width"
android:layout_height="@dimen/material_component_dialog_lists_selector_height"
android:layout_marginRight="@dimen/material_component_dialog_lists_end_margin"
android:layout_marginEnd="@dimen/material_component_dialog_lists_end_margin"
android:contentDescription="@string/description_selector_icon"
android:src="@drawable/ic_check_black_24dp"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:theme_backgroundColor="colorWindowBackground" />

</androidx.constraintlayout.widget.ConstraintLayout>
76 changes: 38 additions & 38 deletions app/src/main/res/layout/adapter_place_selector_item.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
<?xml version="1.0" encoding="utf-8"?><!--
~ Copyright (c) 2018.
~
~ This file is part of MoneyWallet.
Expand All @@ -18,20 +17,21 @@
~ along with MoneyWallet. If not, see <http://www.gnu.org/licenses/>.
-->

<androidx.constraintlayout.widget.ConstraintLayout
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"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="@dimen/material_component_dialog_lists_with_avatar_height"
android:background="?attr/selectableItemBackground" >
android:layout_height="wrap_content"
android:background="?attr/selectableItemBackground"
android:paddingTop="@dimen/material_component_lists_padding_top"
android:paddingBottom="@dimen/material_component_lists_padding_bottom">

<ImageView
android:id="@+id/avatar_image_view"
android:layout_width="@dimen/material_component_dialog_lists_avatar_width"
android:layout_height="@dimen/material_component_dialog_lists_avatar_height"
android:layout_marginLeft="@dimen/material_component_dialog_lists_start_margin"
android:layout_marginStart="@dimen/material_component_dialog_lists_start_margin"
android:layout_marginLeft="@dimen/material_component_dialog_lists_start_margin"
android:contentDescription="@string/description_place_icon"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintStart_toStartOf="parent"
Expand All @@ -45,51 +45,51 @@
android:orientation="horizontal"
app:layout_constraintGuide_begin="30dp" />

<com.oriondev.moneywallet.ui.view.theme.ThemedImageView
android:id="@+id/selector_image_view"
android:layout_width="@dimen/material_component_dialog_lists_selector_width"
android:layout_height="@dimen/material_component_dialog_lists_selector_height"
android:layout_marginEnd="@dimen/material_component_dialog_lists_end_margin"
android:layout_marginRight="@dimen/material_component_dialog_lists_end_margin"
android:contentDescription="@string/description_selector_icon"
android:src="@drawable/ic_check_black_24dp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:theme_backgroundColor="colorWindowBackground" />

<com.oriondev.moneywallet.ui.view.theme.ThemedTextView
android:id="@+id/primary_text_view"
android:id="@+id/secondary_text_view"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginLeft="@dimen/material_component_dialog_lists_with_avatar_text_start_margin"
android:layout_marginStart="@dimen/material_component_dialog_lists_with_avatar_text_start_margin"
android:layout_marginRight="@dimen/material_component_dialog_lists_with_avatar_text_end_margin"
android:layout_marginLeft="@dimen/material_component_dialog_lists_with_avatar_text_start_margin"
android:layout_marginEnd="@dimen/material_component_dialog_lists_with_avatar_text_end_margin"
android:textSize="@dimen/material_component_lists_two_line_with_avatar_primary_text_size"
android:maxLines="1"
android:layout_marginRight="@dimen/material_component_dialog_lists_with_avatar_text_end_margin"
android:ellipsize="end"
app:layout_constraintBottom_toTopOf="@+id/text_guideline"
app:layout_constraintStart_toEndOf="@+id/avatar_image_view"
android:maxLines="1"
android:textSize="@dimen/material_component_lists_two_line_with_avatar_secondary_text_size"
app:layout_constraintEnd_toStartOf="@+id/selector_image_view"
app:theme_textColor="textColorPrimary"
tools:text="NewYork city" />
app:layout_constraintStart_toEndOf="@+id/avatar_image_view"
app:layout_constraintTop_toBottomOf="@+id/text_guideline"
app:theme_textColor="textColorSecondary"
tools:text="Address here" />

<com.oriondev.moneywallet.ui.view.theme.ThemedTextView
android:id="@+id/secondary_text_view"
android:id="@+id/primary_text_view"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginLeft="@dimen/material_component_dialog_lists_with_avatar_text_start_margin"
android:layout_marginStart="@dimen/material_component_dialog_lists_with_avatar_text_start_margin"
android:layout_marginRight="@dimen/material_component_dialog_lists_with_avatar_text_end_margin"
android:layout_marginLeft="@dimen/material_component_dialog_lists_with_avatar_text_start_margin"
android:layout_marginEnd="@dimen/material_component_dialog_lists_with_avatar_text_end_margin"
android:textSize="@dimen/material_component_lists_two_line_with_avatar_secondary_text_size"
android:maxLines="1"
android:layout_marginRight="@dimen/material_component_dialog_lists_with_avatar_text_end_margin"
android:ellipsize="end"
app:layout_constraintTop_toBottomOf="@+id/text_guideline"
app:layout_constraintStart_toEndOf="@+id/avatar_image_view"
android:maxLines="1"
android:textSize="@dimen/material_component_lists_two_line_with_avatar_primary_text_size"
app:layout_constraintBottom_toTopOf="@+id/text_guideline"
app:layout_constraintEnd_toStartOf="@+id/selector_image_view"
app:theme_textColor="textColorSecondary"
tools:text="Address here" />

<com.oriondev.moneywallet.ui.view.theme.ThemedImageView
android:id="@+id/selector_image_view"
android:layout_width="@dimen/material_component_dialog_lists_selector_width"
android:layout_height="@dimen/material_component_dialog_lists_selector_height"
android:layout_marginRight="@dimen/material_component_dialog_lists_end_margin"
android:layout_marginEnd="@dimen/material_component_dialog_lists_end_margin"
android:contentDescription="@string/description_selector_icon"
android:src="@drawable/ic_check_black_24dp"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:theme_backgroundColor="colorWindowBackground" />
app:layout_constraintStart_toEndOf="@+id/avatar_image_view"
app:theme_textColor="textColorPrimary"
tools:text="NewYork city" />

</androidx.constraintlayout.widget.ConstraintLayout>
Loading

0 comments on commit eee8c4f

Please sign in to comment.