Theme values that would reference other theme values would not work if they were declared in a shared library. We now introduce a parallel resource type to TYPE_DYNAMIC_REFERENCE, TYPE_DYNAMIC_ATTRIBUTE, which allows us to lookup and resolve theme value references from shared libraries. Bug:28687378 Change-Id: I4f2364e3e8b567679f90784fcaaea12b6b05e926
40 lines
960 B
C++
40 lines
960 B
C++
/*
|
|
* Copyright (C) 2014 The Android Open Source Project
|
|
*
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
* you may not use this file except in compliance with the License.
|
|
* You may obtain a copy of the License at
|
|
*
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
*
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
* See the License for the specific language governing permissions and
|
|
* limitations under the License.
|
|
*/
|
|
|
|
#ifndef __LIB_R_H
|
|
#define __LIB_R_H
|
|
|
|
namespace lib {
|
|
namespace R {
|
|
|
|
namespace attr {
|
|
enum {
|
|
attr1 = 0x02010000, // default
|
|
attr2 = 0x02010001, // default
|
|
};
|
|
}
|
|
|
|
namespace style {
|
|
enum {
|
|
Theme = 0x02020000, // default
|
|
};
|
|
}
|
|
|
|
} // namespace R
|
|
} // namespace lib
|
|
|
|
#endif // __LIB_R_H
|