Skip to content

Commit

Permalink
MOBILE-2498: Provide custom Bank Container background for sample theme (
Browse files Browse the repository at this point in the history
#111)

Co-authored-by: anatolijs.petjko <anatolijs.petjko@kevin.eu>
  • Loading branch information
bettercalltolya and anatolijs.petjko authored Jun 27, 2023
1 parent c6dfa2b commit ae7077a
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
26 changes: 26 additions & 0 deletions sample/src/main/res/drawable/bank_list_item_background.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
<?xml version="1.0" encoding="utf-8"?>
<ripple xmlns:android="http://schemas.android.com/apk/res/android"
android:color="?colorControlHighlight">
<item>
<selector>
<item android:state_selected="true">
<shape android:shape="rectangle">
<solid android:color="?colorSurface" />
<corners android:radius="24dp" />
<stroke
android:width="2dp"
android:color="?colorControlHighlight" />
</shape>
</item>
<item>
<shape android:shape="rectangle">
<solid android:color="?colorSurface" />
<corners android:radius="24dp" />
<stroke
android:width="2dp"
android:color="?colorControlNormal" />
</shape>
</item>
</selector>
</item>
</ripple>
4 changes: 4 additions & 0 deletions sample/src/main/res/values/themes.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
<item name="android:colorBackground">#FF5B5B</item>
<item name="kevinToolbarStyle">@style/CustomToolbarTheme</item>
<item name="kevinLinkColor">#9C27B0</item>
<item name="kevinBankListItemContainerStyle">@style/KevinBankContainer</item>

<!-- 4. For a full list of all possible customizable parameters please visit
https://developer.kevin.eu/home/mobile-sdk/android/frame-customisation -->
Expand All @@ -28,4 +29,7 @@
<item name="titleTextColor">#FF9800</item>
</style>

<style name="KevinBankContainer" parent="Kevin.List.BankContainer">
<item name="android:background">@drawable/bank_list_item_background</item>
</style>
</resources>

0 comments on commit ae7077a

Please sign in to comment.