當前位置: 首頁>>代碼示例>>Java>>正文


Java InflateException.initCause方法代碼示例

本文整理匯總了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;
  }
}
 
開發者ID:ChiangC,項目名稱:FMTech,代碼行數:17,代碼來源:SupportMenuInflater.java

示例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;
    }
}
 
開發者ID:treasure-lau,項目名稱:CSipSimple,代碼行數:14,代碼來源:MenuInflater.java

示例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;
    }
}
 
開發者ID:JackChan1999,項目名稱:boohee_v5.6,代碼行數:12,代碼來源:SupportMenuInflater.java

示例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;
    }
}
 
開發者ID:Qwaz,項目名稱:solved-hacking-problem,代碼行數:12,代碼來源:C0254j.java

示例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;
    }
}
 
開發者ID:GigigoGreenLabs,項目名稱:permissionsModule,代碼行數:14,代碼來源:SupportMenuInflater.java

示例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;
    }
}
 
開發者ID:tamzi,項目名稱:sophia,代碼行數:14,代碼來源:MenuInflater.java


注:本文中的android.view.InflateException.initCause方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。