当前位置: 首页>>代码示例>>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;未经允许,请勿转载。