本文整理汇总了Java中android.view.InflateException.initCause方法的典型用法代码示例。如果您正苦于以下问题:Java InflateException.initCause方法的具体用法?Java InflateException.initCause怎么用?Java InflateException.initCause使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类android.view.InflateException
的用法示例。
在下文中一共展示了InflateException.initCause方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: InflatedOnMenuItemClickListener
import android.view.InflateException; //导入方法依赖的package包/类
public InflatedOnMenuItemClickListener(Object paramObject, String paramString)
{
this.mRealOwner = paramObject;
Class localClass = paramObject.getClass();
try
{
this.mMethod = localClass.getMethod(paramString, PARAM_TYPES);
return;
}
catch (Exception localException)
{
InflateException localInflateException = new InflateException("Couldn't resolve menu item onClick handler " + paramString + " in class " + localClass.getName());
localInflateException.initCause(localException);
throw localInflateException;
}
}
示例2: InflatedOnMenuItemClickListener
import android.view.InflateException; //导入方法依赖的package包/类
public InflatedOnMenuItemClickListener(Object realOwner, String methodName) {
mRealOwner = realOwner;
Class<?> c = realOwner.getClass();
try {
mMethod = c.getMethod(methodName, PARAM_TYPES);
} catch (Exception e) {
InflateException ex = new InflateException(
"Couldn't resolve menu item onClick handler " + methodName +
" in class " + c.getName());
ex.initCause(e);
throw ex;
}
}
示例3: InflatedOnMenuItemClickListener
import android.view.InflateException; //导入方法依赖的package包/类
public InflatedOnMenuItemClickListener(Object realOwner, String methodName) {
this.mRealOwner = realOwner;
Class<?> c = realOwner.getClass();
try {
this.mMethod = c.getMethod(methodName, PARAM_TYPES);
} catch (Exception e) {
InflateException ex = new InflateException("Couldn't resolve menu item onClick handler " + methodName + " in class " + c.getName());
ex.initCause(e);
throw ex;
}
}
示例4: C0254j
import android.view.InflateException; //导入方法依赖的package包/类
public C0254j(Object obj, String str) {
this.f871b = obj;
Class cls = obj.getClass();
try {
this.f872c = cls.getMethod(str, f870a);
} catch (Throwable e) {
InflateException inflateException = new InflateException("Couldn't resolve menu item onClick handler " + str + " in class " + cls.getName());
inflateException.initCause(e);
throw inflateException;
}
}
示例5: InflatedOnMenuItemClickListener
import android.view.InflateException; //导入方法依赖的package包/类
public InflatedOnMenuItemClickListener(Object realOwner, String methodName) {
mRealOwner = realOwner;
Class<?> c = realOwner.getClass();
try {
mMethod = c.getMethod(methodName, PARAM_TYPES);
} catch (Exception e) {
InflateException ex = new InflateException(
"Couldn't resolve menu item onClick handler " + methodName +
" in class " + c.getName());
ex.initCause(e);
throw ex;
}
}
示例6: InflatedOnMenuItemClickListener
import android.view.InflateException; //导入方法依赖的package包/类
public InflatedOnMenuItemClickListener(Context context, String methodName) {
mContext = context;
Class<?> c = context.getClass();
try {
mMethod = c.getMethod(methodName, PARAM_TYPES);
} catch (Exception e) {
InflateException ex = new InflateException(
"Couldn't resolve menu item onClick handler " + methodName +
" in class " + c.getName());
ex.initCause(e);
throw ex;
}
}