Преглед на файлове

初始化能力开放平台Demo

leijie преди 8 години
родител
ревизия
37966b4adc

+ 27 - 0
demo-openplatform/AndroidManifest.xml

@ -0,0 +1,27 @@
1
<?xml version="1.0" encoding="utf-8"?>
2
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
3
    package="com.ai.ipu.openplatform_demo"
4
    android:versionCode="1"
5
    android:versionName="1.0" >
6
7
    <uses-sdk
8
        android:minSdkVersion="8"
9
        android:targetSdkVersion="15" />
10
11
    <application
12
        android:allowBackup="true"
13
        android:icon="@drawable/ic_launcher"
14
        android:label="@string/app_name"
15
        android:theme="@style/AppTheme" >
16
        <activity
17
            android:name=".MainActivity"
18
            android:label="@string/app_name" >
19
            <intent-filter>
20
                <action android:name="android.intent.action.MAIN" />
21
22
                <category android:name="android.intent.category.LAUNCHER" />
23
            </intent-filter>
24
        </activity>
25
    </application>
26
27
</manifest>

BIN
demo-openplatform/res/drawable-hdpi/ic_launcher.png


BIN
demo-openplatform/res/drawable-mdpi/ic_launcher.png


BIN
demo-openplatform/res/drawable-xhdpi/ic_launcher.png


BIN
demo-openplatform/res/drawable-xxhdpi/ic_launcher.png


+ 8 - 0
demo-openplatform/res/layout/activity_main.xml

@ -0,0 +1,8 @@
1
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
2
    xmlns:tools="http://schemas.android.com/tools"
3
    android:layout_width="match_parent"
4
    android:layout_height="match_parent"
5
    tools:context="com.ai.ipu.openplatform_demo.MainActivity" >
6
7
8
</RelativeLayout>

+ 11 - 0
demo-openplatform/res/values-v11/styles.xml

@ -0,0 +1,11 @@
1
<resources>
2
3
    <!--
4
        Base application theme for API 11+. This theme completely replaces
5
        AppBaseTheme from res/values/styles.xml on API 11+ devices.
6
    -->
7
    <style name="AppBaseTheme" parent="android:Theme.Holo.Light">
8
        <!-- API 11 theme customizations can go here. -->
9
    </style>
10
11
</resources>

+ 12 - 0
demo-openplatform/res/values-v14/styles.xml

@ -0,0 +1,12 @@
1
<resources>
2
3
    <!--
4
        Base application theme for API 14+. This theme completely replaces
5
        AppBaseTheme from BOTH res/values/styles.xml and
6
        res/values-v11/styles.xml on API 14+ devices.
7
    -->
8
    <style name="AppBaseTheme" parent="android:Theme.Holo.Light.DarkActionBar">
9
        <!-- API 14 theme customizations can go here. -->
10
    </style>
11
12
</resources>

+ 7 - 0
demo-openplatform/res/values/dimens.xml

@ -0,0 +1,7 @@
1
<resources>
2
3
    <!-- Default screen margins, per the Android Design guidelines. -->
4
    <dimen name="activity_horizontal_margin">16dp</dimen>
5
    <dimen name="activity_vertical_margin">16dp</dimen>
6
7
</resources>

+ 6 - 0
demo-openplatform/res/values/strings.xml

@ -0,0 +1,6 @@
1
<?xml version="1.0" encoding="utf-8"?>
2
<resources>
3
4
    <string name="app_name">能力开放平台展示</string>
5
6
</resources>

+ 20 - 0
demo-openplatform/res/values/styles.xml

@ -0,0 +1,20 @@
1
<resources>
2
3
    <!--
4
        Base application theme, dependent on API level. This theme is replaced
5
        by AppBaseTheme from res/values-vXX/styles.xml on newer devices.
6
    -->
7
    <style name="AppBaseTheme" parent="android:Theme.Light">
8
        <!--
9
            Theme customizations available in newer API levels can go in
10
            res/values-vXX/styles.xml, while customizations related to
11
            backward-compatibility can go here.
12
        -->
13
    </style>
14
15
    <!-- Application theme. -->
16
    <style name="AppTheme" parent="AppBaseTheme">
17
        <!-- All customizations that are NOT specific to a particular API-level can go here. -->
18
    </style>
19
20
</resources>

+ 13 - 0
demo-openplatform/src/com/ai/ipu/openplatform_demo/MainActivity.java

@ -0,0 +1,13 @@
1
package com.ai.ipu.openplatform_demo;
2
3
import android.app.Activity;
4
import android.os.Bundle;
5
6
public class MainActivity extends Activity {
7
8
	@Override
9
	protected void onCreate(Bundle savedInstanceState) {
10
		super.onCreate(savedInstanceState);
11
		setContentView(R.layout.activity_main);
12
	}
13
}

BIN
wade-mobile-common/libs/ipu-mobile-1.0.jar