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 * 10612997fe2e41366573855f56898b27d4c8787244George Mount * Unless required by applicable law or agreed to in writing, software 11612997fe2e41366573855f56898b27d4c8787244George Mount * distributed under the License is distributed on an "AS IS" BASIS, 12612997fe2e41366573855f56898b27d4c8787244George Mount * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13612997fe2e41366573855f56898b27d4c8787244George Mount * See the License for the specific language governing permissions and 14612997fe2e41366573855f56898b27d4c8787244George Mount * limitations under the License. 15612997fe2e41366573855f56898b27d4c8787244George Mount */ 16612997fe2e41366573855f56898b27d4c8787244George Mount 17fead9ca09b117136b35bc5bf137340a754f9edddGeorge Mountpackage android.databinding.testlibrary; 183561e3e665698843b1c664385a842e779198960bGeorge Mount 1999a3d3102887d5b4c9c6713cb35d97b478088931Yigit Boyarimport android.databinding.Bindable; 2029eed96672ca43d68d12605ad6f91814d4c53988George Mountimport android.databinding.BaseObservable; 21612997fe2e41366573855f56898b27d4c8787244George Mount 2229eed96672ca43d68d12605ad6f91814d4c53988George Mountpublic class TestLibObject extends BaseObservable { 23a6e4583962e19e8e93b4ca3f9fe3d34560b6d96cYigit Boyar @Bindable 24a6e4583962e19e8e93b4ca3f9fe3d34560b6d96cYigit Boyar private String mField; 25a6e4583962e19e8e93b4ca3f9fe3d34560b6d96cYigit Boyar 26a6e4583962e19e8e93b4ca3f9fe3d34560b6d96cYigit Boyar public String getField() { 27a6e4583962e19e8e93b4ca3f9fe3d34560b6d96cYigit Boyar return mField; 28a6e4583962e19e8e93b4ca3f9fe3d34560b6d96cYigit Boyar } 29a6e4583962e19e8e93b4ca3f9fe3d34560b6d96cYigit Boyar 30a6e4583962e19e8e93b4ca3f9fe3d34560b6d96cYigit Boyar public void setField(String field) { 31a6e4583962e19e8e93b4ca3f9fe3d34560b6d96cYigit Boyar this.mField = field; 3229eed96672ca43d68d12605ad6f91814d4c53988George Mount notifyPropertyChanged(BR.field); 33a6e4583962e19e8e93b4ca3f9fe3d34560b6d96cYigit Boyar } 34612997fe2e41366573855f56898b27d4c8787244George Mount} 35