|
|
|
@ -1,33 +1 @@
|
|
|
|
|
/*
|
|
|
|
|
* Copyright (c) 2010-2011, The MiCode Open Source Community (www.micode.net)
|
|
|
|
|
*
|
|
|
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
|
* you may not use this file except in compliance with the License.
|
|
|
|
|
* You may obtain a copy of the License at
|
|
|
|
|
*
|
|
|
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
|
*
|
|
|
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
|
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
|
* See the License for the specific language governing permissions and
|
|
|
|
|
* limitations under the License.
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
package net.micode.notes.gtask.exception;
|
|
|
|
|
|
|
|
|
|
public class NetworkFailureException extends Exception {
|
|
|
|
|
private static final long serialVersionUID = 2107610287180234136L;
|
|
|
|
|
|
|
|
|
|
public NetworkFailureException() {
|
|
|
|
|
super();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public NetworkFailureException(String paramString) {
|
|
|
|
|
super(paramString);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public NetworkFailureException(String paramString, Throwable paramThrowable) {
|
|
|
|
|
super(paramString, paramThrowable);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
<?xml version="1.0" encoding="utf-8"?> <!-- * 版权声明: 2010-2011, The MiCode Open Source Community (www.micode.net) * 许可协议: 遵循Apache License, Version 2.0 * 授权说明: 未经许可不得使用,可从http://www.apache.org/licenses/LICENSE-2.0获取许可证副本 * 免责声明: 按"原样"分发,不附带任何明示或暗示的保证或条件 --> <!-- 账户添加偏好设置界面布局 --> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" <!-- 宽度填充父容器 --> android:layout_height="wrap_content" <!-- 高度自适应内容 --> android:minHeight="50dip" <!-- 最小高度50dp,确保视觉一致性 --> android:gravity="center_vertical" <!-- 垂直居中对齐子元素 --> android:orientation="vertical"> <!-- 垂直布局 --> <!-- 账户添加按钮文本 --> <TextView android:layout_width="wrap_content" <!-- 宽度自适应文本内容 --> android:layout_height="wrap_content" <!-- 高度自适应文本内容 --> android:layout_gravity="center" <!-- 水平居中对齐 --> android:textAppearance="?android:attr/textAppearanceMedium" <!-- 使用系统中等文本样式 --> android:text="@string/preferences_add_account" /> <!-- 文本内容引用字符串资源: "添加账户" --> </LinearLayout>
|