-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add chevron option to title link (#371)
* Add chevron option to title link * Update readmes * Remove 'm' typo * Add arguments * Do Jesus comments * Replace to use right icon * Add margin 2dp
- Loading branch information
1 parent
95cbd41
commit 8ce15d8
Showing
8 changed files
with
140 additions
and
46 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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,37 +1,58 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<merge xmlns:android="http://schemas.android.com/apk/res/android" | ||
xmlns:tools="http://schemas.android.com/tools" | ||
xmlns:app="http://schemas.android.com/apk/res-auto" | ||
android:layout_width="match_parent" | ||
android:layout_height="match_parent" | ||
tools:parentTag="androidx.constraintlayout.widget.ConstraintLayout"> | ||
xmlns:tools="http://schemas.android.com/tools" | ||
xmlns:app="http://schemas.android.com/apk/res-auto" | ||
android:layout_width="match_parent" | ||
android:layout_height="match_parent" | ||
tools:parentTag="androidx.constraintlayout.widget.ConstraintLayout"> | ||
|
||
<com.google.android.material.textview.MaterialTextView | ||
android:id="@+id/title_text" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
app:layout_constrainedWidth="true" | ||
app:layout_constraintHorizontal_bias="0.0" | ||
app:layout_constraintStart_toStartOf="parent" | ||
app:layout_constraintBottom_toBottomOf="parent" | ||
app:layout_constraintEnd_toStartOf="@id/link_text" | ||
app:layout_constraintTop_toTopOf="parent" | ||
android:textAppearance="@style/AppTheme.TextAppearance.Preset1.Medium" | ||
android:textColor="?colorTextSecondary" | ||
tools:text="Some title that can get really long and almost fill the whole line" /> | ||
<com.google.android.material.textview.MaterialTextView | ||
android:id="@+id/title_text" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
app:layout_constrainedWidth="true" | ||
app:layout_constraintHorizontal_bias="0.0" | ||
app:layout_constraintStart_toStartOf="parent" | ||
app:layout_constraintBottom_toBottomOf="parent" | ||
app:layout_constraintEnd_toStartOf="@id/link_layout" | ||
app:layout_constraintTop_toTopOf="parent" | ||
android:textAppearance="@style/AppTheme.TextAppearance.Preset1.Medium" | ||
android:textColor="?colorTextSecondary" | ||
tools:text="Some title that can get really long and almost fill the whole line"/> | ||
|
||
<com.google.android.material.textview.MaterialTextView | ||
android:id="@+id/link_text" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:paddingStart="16dp" | ||
app:layout_constraintEnd_toEndOf="parent" | ||
app:layout_constraintTop_toTopOf="parent" | ||
android:textAppearance="@style/AppTheme.TextAppearance.PresetLink" | ||
app:layout_constraintBaseline_toBaselineOf="@id/title_text" | ||
android:textColor="?colorTextLink" | ||
android:visibility="gone" | ||
tools:text="Some link" | ||
tools:visibility="visible" | ||
tools:ignore="RtlSymmetry" /> | ||
</merge> | ||
<LinearLayout | ||
android:id="@+id/link_layout" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
app:layout_constraintEnd_toEndOf="parent" | ||
app:layout_constraintTop_toTopOf="parent" | ||
app:layout_constraintBaseline_toBaselineOf="@id/title_text" | ||
android:gravity="center" | ||
android:visibility="gone" | ||
tools:visibility="visible"> | ||
|
||
<com.google.android.material.textview.MaterialTextView | ||
android:id="@+id/link_text" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:textAppearance="@style/AppTheme.TextAppearance.PresetLink" | ||
android:textColor="?colorTextLink" | ||
android:visibility="gone" | ||
tools:visibility="visible" | ||
android:paddingStart="16dp" | ||
tools:text="Some link" | ||
tools:ignore="RtlSymmetry"/> | ||
|
||
<ImageView | ||
android:id="@+id/link_chevron" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:importantForAccessibility="no" | ||
android:src="@drawable/icn_chevron" | ||
android:layout_marginStart="2dp" | ||
android:visibility="gone" | ||
tools:visibility="visible" | ||
app:tint="?attr/colorTextLink"/> | ||
</LinearLayout> | ||
|
||
</merge> |
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