摘要:
方法一:Resources resources = getResources();float fPx = TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP, 300, resources.getDisplayMetrics());//int iPx = Math.round(fPx);// 同理 px转dip:float fDip = TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_PX, 300, resources.getDisplayMetrics());// int iDip 阅读全文
摘要:
package com.szugyi.circlemenu.view;/* * Copyright 2013 Csaba Szugyiczki * * 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/LICENS 阅读全文
摘要:
解决方法:找到 android-ndk-r8c/build/core/add-application.mk文件打开第128行把__ndk_warning改为__ndk_info;this problem may be safely fixed by changing this line in add-application.mk from __ndk_warning to __ndk_info。 阅读全文