FrameLayoutBindingObject.java revision 71eb6908f2689bd17000237eb645896c36da0138
171eb6908f2689bd17000237eb645896c36da0138George Mount/*
271eb6908f2689bd17000237eb645896c36da0138George Mount * Copyright (C) 2015 The Android Open Source Project
371eb6908f2689bd17000237eb645896c36da0138George Mount *
471eb6908f2689bd17000237eb645896c36da0138George Mount * Licensed under the Apache License, Version 2.0 (the "License");
571eb6908f2689bd17000237eb645896c36da0138George Mount * you may not use this file except in compliance with the License.
671eb6908f2689bd17000237eb645896c36da0138George Mount * You may obtain a copy of the License at
771eb6908f2689bd17000237eb645896c36da0138George Mount *
871eb6908f2689bd17000237eb645896c36da0138George Mount *      http://www.apache.org/licenses/LICENSE-2.0
971eb6908f2689bd17000237eb645896c36da0138George Mount *
1071eb6908f2689bd17000237eb645896c36da0138George Mount * Unless required by applicable law or agreed to in writing, software
1171eb6908f2689bd17000237eb645896c36da0138George Mount * distributed under the License is distributed on an "AS IS" BASIS,
1271eb6908f2689bd17000237eb645896c36da0138George Mount * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1371eb6908f2689bd17000237eb645896c36da0138George Mount * See the License for the specific language governing permissions and
1471eb6908f2689bd17000237eb645896c36da0138George Mount * limitations under the License.
1571eb6908f2689bd17000237eb645896c36da0138George Mount */
1671eb6908f2689bd17000237eb645896c36da0138George Mountpackage com.android.databinding.testapp.vo;
1771eb6908f2689bd17000237eb645896c36da0138George Mount
1871eb6908f2689bd17000237eb645896c36da0138George Mountimport com.android.databinding.library.BaseObservable;
1971eb6908f2689bd17000237eb645896c36da0138George Mount
2071eb6908f2689bd17000237eb645896c36da0138George Mountimport android.binding.Bindable;
2171eb6908f2689bd17000237eb645896c36da0138George Mount
2271eb6908f2689bd17000237eb645896c36da0138George Mountpublic class FrameLayoutBindingObject extends BindingAdapterBindingObject {
2371eb6908f2689bd17000237eb645896c36da0138George Mount    @Bindable
2471eb6908f2689bd17000237eb645896c36da0138George Mount    private int foregroundTint;
2571eb6908f2689bd17000237eb645896c36da0138George Mount
2671eb6908f2689bd17000237eb645896c36da0138George Mount    public int getForegroundTint() {
2771eb6908f2689bd17000237eb645896c36da0138George Mount        return foregroundTint;
2871eb6908f2689bd17000237eb645896c36da0138George Mount    }
2971eb6908f2689bd17000237eb645896c36da0138George Mount
3071eb6908f2689bd17000237eb645896c36da0138George Mount    public void changeValues() {
3171eb6908f2689bd17000237eb645896c36da0138George Mount        foregroundTint = 0xFF111111;
3271eb6908f2689bd17000237eb645896c36da0138George Mount        notifyChange();
3371eb6908f2689bd17000237eb645896c36da0138George Mount    }
3471eb6908f2689bd17000237eb645896c36da0138George Mount}
35