Skip to content

Commit

Permalink
Set Android custom theme for sample app
Browse files Browse the repository at this point in the history
  • Loading branch information
gaguirre committed Jul 5, 2016
1 parent 30c7d3f commit 77df35a
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
6 changes: 6 additions & 0 deletions sample/android/app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
package="com.accountkitsample"
android:versionCode="1"
android:versionName="1.0">
Expand Down Expand Up @@ -32,6 +33,11 @@

<activity android:name="com.facebook.react.devsupport.DevSettingsActivity" />

<activity
tools:replace="android:theme"
android:name="com.facebook.accountkit.ui.AccountKitActivity"
android:theme="@style/LoginThemeYellow" />

<meta-data
android:name="com.facebook.sdk.ApplicationId"
android:value="@string/app_id" />
Expand Down
10 changes: 10 additions & 0 deletions sample/android/app/src/main/res/values/styles.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,14 @@
<!-- Customize your theme here. -->
</style>

<style name="LoginThemeYellow" parent="Theme.AccountKit">
<item name="com_accountkit_primary_color">#f4bf56</item>
<item name="com_accountkit_primary_text_color">@android:color/white</item>
<item name="com_accountkit_secondary_text_color">#44566b</item>
<item name="com_accountkit_status_bar_color">#ed9d00</item>

<item name="com_accountkit_input_accent_color">?attr/com_accountkit_primary_color</item>
<item name="com_accountkit_input_border_color">?attr/com_accountkit_primary_color</item>
</style>

</resources>

0 comments on commit 77df35a

Please sign in to comment.