Closed MufriA closed 9 years ago
When using a custom theme with Mobihelp SDK,
Theme.MobihelpSDK.Light
present in res/values/themes.xml in the custom theme. The icons are based on these attributes. If it still doesn't work, please let us know. Thanks.
@tryprasannan For material theme extending Theme.AppCompat mandatory so I already do already, refer the code i use.
I do have theme attribs, but from logs its clear SDK is invoking setDisplayHomeAsUpEnabled before setSupportActionBar, this is mandatory in material theme because by default material themes don't have a toolbar unlike previous releases, we need to add toolbar manually. FYI i use appcompat-v7:21.0.3
We support toolbar in the latest release v1.3.1 of Mobihelp SDK with appcompat-v7 r21+
I am facing the same issue when I remove all theme attributes from sdk's AndroidManifest.xml
Unable to start activity ComponentInfo{com.Kochar.IT.GizmoControl/com.freshdesk.mobihelp.activity.SolutionArticleListActivity}: android.view.InflateException: Binary XML file line #27: Error inflating class
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2327)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2378)
at android.app.ActivityThread.access$800(ActivityThread.java:155)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1244)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:136)
at android.app.ActivityThread.main(ActivityThread.java:5433)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:515)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1268)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1084)
at dalvik.system.NativeStart.main(Native Method)
Caused by: android.view.InflateException: Binary XML file line #27: Error inflating class
Please help.
I get below crash when I remove all theme attributes from sdk's AndroidManifest.xml
In material theme we need to first set the toolbar before we invoke setDisplayHomeAsUpEnabled, below code works inside my activities