diff --git a/Core/AndroidBinding/.classpath b/Core/AndroidBinding/.classpath index a4f1e40..e059233 100644 --- a/Core/AndroidBinding/.classpath +++ b/Core/AndroidBinding/.classpath @@ -4,5 +4,6 @@ + diff --git a/Core/AndroidBinding/.gitignore b/Core/AndroidBinding/.gitignore index 8d94b88..0badf84 100644 --- a/Core/AndroidBinding/.gitignore +++ b/Core/AndroidBinding/.gitignore @@ -1 +1,5 @@ -/gen +gen +/**/* + +bin/**/* +/bin diff --git a/Core/AndroidBinding/bin/androidbinding.jar b/Core/AndroidBinding/bin/androidbinding.jar index d029d3f..5aaac97 100644 Binary files a/Core/AndroidBinding/bin/androidbinding.jar and b/Core/AndroidBinding/bin/androidbinding.jar differ diff --git a/Core/AndroidBinding/bin/classes/gueei/binding/menu/AbsMenuBridge$OptionsItemObserver.class b/Core/AndroidBinding/bin/classes/gueei/binding/menu/AbsMenuBridge$OptionsItemObserver.class index bd7d73d..9715c07 100644 Binary files a/Core/AndroidBinding/bin/classes/gueei/binding/menu/AbsMenuBridge$OptionsItemObserver.class and b/Core/AndroidBinding/bin/classes/gueei/binding/menu/AbsMenuBridge$OptionsItemObserver.class differ diff --git a/Core/AndroidBinding/bin/classes/gueei/binding/menu/AbsMenuBridge.class b/Core/AndroidBinding/bin/classes/gueei/binding/menu/AbsMenuBridge.class index e5903c4..06f4916 100644 Binary files a/Core/AndroidBinding/bin/classes/gueei/binding/menu/AbsMenuBridge.class and b/Core/AndroidBinding/bin/classes/gueei/binding/menu/AbsMenuBridge.class differ diff --git a/Core/AndroidBinding/bin/classes/gueei/binding/menu/BindableOptionsMenu.class b/Core/AndroidBinding/bin/classes/gueei/binding/menu/BindableOptionsMenu.class index 65249bb..577a5ce 100644 Binary files a/Core/AndroidBinding/bin/classes/gueei/binding/menu/BindableOptionsMenu.class and b/Core/AndroidBinding/bin/classes/gueei/binding/menu/BindableOptionsMenu.class differ diff --git a/Core/AndroidBinding/bin/classes/gueei/binding/menu/ContextMenuBinder.class b/Core/AndroidBinding/bin/classes/gueei/binding/menu/ContextMenuBinder.class index 860443f..1721d0c 100644 Binary files a/Core/AndroidBinding/bin/classes/gueei/binding/menu/ContextMenuBinder.class and b/Core/AndroidBinding/bin/classes/gueei/binding/menu/ContextMenuBinder.class differ diff --git a/Core/AndroidBinding/bin/classes/gueei/binding/menu/IMenuBinder.class b/Core/AndroidBinding/bin/classes/gueei/binding/menu/IMenuBinder.class index ab49222..bc38e53 100644 Binary files a/Core/AndroidBinding/bin/classes/gueei/binding/menu/IMenuBinder.class and b/Core/AndroidBinding/bin/classes/gueei/binding/menu/IMenuBinder.class differ diff --git a/Core/AndroidBinding/bin/classes/gueei/binding/menu/IMenuItemChangedCallback.class b/Core/AndroidBinding/bin/classes/gueei/binding/menu/IMenuItemChangedCallback.class index 16c1242..9b941f1 100644 Binary files a/Core/AndroidBinding/bin/classes/gueei/binding/menu/IMenuItemChangedCallback.class and b/Core/AndroidBinding/bin/classes/gueei/binding/menu/IMenuItemChangedCallback.class differ diff --git a/Core/AndroidBinding/bin/classes/gueei/binding/menu/MenuGroupBridge.class b/Core/AndroidBinding/bin/classes/gueei/binding/menu/MenuGroupBridge.class index a97c118..17367a1 100644 Binary files a/Core/AndroidBinding/bin/classes/gueei/binding/menu/MenuGroupBridge.class and b/Core/AndroidBinding/bin/classes/gueei/binding/menu/MenuGroupBridge.class differ diff --git a/Core/AndroidBinding/bin/classes/gueei/binding/menu/MenuItemBridge.class b/Core/AndroidBinding/bin/classes/gueei/binding/menu/MenuItemBridge.class index 6669a6b..bb06331 100644 Binary files a/Core/AndroidBinding/bin/classes/gueei/binding/menu/MenuItemBridge.class and b/Core/AndroidBinding/bin/classes/gueei/binding/menu/MenuItemBridge.class differ diff --git a/Core/AndroidBinding/bin/classes/gueei/binding/menu/MenuItemViemodel.class b/Core/AndroidBinding/bin/classes/gueei/binding/menu/MenuItemViemodel.class index 52182b9..0b3bbe9 100644 Binary files a/Core/AndroidBinding/bin/classes/gueei/binding/menu/MenuItemViemodel.class and b/Core/AndroidBinding/bin/classes/gueei/binding/menu/MenuItemViemodel.class differ diff --git a/Core/AndroidBinding/bin/classes/gueei/binding/menu/OnMenuItemClickListenerMulticast.class b/Core/AndroidBinding/bin/classes/gueei/binding/menu/OnMenuItemClickListenerMulticast.class index 06c3f69..e685966 100644 Binary files a/Core/AndroidBinding/bin/classes/gueei/binding/menu/OnMenuItemClickListenerMulticast.class and b/Core/AndroidBinding/bin/classes/gueei/binding/menu/OnMenuItemClickListenerMulticast.class differ diff --git a/Core/AndroidBinding/bin/classes/gueei/binding/menu/OptionsMenuBinder.class b/Core/AndroidBinding/bin/classes/gueei/binding/menu/OptionsMenuBinder.class index f4f0fa8..de5b8a8 100644 Binary files a/Core/AndroidBinding/bin/classes/gueei/binding/menu/OptionsMenuBinder.class and b/Core/AndroidBinding/bin/classes/gueei/binding/menu/OptionsMenuBinder.class differ diff --git a/Core/AndroidBinding/src/gueei/binding/menu/AbsMenuBridge.java b/Core/AndroidBinding/src/gueei/binding/menu/AbsMenuBridge.java index 7234590..d789574 100644 --- a/Core/AndroidBinding/src/gueei/binding/menu/AbsMenuBridge.java +++ b/Core/AndroidBinding/src/gueei/binding/menu/AbsMenuBridge.java @@ -24,11 +24,12 @@ public abstract class AbsMenuBridge { // Factory method public static AbsMenuBridge create - (String nodeName, int id, AttributeSet attrs, Context context, Object model){ + (String nodeName, int id, AttributeSet attrs, Context context, + Object model, IMenuItemChangedCallback callback){ AbsMenuBridge item; if ("item".equals(nodeName)){ - item = new MenuItemBridge(id, attrs, context, model); + item = new MenuItemBridge(id, attrs, context, model, callback); }else if ("group".equals(nodeName)){ item = new MenuGroupBridge(id, attrs, context, model); }else{ diff --git a/Core/AndroidBinding/src/gueei/binding/menu/BindableOptionsMenu.java b/Core/AndroidBinding/src/gueei/binding/menu/BindableOptionsMenu.java index 5f619b7..4c2bd5c 100644 --- a/Core/AndroidBinding/src/gueei/binding/menu/BindableOptionsMenu.java +++ b/Core/AndroidBinding/src/gueei/binding/menu/BindableOptionsMenu.java @@ -41,7 +41,7 @@ public BindableOptionsMenu(Activity context) { private final WeakReference mActivity; // Called by owner activity - public boolean onCreateOptionsMenu(Menu menu){ + public boolean onCreateOptionsMenu(Menu menu){ Activity activity = mActivity.get(); Object model; @@ -68,7 +68,7 @@ public boolean onCreateOptionsMenu(Menu menu){ if (id>0){ AttributeSet attrs = Xml.asAttributeSet(parser); AbsMenuBridge item = - AbsMenuBridge.create(nodeName, id, attrs, activity, model); + AbsMenuBridge.create(nodeName, id, attrs, activity, model, this); if (item!=null){ items.put(id, item); } @@ -88,25 +88,26 @@ public boolean onCreateOptionsMenu(Menu menu){ item.onCreateOptionItem(menu); } + menuCreated = true; return true; } - public boolean onPrepareOptionsMenu(Menu menu){ + public boolean onPrepareOptionsMenu(Menu menu){ for(AbsMenuBridge item: items.values()){ item.onPrepareOptionItem(menu); } return true; } - public boolean onOptionsItemSelected(MenuItem mi){ + public boolean onOptionsItemSelected(MenuItem mi){ AbsMenuBridge item = items.get(mi.getItemId()); if (item!=null){ return item.onOptionsItemSelected(mi); } return false; } - - @Override + + @Override public void onItemChanged(IObservable prop, AbsMenuBridge item) { invalidate(); } diff --git a/Core/AndroidBinding/src/gueei/binding/menu/OptionsMenuBinder.java b/Core/AndroidBinding/src/gueei/binding/menu/OptionsMenuBinder.java index e1dcbe5..e219d23 100644 --- a/Core/AndroidBinding/src/gueei/binding/menu/OptionsMenuBinder.java +++ b/Core/AndroidBinding/src/gueei/binding/menu/OptionsMenuBinder.java @@ -52,7 +52,7 @@ public boolean onCreateOptionsMenu(Activity activity, Menu menu, Object model){ if (id>0){ AttributeSet attrs = Xml.asAttributeSet(parser); AbsMenuBridge item = - AbsMenuBridge.create(nodeName, id, attrs, activity, model); + AbsMenuBridge.create(nodeName, id, attrs, activity, model, null); if (item!=null){ items.put(id, item); } diff --git a/Core/AndroidBinding/src/gueei/binding/utility/CacheHashMap.java b/Core/AndroidBinding/src/gueei/binding/utility/CacheHashMap.java index 6d1e295..451b4e6 100644 --- a/Core/AndroidBinding/src/gueei/binding/utility/CacheHashMap.java +++ b/Core/AndroidBinding/src/gueei/binding/utility/CacheHashMap.java @@ -5,6 +5,8 @@ import java.util.ArrayList; import java.util.HashMap; +import android.util.Log; + /** * A HashMap that will have fixed size, * once the allocated size is over, the @@ -34,6 +36,7 @@ public synchronized V put(K key, V value) { for(int i=0; i[] itemArray = items.toArray(new WeakReference[0]); - int len = itemArray.length; - Object[] eArray = new Object[len]; - for(int i=0; i copy = new ArrayList(); + for(WeakReference itemRef : items) { + E item = itemRef.get(); + if (item != null) + copy.add(item); + } + return copy.toArray(); } } @@ -125,12 +124,12 @@ public boolean add(E object) { @SuppressWarnings("unchecked") public E[] toItemArray(E[] arr) { - int size = this.size(); - E[] copy = (E[]) Array.newInstance(arr.getClass().getComponentType(), size); - WeakReference[] itemArray = items.toArray(new WeakReference[0]); - for(int i=0; i copy = new ArrayList(); + for(WeakReference itemRef : items) { + E item = itemRef.get(); + if (item != null) + copy.add(item); + } + return (E[]) copy.toArray(); } } diff --git a/Core/AndroidBinding/src/gueei/binding/viewAttributes/adapterView/ItemCountViewAttribute.java b/Core/AndroidBinding/src/gueei/binding/viewAttributes/adapterView/ItemCountViewAttribute.java index f2b53c7..927a4c8 100644 --- a/Core/AndroidBinding/src/gueei/binding/viewAttributes/adapterView/ItemCountViewAttribute.java +++ b/Core/AndroidBinding/src/gueei/binding/viewAttributes/adapterView/ItemCountViewAttribute.java @@ -56,7 +56,7 @@ public void onPropertyChanged(IObservable prop, Collection initiators) { onAdapterChanged((Adapter)adapterAttr.get()); initiators.add(this); - notifyChanged(this); + notifyChanged(initiators); } }; @@ -81,8 +81,8 @@ protected void doSetAttributeValue(Object newValue) { @Override public Integer get() { - if(getView()==null) return null; - return getView().getCount(); + if(getView()==null || getView().getAdapter()==null) return null; + return getView().getAdapter().getCount(); } } \ No newline at end of file diff --git a/Core/AndroidBinding/src/gueei/binding/viewAttributes/adapterView/SelectedObjectViewAttribute.java b/Core/AndroidBinding/src/gueei/binding/viewAttributes/adapterView/SelectedObjectViewAttribute.java index 4da3a25..eda10d4 100644 --- a/Core/AndroidBinding/src/gueei/binding/viewAttributes/adapterView/SelectedObjectViewAttribute.java +++ b/Core/AndroidBinding/src/gueei/binding/viewAttributes/adapterView/SelectedObjectViewAttribute.java @@ -19,7 +19,7 @@ public SelectedObjectViewAttribute(AdapterView view) { @Override protected void doSetAttributeValue(Object newValue) { - if(getView()==null) return; + if(getView()==null || getView().getAdapter()==null) return; Object selected = getView().getSelectedItem(); Object o=null; diff --git a/Core/AndroidBindingV30/.classpath b/Core/AndroidBindingV30/.classpath index 4fea6fe..ce19e13 100644 --- a/Core/AndroidBindingV30/.classpath +++ b/Core/AndroidBindingV30/.classpath @@ -5,5 +5,6 @@ + diff --git a/Core/AndroidBindingV30/.fatjar b/Core/AndroidBindingV30/.fatjar index c988b14..824438d 100644 --- a/Core/AndroidBindingV30/.fatjar +++ b/Core/AndroidBindingV30/.fatjar @@ -1,14 +1,14 @@ #Fat Jar Configuration File -#Mon Oct 22 14:22:24 CST 2012 +#Thu Jul 18 19:35:07 CST 2013 onejar.license.required=true manifest.classpath= manifest.removesigners=false onejar.checkbox=false -jarname=C\:\\Users\\andy\\Dropbox\\RELEASE\\android-binding-v0.6-preview.jar +jarname=C\:\\Users\\andy\\git\\AndroidBinding\\android-binding-v0.6-build718.jar manifest.mergeall=false manifest.mainclass= manifest.file= jarname.isextern=true onejar.expand= -excludes=;; +excludes=; includes= diff --git a/Core/AndroidBindingV30/.gitignore b/Core/AndroidBindingV30/.gitignore index a02fbbe..2896a1c 100644 --- a/Core/AndroidBindingV30/.gitignore +++ b/Core/AndroidBindingV30/.gitignore @@ -1,2 +1,4 @@ -/gen -/bin +gen +/**/* + +bin/**/* \ No newline at end of file diff --git a/Core/AndroidBindingV30/libs/android-support-v4.jar b/Core/AndroidBindingV30/libs/android-support-v4.jar index feaf44f..6080877 100644 Binary files a/Core/AndroidBindingV30/libs/android-support-v4.jar and b/Core/AndroidBindingV30/libs/android-support-v4.jar differ diff --git a/Core/AndroidBindingV30/src/gueei/binding/converters/PAGERADAPTER.java b/Core/AndroidBindingV30/src/gueei/binding/converters/PAGERADAPTER.java index c0073b6..be5493d 100644 --- a/Core/AndroidBindingV30/src/gueei/binding/converters/PAGERADAPTER.java +++ b/Core/AndroidBindingV30/src/gueei/binding/converters/PAGERADAPTER.java @@ -1,8 +1,12 @@ package gueei.binding.converters; +import java.util.Collection; + import gueei.binding.Binder; import gueei.binding.Binder.InflateResult; import gueei.binding.BindingLog; +import gueei.binding.CollectionChangedEventArg; +import gueei.binding.CollectionObserver; import gueei.binding.Converter; import gueei.binding.DynamicObject; import gueei.binding.IObservable; @@ -42,7 +46,7 @@ public PagerAdapterObservable calculateValue(Object... args) throws Exception { return new ObsPagerAdapter((DynamicObject)args[0]); } - private class ObsPagerAdapter extends PagerAdapterObservable{ + private class ObsPagerAdapter extends PagerAdapterObservable implements CollectionObserver{ @Override public CharSequence getPageTitle(int position) { if (dobj.observableExists("titleField")){ @@ -68,6 +72,7 @@ public ObsPagerAdapter(DynamicObject obj){ dobj = obj; try { col = (IObservableCollection)obj.getObservableByName("source").get(); + col.subscribe(this); } catch (Exception e) { BindingLog.exception("PAGERADAPTER.ObsPagerAdapter.Constructor", e); throw new RuntimeException(); @@ -105,5 +110,21 @@ public int getCount() { public boolean isViewFromObject(View arg0, Object arg1) { return arg0.equals(arg1); } + + @Override + public void onCollectionChanged(IObservableCollection collection, + CollectionChangedEventArg args, Collection initiators) { + this.notifyDataSetChanged(); + } + + @Override + public int getItemPosition(Object object) { + + // TODO: This is quite inefficient, need to improve this + for(int i=0; i + android:label="@string/app_name" + android:theme="@style/Theme.Sherlock"> diff --git a/Demo/MarkupDemoICS/bin/AndroidManifest.xml b/Demo/MarkupDemoICS/bin/AndroidManifest.xml index 35d72d9..7172310 100644 --- a/Demo/MarkupDemoICS/bin/AndroidManifest.xml +++ b/Demo/MarkupDemoICS/bin/AndroidManifest.xml @@ -17,7 +17,8 @@ android:uiOptions="splitActionBarWhenNarrow" > + android:label="@string/app_name" + android:theme="@style/Theme.Sherlock"> diff --git a/Demo/MarkupDemoICS/bin/MarkupDemoICS.apk b/Demo/MarkupDemoICS/bin/MarkupDemoICS.apk deleted file mode 100644 index 6555e0d..0000000 Binary files a/Demo/MarkupDemoICS/bin/MarkupDemoICS.apk and /dev/null differ diff --git a/Demo/MarkupDemoICS/bin/classes.dex b/Demo/MarkupDemoICS/bin/classes.dex deleted file mode 100644 index abb9746..0000000 Binary files a/Demo/MarkupDemoICS/bin/classes.dex and /dev/null differ diff --git a/Demo/MarkupDemoICS/bin/jarlist.cache b/Demo/MarkupDemoICS/bin/jarlist.cache deleted file mode 100644 index e6d8e41..0000000 --- a/Demo/MarkupDemoICS/bin/jarlist.cache +++ /dev/null @@ -1,5 +0,0 @@ -# cache for current jar dependecy. DO NOT EDIT. -# format is -# Encoding is UTF-8 -1351670494938 349252 612846c9857077a039b533718f72db3bc041d389 C:\Users\andy\git\AndroidBindingMaster\Demo\MarkupDemoICS\libs\android-support-v4.jar -1353391239764 349252 612846c9857077a039b533718f72db3bc041d389 C:\Users\andy\git\AndroidBindingMaster\Core\AndroidBindingV30\libs\android-support-v4.jar diff --git a/Demo/MarkupDemoICS/bin/res/drawable/ic_launcher.png b/Demo/MarkupDemoICS/bin/res/drawable/ic_launcher.png deleted file mode 100644 index eceac05..0000000 Binary files a/Demo/MarkupDemoICS/bin/res/drawable/ic_launcher.png and /dev/null differ diff --git a/Demo/MarkupDemoICS/bin/resources.ap_ b/Demo/MarkupDemoICS/bin/resources.ap_ deleted file mode 100644 index 4f168ba..0000000 Binary files a/Demo/MarkupDemoICS/bin/resources.ap_ and /dev/null differ diff --git a/Demo/MarkupDemoICS/libs/android-support-v4.jar b/Demo/MarkupDemoICS/libs/android-support-v4.jar index feaf44f..6080877 100644 Binary files a/Demo/MarkupDemoICS/libs/android-support-v4.jar and b/Demo/MarkupDemoICS/libs/android-support-v4.jar differ diff --git a/Demo/MarkupDemoICS/project.properties b/Demo/MarkupDemoICS/project.properties index 3059e47..f2117e2 100644 --- a/Demo/MarkupDemoICS/project.properties +++ b/Demo/MarkupDemoICS/project.properties @@ -9,5 +9,7 @@ # Project target. target=android-14 -android.library.reference.1=../../Core/AndroidBinding -android.library.reference.2=../../Core/AndroidBindingV30 +android.library.reference.1=..\\..\\Core\\AndroidBinding +android.library.reference.2=..\\..\\Core\\AndroidBindingV30 +android.library.reference.3=../../../ActionBarSherlock/library +android.library.reference.4=../../plugin/AndroidBinding.Plugin.ABS diff --git a/Demo/MarkupDemoICS/res/layout/singlechoicelist.xml b/Demo/MarkupDemoICS/res/layout/singlechoicelist.xml index a1eba5a..488d87f 100644 --- a/Demo/MarkupDemoICS/res/layout/singlechoicelist.xml +++ b/Demo/MarkupDemoICS/res/layout/singlechoicelist.xml @@ -15,13 +15,15 @@ style="?android:attr/progressBarStyleHorizontal" android:layout_height="wrap_content" android:layout_width="fill_parent" - binding:progress="SeekPosition" + binding:max="=id/genrelist.itemCount" + binding:progress="CheckedPosition" /> + binding:text="CONCAT('Selection: ', CheckedPosition, ' / ', =id/genrelist.itemCount)"/> + + diff --git a/Demo/MarkupDemoICS/src/com/gueei/demos/markupDemo/viewModels/SingleChoiceList.java b/Demo/MarkupDemoICS/src/com/gueei/demos/markupDemo/viewModels/SingleChoiceList.java index 5011093..9c1adf2 100644 --- a/Demo/MarkupDemoICS/src/com/gueei/demos/markupDemo/viewModels/SingleChoiceList.java +++ b/Demo/MarkupDemoICS/src/com/gueei/demos/markupDemo/viewModels/SingleChoiceList.java @@ -5,7 +5,7 @@ import gueei.binding.observables.IntegerObservable; public class SingleChoiceList { - public final IntegerObservable CheckedPosition = new IntegerObservable(4); + public final IntegerObservable CheckedPosition = new IntegerObservable(); public final ArrayListObservable GenreList = new ArrayListObservable(String.class); @@ -17,6 +17,7 @@ public class SingleChoiceList { public SingleChoiceList(){ GenreList.setArray(GENRES); + CheckedPosition.set(4); } public final TwoWayDependentObservable SeekPosition = diff --git a/Demo/MarkupDemoICS/src/gueei/binding/markupDemoICS/Launch.java b/Demo/MarkupDemoICS/src/gueei/binding/markupDemoICS/Launch.java index 2e9db51..680882a 100644 --- a/Demo/MarkupDemoICS/src/gueei/binding/markupDemoICS/Launch.java +++ b/Demo/MarkupDemoICS/src/gueei/binding/markupDemoICS/Launch.java @@ -1,10 +1,11 @@ package gueei.binding.markupDemoICS; import gueei.binding.markupDemoICS.viewModels.LaunchViewModel; +import gueei.binding.plugin.abs.BindingABSActivity; import gueei.binding.v30.app.BindingActivityV30; import android.os.Bundle; -public class Launch extends BindingActivityV30 { +public class Launch extends BindingABSActivity { @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); diff --git a/Demo/PagerPlayground/.classpath b/Demo/PagerPlayground/.classpath new file mode 100644 index 0000000..26bdfa6 --- /dev/null +++ b/Demo/PagerPlayground/.classpath @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/Demo/PagerPlayground/.gitignore b/Demo/PagerPlayground/.gitignore new file mode 100644 index 0000000..a02fbbe --- /dev/null +++ b/Demo/PagerPlayground/.gitignore @@ -0,0 +1,2 @@ +/gen +/bin diff --git a/Demo/PagerPlayground/.project b/Demo/PagerPlayground/.project new file mode 100644 index 0000000..34cf547 --- /dev/null +++ b/Demo/PagerPlayground/.project @@ -0,0 +1,33 @@ + + + PagerPlayground + + + + + + com.android.ide.eclipse.adt.ResourceManagerBuilder + + + + + com.android.ide.eclipse.adt.PreCompilerBuilder + + + + + org.eclipse.jdt.core.javabuilder + + + + + com.android.ide.eclipse.adt.ApkBuilder + + + + + + com.android.ide.eclipse.adt.AndroidNature + org.eclipse.jdt.core.javanature + + diff --git a/Demo/PagerPlayground/AndroidManifest.xml b/Demo/PagerPlayground/AndroidManifest.xml new file mode 100644 index 0000000..4e094d1 --- /dev/null +++ b/Demo/PagerPlayground/AndroidManifest.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/Demo/PagerPlayground/android-binding.ant.jar b/Demo/PagerPlayground/android-binding.ant.jar new file mode 100644 index 0000000..1ff0440 Binary files /dev/null and b/Demo/PagerPlayground/android-binding.ant.jar differ diff --git a/Demo/PagerPlayground/android-binding.gen.zip b/Demo/PagerPlayground/android-binding.gen.zip new file mode 100644 index 0000000..7cba94a Binary files /dev/null and b/Demo/PagerPlayground/android-binding.gen.zip differ diff --git a/Demo/PagerPlayground/libs/android-support-v4.jar b/Demo/PagerPlayground/libs/android-support-v4.jar new file mode 100644 index 0000000..428bdbc Binary files /dev/null and b/Demo/PagerPlayground/libs/android-support-v4.jar differ diff --git a/Demo/PagerPlayground/proguard-project.txt b/Demo/PagerPlayground/proguard-project.txt new file mode 100644 index 0000000..f2fe155 --- /dev/null +++ b/Demo/PagerPlayground/proguard-project.txt @@ -0,0 +1,20 @@ +# To enable ProGuard in your project, edit project.properties +# to define the proguard.config property as described in that file. +# +# Add project specific ProGuard rules here. +# By default, the flags in this file are appended to flags specified +# in ${sdk.dir}/tools/proguard/proguard-android.txt +# You can edit the include path and order by changing the ProGuard +# include property in project.properties. +# +# For more details, see +# http://developer.android.com/guide/developing/tools/proguard.html + +# Add any project specific keep options here: + +# If your project uses WebView with JS, uncomment the following +# and specify the fully qualified class name to the JavaScript interface +# class: +#-keepclassmembers class fqcn.of.javascript.interface.for.webview { +# public *; +#} diff --git a/Demo/PagerPlayground/project.properties b/Demo/PagerPlayground/project.properties new file mode 100644 index 0000000..46473b4 --- /dev/null +++ b/Demo/PagerPlayground/project.properties @@ -0,0 +1,16 @@ +# This file is automatically generated by Android Tools. +# Do not modify this file -- YOUR CHANGES WILL BE ERASED! +# +# This file must be checked in Version Control Systems. +# +# To customize properties used by the Ant build system edit +# "ant.properties", and override values to adapt the script to your +# project structure. +# +# To enable ProGuard to shrink and obfuscate your code, uncomment this (available properties: sdk.dir, user.home): +#proguard.config=${sdk.dir}/tools/proguard/proguard-android.txt:proguard-project.txt + +# Project target. +target=android-14 +android.library.reference.1=../../Core/AndroidBinding +android.library.reference.2=../../Core/AndroidBindingV30 diff --git a/Demo/PagerPlayground/res/drawable-hdpi/ic_launcher.png b/Demo/PagerPlayground/res/drawable-hdpi/ic_launcher.png new file mode 100644 index 0000000..96a442e Binary files /dev/null and b/Demo/PagerPlayground/res/drawable-hdpi/ic_launcher.png differ diff --git a/Demo/PagerPlayground/res/drawable-mdpi/ic_launcher.png b/Demo/PagerPlayground/res/drawable-mdpi/ic_launcher.png new file mode 100644 index 0000000..359047d Binary files /dev/null and b/Demo/PagerPlayground/res/drawable-mdpi/ic_launcher.png differ diff --git a/Demo/PagerPlayground/res/drawable-xhdpi/ic_launcher.png b/Demo/PagerPlayground/res/drawable-xhdpi/ic_launcher.png new file mode 100644 index 0000000..71c6d76 Binary files /dev/null and b/Demo/PagerPlayground/res/drawable-xhdpi/ic_launcher.png differ diff --git a/Demo/PagerPlayground/res/layout/mainactivity_layout.xml b/Demo/PagerPlayground/res/layout/mainactivity_layout.xml new file mode 100644 index 0000000..3c6a165 --- /dev/null +++ b/Demo/PagerPlayground/res/layout/mainactivity_layout.xml @@ -0,0 +1,25 @@ + + + + + + \ No newline at end of file diff --git a/Demo/PagerPlayground/res/layout/pager.xml b/Demo/PagerPlayground/res/layout/pager.xml new file mode 100644 index 0000000..4a1dd6b --- /dev/null +++ b/Demo/PagerPlayground/res/layout/pager.xml @@ -0,0 +1,34 @@ + + + +