/*
* Copyright 2016 Hippo Seven
*
* 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 com.hippo.ehviewer.ui.scene;
import android.annotation.SuppressLint;
import android.app.Activity;
import android.app.Dialog;
import android.app.DownloadManager;
import android.content.Context;
import android.content.DialogInterface;
import android.content.Intent;
import android.content.res.Resources;
import android.graphics.drawable.Drawable;
import android.net.Uri;
import android.os.Bundle;
import android.os.Environment;
import android.text.TextUtils;
import android.util.Pair;
import android.view.Gravity;
import android.view.LayoutInflater;
import android.view.MenuItem;
import android.view.MotionEvent;
import android.view.View;
import android.view.ViewGroup;
import android.view.ViewParent;
import android.widget.AdapterView;
import android.widget.ArrayAdapter;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.ListView;
import android.widget.RatingBar;
import android.widget.TextView;
import androidx.annotation.IntDef;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.appcompat.app.AlertDialog;
import androidx.appcompat.widget.PopupMenu;
import androidx.core.view.ViewCompat;
import androidx.fragment.app.Fragment;
import androidx.fragment.app.FragmentTransaction;
import androidx.transition.TransitionInflater;
import com.hippo.android.resource.AttrResources;
import com.hippo.beerbelly.BeerBelly;
import com.hippo.drawable.RoundSideRectDrawable;
import com.hippo.drawerlayout.DrawerLayout;
import com.hippo.ehviewer.AppConfig;
import com.hippo.ehviewer.EhApplication;
import com.hippo.ehviewer.EhDB;
import com.hippo.ehviewer.R;
import com.hippo.ehviewer.Settings;
import com.hippo.ehviewer.UrlOpener;
import com.hippo.ehviewer.client.EhCacheKeyFactory;
import com.hippo.ehviewer.client.EhClient;
import com.hippo.ehviewer.client.EhFilter;
import com.hippo.ehviewer.client.EhRequest;
import com.hippo.ehviewer.client.EhTagDatabase;
import com.hippo.ehviewer.client.EhUrl;
import com.hippo.ehviewer.client.EhUtils;
import com.hippo.ehviewer.client.data.GalleryComment;
import com.hippo.ehviewer.client.data.GalleryCommentList;
import com.hippo.ehviewer.client.data.GalleryDetail;
import com.hippo.ehviewer.client.data.GalleryInfo;
import com.hippo.ehviewer.client.data.GalleryTagGroup;
import com.hippo.ehviewer.client.data.ListUrlBuilder;
import com.hippo.ehviewer.client.data.PreviewSet;
import com.hippo.ehviewer.client.exception.NoHAtHClientException;
import com.hippo.ehviewer.client.parser.RateGalleryParser;
import com.hippo.ehviewer.dao.DownloadInfo;
import com.hippo.ehviewer.dao.Filter;
import com.hippo.ehviewer.ui.CommonOperations;
import com.hippo.ehviewer.ui.GalleryActivity;
import com.hippo.ehviewer.ui.MainActivity;
import com.hippo.ehviewer.ui.annotation.WholeLifeCircle;
import com.hippo.ehviewer.widget.GalleryRatingBar;
import com.hippo.reveal.ViewAnimationUtils;
import com.hippo.ripple.Ripple;
import com.hippo.scene.Announcer;
import com.hippo.scene.SceneFragment;
import com.hippo.scene.TransitionHelper;
import com.hippo.text.Html;
import com.hippo.text.URLImageGetter;
import com.hippo.util.AppHelper;
import com.hippo.util.DrawableManager;
import com.hippo.util.ExceptionUtils;
import com.hippo.util.ReadableTime;
import com.hippo.view.ViewTransition;
import com.hippo.widget.AutoWrapLayout;
import com.hippo.widget.LoadImageView;
import com.hippo.widget.ObservedTextView;
import com.hippo.widget.ProgressView;
import com.hippo.widget.SimpleGridAutoSpanLayout;
import com.hippo.yorozuya.AssertUtils;
import com.hippo.yorozuya.FileUtils;
import com.hippo.yorozuya.IOUtils;
import com.hippo.yorozuya.IntIdGenerator;
import com.hippo.yorozuya.SimpleHandler;
import com.hippo.yorozuya.ViewUtils;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.OutputStream;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.util.List;
import okhttp3.HttpUrl;
public class GalleryDetailScene extends BaseScene implements View.OnClickListener,
com.hippo.ehviewer.download.DownloadManager.DownloadInfoListener,
View.OnLongClickListener{
@IntDef({STATE_INIT, STATE_NORMAL, STATE_REFRESH, STATE_REFRESH_HEADER, STATE_FAILED})
@Retention(RetentionPolicy.SOURCE)
private @interface State {}
private static final int REQUEST_CODE_COMMENT_GALLERY = 0;
private static final int STATE_INIT = -1;
private static final int STATE_NORMAL = 0;
private static final int STATE_REFRESH = 1;
private static final int STATE_REFRESH_HEADER = 2;
private static final int STATE_FAILED = 3;
public final static String KEY_ACTION = "action";
public static final String ACTION_GALLERY_INFO = "action_gallery_info";
public static final String ACTION_GID_TOKEN = "action_gid_token";
public static final String KEY_GALLERY_INFO = "gallery_info";
public static final String KEY_GID = "gid";
public static final String KEY_TOKEN = "token";
public static final String KEY_PAGE = "page";
private static final String KEY_GALLERY_DETAIL = "gallery_detail";
private static final String KEY_REQUEST_ID = "request_id";
private static final boolean TRANSITION_ANIMATION_DISABLED = true;
/*---------------
View life cycle
---------------*/
@Nullable
private TextView mTip;
@Nullable
private ViewTransition mViewTransition;
// Header
@Nullable
private View mHeader;
@Nullable
private View mColorBg;
@Nullable
private LoadImageView mThumb;
@Nullable
private TextView mTitle;
@Nullable
private TextView mUploader;
@Nullable
private TextView mCategory;
@Nullable
private ImageView mOtherActions;
@Nullable
private ViewGroup mActionGroup;
@Nullable
private TextView mDownload;
@Nullable
private View mRead;
// Below header
@Nullable
private View mBelowHeader;
// Info
@Nullable
private View mInfo;
@Nullable
private TextView mLanguage;
@Nullable
private TextView mPages;
@Nullable
private TextView mSize;
@Nullable
private TextView mPosted;
@Nullable
private TextView mFavoredTimes;
// Actions
@Nullable
private View mActions;
@Nullable
private TextView mRatingText;
@Nullable
private RatingBar mRating;
@Nullable
private View mHeartGroup;
@Nullable
private TextView mHeart;
@Nullable
private TextView mHeartOutline;
@Nullable
private TextView mTorrent;
@Nullable
private TextView mArchive;
@Nullable
private TextView mShare;
@Nullable
private TextView mRate;
@Nullable
private TextView mSimilar;
@Nullable
private TextView mSearchCover;
// Tags
@Nullable
private LinearLayout mTags;
@Nullable
private TextView mNoTags;
// Comments
@Nullable
private LinearLayout mComments;
@Nullable
private TextView mCommentsText;
// Previews
@Nullable
private View mPreviews;
@Nullable
private SimpleGridAutoSpanLayout mGridLayout;
@Nullable
private TextView mPreviewText;
// Progress
@Nullable
private View mProgress;
@Nullable
private ViewTransition mViewTransition2;
@Nullable
private PopupMenu mPopupMenu;
@WholeLifeCircle
private int mDownloadState;
@Nul
没有合适的资源?快使用搜索试试~ 我知道了~
Android-EhViewer.zip
共654个文件
java:290个
xml:278个
png:49个
5星 · 超过95%的资源 需积分: 45 25 下载量 61 浏览量
2019-09-17
12:01:58
上传
评论 4
收藏 2.17MB ZIP 举报
温馨提示
Android-EhViewer.zip,[不推荐]一个非官方的安卓e-hentai应用程序,安卓系统是谷歌在2008年设计和制造的。操作系统主要写在爪哇,C和C 的核心组件。它是在linux内核之上构建的,具有安全性优势。
资源推荐
资源详情
资源评论
收起资源包目录
Android-EhViewer.zip (654个子文件)
gradlew.bat 2KB
EhTagDatabaseTest 80B
.gitignore 137B
.gitignore 99B
.gitignore 7B
build.gradle 4KB
build.gradle 1013B
build.gradle 780B
settings.gradle 32B
gradlew 5KB
NOTICE.html 97KB
GalleryListParserTestECompat.html 63KB
GalleryListParserTestExCompat.html 62KB
GalleryListParserTestEMinimalPlus.html 57KB
GalleryListParserTestEMinimal.html 56KB
GalleryListParserTestExMinimalPlus.html 55KB
GalleryListParserTestExMinimal.html 54KB
GalleryListParserTestEExtended.html 53KB
GalleryListParserTestExExtended.html 52KB
GalleryListParserTestEThumbnail.html 40KB
GalleryListParserTestExThumbnail.html 38KB
GalleryPageParserTest.html 4KB
gradle-wrapper.jar 52KB
GalleryDetailScene.java 74KB
GalleryListScene.java 62KB
SpiderQueen.java 56KB
FavoritesScene.java 48KB
DownloadsScene.java 47KB
GalleryActivity.java 43KB
DownloadManager.java 41KB
Html.java 41KB
Settings.java 40KB
ContentLayout.java 40KB
LockPatternView.java 39KB
GalleryCommentsScene.java 35KB
FileProvider.java 35KB
EhEngine.java 35KB
EhDB.java 30KB
MainActivity.java 27KB
EhConfig.java 26KB
GalleryDetailParser.java 26KB
EhDaoGenerator.java 24KB
AppCompatPreferenceActivity.java 21KB
StageActivity.java 21KB
DownloadService.java 21KB
ListUrlBuilder.java 19KB
Slider.java 18KB
SearchBar.java 18KB
HistoryScene.java 18KB
CommonOperations.java 16KB
EhApplication.java 16KB
SearchLayout.java 15KB
FilterActivity.java 15KB
GalleryPreviewsScene.java 15KB
FabLayout.java 15KB
DownloadLabelsScene.java 14KB
SignInScene.java 13KB
DialogPreference.java 13KB
GalleryListParser.java 13KB
ExcludedLanguagesActivity.java 13KB
SpiderDen.java 12KB
ProgressDialog.java 11KB
FixedAspectImageView.java 11KB
CookieRepositoryTest.java 11KB
LoadImageView.java 11KB
ListPreference.java 11KB
GalleryInfoScene.java 10KB
GalleryAdapter.java 10KB
SystemUiHelper.java 10KB
ProgressView.java 10KB
EhTagDatabase.java 9KB
ThumbSpanHelper.java 9KB
HostsActivity.java 9KB
QuickSearchScene.java 9KB
EhClient.java 9KB
SecurityScene.java 9KB
BaseScene.java 9KB
Hosts.java 9KB
RadioGridGroup.java 9KB
AutoWrapLayout.java 9KB
EhFilter.java 8KB
LinkMovementMethod2.java 8KB
CookieSignInScene.java 8KB
EhUrl.java 8KB
DownloadFragment.java 8KB
AdvanceSearchTable.java 8KB
ProgressScene.java 8KB
CookieDatabase.java 8KB
DirGalleryProvider.java 8KB
ArchiveGalleryProvider.java 8KB
DrawerArrowDrawable.java 8KB
GalleryInfo.java 8KB
TextClock.java 7KB
ImageSearchLayout.java 7KB
RestoreDownloadPreference.java 7KB
SearchBarMover.java 7KB
EhUtils.java 7KB
SeekBarPreference.java 7KB
SpiderInfo.java 7KB
ReadableTime.java 7KB
共 654 条
- 1
- 2
- 3
- 4
- 5
- 6
- 7
资源评论
- maXZero2023-07-28我对Android-EhViewer.zip的使用体验非常满意,推荐给需要的朋友们。
- 养生的控制人2023-07-28Android-EhViewer.zip是一个方便实用的文件。
- 懂得越多越要学2023-07-28值得一提的是,Android-EhViewer.zip在使用上非常稳定。
- ali-122023-07-28它提供了丰富的功能,让我在浏览和管理文件时轻松自如。
- wxb0cf756a5ebe75e92023-07-28这个文件对Android设备用户来说简直是福音啊!
weixin_38744207
- 粉丝: 343
- 资源: 2万+
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功