@@ -0,0 +1,1202 @@
+package com.adsdk.sdk.nativeads;%0A%0Aimport java.util.HashMap;%0Aimport java.util.Map;%0Aimport java.util.Set;%0A%0Apublic class NativeViewBinder %7B%0A%09private Map%3CString, Integer%3E textAssetsBidings;%0A%09private Map%3CString, Integer%3E imageAssetsBidings;%0A%09private int adLayoutId;%0A%09%0A%09public NativeViewBinder(int layoutId) %7B%0A%09%09adLayoutId = layoutId;%0A%09%09textAssetsBidings = new HashMap%3CString, Integer%3E();%0A%09%09imageAssetsBidings = new HashMap%3CString, Integer%3E();%0A%09%7D%0A%09%0A%09public void bindTextAsset(String tag, int id) %7B%0A%09%09textAssetsBidings.put(tag, id);%0A%09%7D%0A%09%0A%09public void bindImageAsset(String tag, int id) %7B%0A%09%09imageAssetsBidings.put(tag, id);%0A%09%7D%0A%09%0A%09public int getAdLayoutId() %7B%0A%09%09return adLayoutId;%0A%09%7D%0A%09%0A%09public int getIdForTextAsset(String tag) %7B%0A%09%09Integer result = textAssetsBidings.get(tag);%0A%09%09if (result != null) %7B%0A%09%09%09return result;%0A%09%09%7D else %7B%0A%09%09%09return 0;%0A%09%09%7D%0A%09%7D%0A%09%0A%09public int getIdForImageAsset(String tag) %7B%0A%09%09Integer result = imageAssetsBidings.get(tag);%0A%09%09if (result != null) %7B%0A%09%09%09return result;%0A%09%09%7D else %7B%0A%09%09%09return 0;%0A%09%09%7D%0A%09%7D%0A%09%0A%09public Set%3CString%3E getTextAssetsBindingsKeySet() %7B%0A%09%09return textAssetsBidings.keySet();%0A%09%7D%0A%09%0A%09public Set%3CString%3E getImageAssetsBindingsKeySet() %7B%0A%09%09return imageAssetsBidings.keySet();%0A%09%7D%0A%0A%7D%0A

Introduce native ad view binder.