Skip to content

Commit 4b52ec4

Browse files
author
Xavier Ducrohet
committed
LayoutLib: Original import of Honeycomb's layoutlib. do not merge.
frameworks/base.git @ f0a5343 Change-Id: Ibc215751693dc7650683b61bb458f7c8beaf8060
1 parent 2050de5 commit 4b52ec4

File tree

141 files changed

+17623
-8401
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

141 files changed

+17623
-8401
lines changed

tools/layoutlib/README

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
Layoutlib is a custom version of the android View framework designed to run inside Eclipse.
2+
The goal of the library is to provide layout rendering in Eclipse that are very very close to their rendering on devices.
3+
4+
None of the com.android.* or android.* classes in layoutlib run on devices.

tools/layoutlib/bridge/.classpath

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,10 @@
44
<classpathentry kind="src" path="tests"/>
55
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
66
<classpathentry kind="con" path="org.eclipse.jdt.junit.JUNIT_CONTAINER/3"/>
7-
<classpathentry combineaccessrules="false" kind="src" path="/layoutlib_api"/>
8-
<classpathentry kind="var" path="ANDROID_SRC/prebuilt/common/kxml2/kxml2-2.3.0.jar" sourcepath="/ANDROID_SRC/dalvik/libcore/xml/src/main/java"/>
9-
<classpathentry kind="var" path="ANDROID_OUT_FRAMEWORK/layoutlib.jar" sourcepath="/ANDROID_SRC/frameworks/base/core/java"/>
10-
<classpathentry kind="var" path="ANDROID_OUT_FRAMEWORK/ninepatch.jar" sourcepath="/ANDROID_SRC/development/tools/ninepatch/src"/>
7+
<classpathentry kind="var" path="ANDROID_PLAT_SRC/prebuilt/common/layoutlib_api/layoutlib_api-prebuilt.jar"/>
8+
<classpathentry kind="var" path="ANDROID_PLAT_SRC/prebuilt/common/kxml2/kxml2-2.3.0.jar" sourcepath="/ANDROID_PLAT_SRC/dalvik/libcore/xml/src/main/java"/>
9+
<classpathentry kind="var" path="ANDROID_PLAT_SRC/out/host/common/obj/JAVA_LIBRARIES/temp_layoutlib_intermediates/javalib.jar" sourcepath="/ANDROID_PLAT_SRC/frameworks/base"/>
10+
<classpathentry kind="var" path="ANDROID_PLAT_SRC/prebuilt/common/ninepatch/ninepatch-prebuilt.jar"/>
11+
<classpathentry kind="var" path="ANDROID_PLAT_SRC/prebuilt/common/tools-common/tools-common-prebuilt.jar"/>
1112
<classpathentry kind="output" path="bin"/>
1213
</classpath>

tools/layoutlib/bridge/Android.mk

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,17 @@ LOCAL_PATH := $(call my-dir)
1717
include $(CLEAR_VARS)
1818

1919
LOCAL_SRC_FILES := $(call all-java-files-under,src)
20+
LOCAL_JAVA_RESOURCE_DIRS := resources
21+
2022

2123
LOCAL_JAVA_LIBRARIES := \
2224
kxml2-2.3.0 \
23-
layoutlib_api \
24-
ninepatch
25+
layoutlib_api-prebuilt \
26+
tools-common-prebuilt
2527

26-
LOCAL_STATIC_JAVA_LIBRARIES := temp_layoutlib
28+
LOCAL_STATIC_JAVA_LIBRARIES := \
29+
temp_layoutlib \
30+
ninepatch-prebuilt
2731

2832
LOCAL_MODULE := layoutlib
2933

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<merge xmlns:android="http://schemas.android.com/apk/res/android">
3+
<ImageView
4+
android:layout_height="wrap_content"
5+
android:layout_width="wrap_content"/>
6+
<TextView
7+
android:layout_width="wrap_content"
8+
android:layout_height="wrap_content"/>
9+
</merge>
1.17 KB
Loading
3.16 KB
Loading
3.81 KB
Loading
3.9 KB
Loading
3.07 KB
Loading
885 Bytes
Loading

0 commit comments

Comments
 (0)