1612997fe2e41366573855f56898b27d4c8787244George Mount/* 2612997fe2e41366573855f56898b27d4c8787244George Mount * Copyright (C) 2015 The Android Open Source Project 3612997fe2e41366573855f56898b27d4c8787244George Mount * 4612997fe2e41366573855f56898b27d4c8787244George Mount * Licensed under the Apache License, Version 2.0 (the "License"); 5612997fe2e41366573855f56898b27d4c8787244George Mount * you may not use this file except in compliance with the License. 6612997fe2e41366573855f56898b27d4c8787244George Mount * You may obtain a copy of the License at 7612997fe2e41366573855f56898b27d4c8787244George Mount * 8612997fe2e41366573855f56898b27d4c8787244George Mount * http://www.apache.org/licenses/LICENSE-2.0 9612997fe2e41366573855f56898b27d4c8787244George Mount * 10a6e4583962e19e8e93b4ca3f9fe3d34560b6d96cYigit Boyar * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, 11612997fe2e41366573855f56898b27d4c8787244George Mount * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12612997fe2e41366573855f56898b27d4c8787244George Mount * See the License for the specific language governing permissions and 13612997fe2e41366573855f56898b27d4c8787244George Mount * limitations under the License. 14612997fe2e41366573855f56898b27d4c8787244George Mount */ 15612997fe2e41366573855f56898b27d4c8787244George Mount 16fead9ca09b117136b35bc5bf137340a754f9edddGeorge Mountpackage android.databinding.test.independentlibrary; 173561e3e665698843b1c664385a842e779198960bGeorge Mount 18fead9ca09b117136b35bc5bf137340a754f9edddGeorge Mountimport android.databinding.BindingAdapter; 19a6e4583962e19e8e93b4ca3f9fe3d34560b6d96cYigit Boyarimport android.view.View; 20612997fe2e41366573855f56898b27d4c8787244George Mount 21a6e4583962e19e8e93b4ca3f9fe3d34560b6d96cYigit Boyarpublic class LibraryAdapter { 22a6e4583962e19e8e93b4ca3f9fe3d34560b6d96cYigit Boyar @BindingAdapter("myTagAttr") 23a6e4583962e19e8e93b4ca3f9fe3d34560b6d96cYigit Boyar public static void set(View view, String someTag) { 24a6e4583962e19e8e93b4ca3f9fe3d34560b6d96cYigit Boyar view.setTag(someTag); 25a6e4583962e19e8e93b4ca3f9fe3d34560b6d96cYigit Boyar } 26612997fe2e41366573855f56898b27d4c8787244George Mount} 27