Android 小笔记

 <!--     xml                -->

    

  android:visibility="gone"  可以隐藏 元素

  xmlns:bootstrapbutton="http://schemas.android.com/apk/res-auto" 类似命名空间  可以使用自定义控件

  

<RelativeLayout>下    android:layout_alignParentLeft="true"  可以左对齐 

 android:scaleType  设置图片显示样式  如,超出后不撑大  ,超出显示居中的内容

android:scaleType="centerInside"

// Dialog 屏蔽按钮 点击关闭

try {

java.lang.reflect.Field field=arg0.getClass().getSuperclass().getDeclaredField("mShowing");

field.setAccessible(true);

field.set(arg0,false); 

}

catch (Exception e) {

e.printStackTrace();

}

原文地址:https://www.cnblogs.com/spyrx7/p/4207958.html