首先对不起我的英文! 我认为:http://www.appcelerator.com/blog/2015/07/understanding-the-android-material-theme/下面的步骤使用我的Android应用程序的材料主题!它适用于Titanium Classic,但不适用于Alloy Framework。这两种方法有差异吗?钛合金材质设计
随着合金我只是没有看到有或没有主题的任何differencies。
我收到的错误是:
[ERROR] Detected legacy "/platform" directory in project directory.
[ERROR] Please move the "/platform" directory to "/app/platform" for Alloy 1.8.0 or later. [ERROR] Alloy compiler failed
但移动/平台/应用/平台,它仍然没有工作
谢谢,卢卡
编辑:
我发现一个可能的修复。在我tiapp.xml(与TiShadow产生的),我有:
<android xmlns:android="http://schemas.android.com/apk/res/android">
**POSITION ONE**
<manifest android:versionCode="6" android:versionName="1.5.0">
<uses-permission android:name="android.permission.ACCESS_CHECKIN_PROPERTIES" />
//long list of uses-permission
<uses-feature android:name='android.hardware.microphone' android:required="false" />
//long list of uses-features
<application>
<meta-data android:name="com.sec.android.support.multiwindow" android:value="true"/>
</application>
</manifest>
**POSITION TWO**
</android>
我要插入:
<manifest>
<application android:theme="@style/Theme.Appcelerator"> </application>
</manifest>
如果我插入它位置的一个,这是行不通的(完全忽略);但如果我将它插入POSITION TWO它工作正常。
我试了更多次,结果相同。有人能给我一个解释吗? :困惑:
它显示任何错误?请在这里发布你的代码。 – Sachith
没有人错误,只是颜色不会改变。 我按照步骤在一个空白的钛+ TiShadow +合金项目指南中的示例 – Luca4k4
对不起,我收到此错误: [错误]检测到项目目录中的传统“/平台”目录。 [错误]请将合金1.8.0或更高版本的“/ platform”目录移动到“/ app/platform”。 [错误]合金编译器失败。 ... 但移动/平台到/应用程序/平台它仍然无法工作 – Luca4k4