-
Notifications
You must be signed in to change notification settings - Fork 18
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
Sumru Kars
committed
Feb 10, 2022
1 parent
6b80082
commit 535ebe1
Showing
12 changed files
with
199 additions
and
20 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
14 changes: 14 additions & 0 deletions
14
...gestion-input-view/src/main/java/com/trendyol/suggestioninputview/SuggestionInputBadge.kt
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,14 @@ | ||
package com.trendyol.suggestioninputview | ||
|
||
import android.graphics.drawable.Drawable | ||
import androidx.annotation.ColorInt | ||
import androidx.annotation.Dimension | ||
|
||
data class SuggestionInputBadge( | ||
val text: String = "", | ||
val background: Drawable?, | ||
@ColorInt val textColor: Int, | ||
@Dimension val textSize: Float, | ||
@Dimension val horizontalPadding: Float, | ||
@Dimension val verticalPadding: Float | ||
) |
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
8 changes: 8 additions & 0 deletions
8
...es/suggestion-input-view/src/main/res/drawable/shape_background_suggestion_item_badge.xml
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,8 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<shape xmlns:android="http://schemas.android.com/apk/res/android" | ||
android:shape="rectangle"> | ||
|
||
<solid android:color="@color/background_color_suggestion_item_badge"/> | ||
<corners android:radius="@dimen/radius_background_suggestion_item_badge"/> | ||
|
||
</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
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
6 changes: 6 additions & 0 deletions
6
libraries/suggestion-input-view/src/main/res/values/dimens.xml
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,9 +1,15 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<resources> | ||
<dimen name="text_size_suggestion_input">14sp</dimen> | ||
<dimen name="text_size_suggestion_input_badge">10sp</dimen> | ||
<dimen name="horizontal_padding_suggestion_item">4dp</dimen> | ||
<dimen name="vertical_padding_suggestion_item">8dp</dimen> | ||
<dimen name="minWidth_suggestion_item">80dp</dimen> | ||
<dimen name="itemSpacing_suggestion_item">16dp</dimen> | ||
<dimen name="margin_input_items">16dp</dimen> | ||
<dimen name="margin_start_suggestion_item_badge">2dp</dimen> | ||
<dimen name="margin_top_suggestion_item">6dp</dimen> | ||
<dimen name="horizontal_padding_suggestion_item_badge">8dp</dimen> | ||
<dimen name="vertical_padding_suggestion_item_badge">2dp</dimen> | ||
<dimen name="radius_background_suggestion_item_badge">10dp</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