本文整理匯總了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;
}
}