摘要: 方法一: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 阅读全文
posted @ 2013-09-16 23:54 listen342325 阅读(528) 评论(0) 推荐(1) 编辑
摘要: 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 阅读全文
posted @ 2013-08-30 22:51 listen342325 阅读(2182) 评论(3) 推荐(1) 编辑
摘要: 解决方法:找到 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。 阅读全文
posted @ 2013-06-27 14:08 listen342325 阅读(732) 评论(0) 推荐(0) 编辑