Skip to content
This repository has been archived by the owner on Nov 8, 2023. It is now read-only.

Commit

Permalink
Add the support lib for VD and AVD
Browse files Browse the repository at this point in the history
By using auto namespace, we have all the functionality we want for support lib
of VD and AVD.

All the java files in the support lib are based upon the framework ones, with
slight modification.

The test cases are also from framework test, with namespace changed.
Note that the animator part are still using android namespace since they are
supported in v11.

TODO:
1 integrate the AAPT support to use android namespace.
2 find the best way to integrate the framework VD AVD for L+.

b/19200714

Change-Id: I10a80a89d26237ea780368e19929d83cd7678fff
  • Loading branch information
ztenghui committed Mar 26, 2015
1 parent c4555c9 commit 4fcaa70
Show file tree
Hide file tree
Showing 60 changed files with 4,221 additions and 297 deletions.
10 changes: 2 additions & 8 deletions v7/vectordrawable/Android.mk → graphics/Android.mk
Expand Up @@ -12,11 +12,5 @@
# See the License for the specific language governing permissions and
# limitations under the License.

LOCAL_PATH := $(call my-dir)

include $(CLEAR_VARS)
LOCAL_MODULE := android-support-v7-vectordrawable
LOCAL_SDK_VERSION := 7
LOCAL_SRC_FILES := $(call all-java-files-under,src)

include $(BUILD_STATIC_JAVA_LIBRARY)
LOCAL_PATH:= $(call my-dir)
include $(call all-makefiles-under,$(LOCAL_PATH))
41 changes: 41 additions & 0 deletions graphics/drawable/Android.mk
@@ -0,0 +1,41 @@
# Copyright (C) 2015 The Android Open Source Project
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

LOCAL_PATH := $(call my-dir)

#static vector drawable library
include $(CLEAR_VARS)
LOCAL_MODULE := android-support-v7-vectordrawable
LOCAL_SDK_VERSION := 7
LOCAL_SRC_FILES := $(call all-java-files-under, static)

LOCAL_JAVA_LIBRARIES := android-support-v4

LOCAL_RESOURCE_DIR := $(LOCAL_PATH)/res \

include $(BUILD_STATIC_JAVA_LIBRARY)

#Animated vector drawable library
include $(CLEAR_VARS)
LOCAL_MODULE := android-support-v11-animatedvectordrawable
LOCAL_SDK_VERSION := 11
LOCAL_SRC_FILES := $(call all-java-files-under, animated)

LOCAL_JAVA_LIBRARIES := android-support-v4

LOCAL_RESOURCE_DIR := $(LOCAL_PATH)/res \

LOCAL_STATIC_JAVA_LIBRARIES := android-support-v7-vectordrawable

include $(BUILD_STATIC_JAVA_LIBRARY)
4 changes: 4 additions & 0 deletions graphics/drawable/AndroidManifest.xml
@@ -0,0 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android" package="android.support.graphics.drawable">
<application />
</manifest>

0 comments on commit 4fcaa70

Please sign in to comment.