mirror of
https://gitee.com/houstudio/Cdroid.git
synced 2024-12-04 21:27:41 +08:00
fix ViewConfiguration's props loading
This commit is contained in:
parent
97353a3687
commit
0fad6ff838
@ -37,7 +37,7 @@ ViewConfiguration::ViewConfiguration(Context* context):ViewConfiguration(){
|
||||
AttributeSet atts(context,"");
|
||||
WindowManager::getInstance().getDefaultDisplay().getMetrics(metrics);
|
||||
const float sizeAndDensity = metrics.density;
|
||||
atts = context->obtainStyledAttributes("@style/view_Configuration");
|
||||
atts = context->obtainStyledAttributes(context->getPackageName()+":style/view_Configuration");
|
||||
if(atts.size()==0)
|
||||
atts = context->obtainStyledAttributes("cdroid:style/view_Configuration");
|
||||
mEdgeSlop = (int) (sizeAndDensity * EDGE_SLOP + 0.5f);
|
||||
|
Loading…
Reference in New Issue
Block a user