manumaticx / Ti.DrawerLayout-Demo-Alloy-App

This has moved here:
https://github.com/manumaticx/NavigationDrawer-Demo
18 stars 9 forks source link

Problem with style and ActionBar #6

Closed bcarvalho89 closed 8 years ago

bcarvalho89 commented 8 years ago

Hello.

I cloned the repository and test in emulator, but I had two problems:

  1. Is there a problem in themes.xml file, it is not applying the defined styles. Thus, the color of the ActionBar and the item android:windowTranslucentStatus not work.
  2. The other problem is that the ActionBar is not being updated when select a menu item. The title and items (icons) that appear are the main view.

image

Installing wintest.apk which is by the repository, issue 1 does not exist, but the 2 continues.

Could help me?

System Windows 8.1 64 Appcelerator Studio 4.5.0.2 Titanium SDK 5.2.0 - 5.1.1 - 5.1.0 Device: Genymotion Nexus 4 - Android 5 / Genymotion Galaxy S6 - Android 6

Thanks.

manumaticx commented 8 years ago

Hi @bcarvalho89

sorry for the late reply.

  1. You have to ensure, that Titanium is packaging the local module here. If it picks the globally installed version of Ti.DrawerLayout it's not working. Please note that I also modified the content of drawer_main.xml within the local module.
  2. This was my mistake. I removed too much of the old code. I'll push a fix in a sec.
manumaticx commented 8 years ago

that should work.

bcarvalho89 commented 8 years ago

1 - You are correct. The problem was in global module. 2 - Your update works like a charm ;)

Thanks for reply and attention.

MahmoudElmoghazy commented 8 years ago

@manumaticx I didn't understande the answer i have the same issue

manumaticx commented 8 years ago

@MahmoudElmoghazy the Theme issue or the actionbar update issue?

MahmoudElmoghazy commented 8 years ago

@manumaticx The action bar doesn't take any color from my theme file

manumaticx commented 8 years ago

Okay, I already fixed this here but I didn't update the module yet. I also have to document this. I know, I'm lazy ;)

You can work around this by installing the latest version of the Ti.DrawerLayout module locally as I did here in this demo app. And then go into {project root}/modules/android/com.tripvi.drawerlayout/1.3.6/platform/android/res/layout and adjust the drawer_main.xml like here: https://github.com/manumaticx/Ti.DrawerLayout-Demo-Alloy-App/blob/master/modules/android/com.tripvi.drawerlayout/1.3.6/platform/android/res/layout/drawer_main.xml