Skip to content
This repository has been archived by the owner on Aug 26, 2019. It is now read-only.

Commit

Permalink
add lib
Browse files Browse the repository at this point in the history
  • Loading branch information
seven332 committed Mar 11, 2014
0 parents commit 1382a83
Show file tree
Hide file tree
Showing 185 changed files with 13,679 additions and 0 deletions.
70 changes: 70 additions & 0 deletions AndroidManifest.xml
@@ -0,0 +1,70 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.hippo.ehviewer"
android:versionCode="4"
android:versionName="0.2.2" >

<uses-sdk
android:minSdkVersion="14"
android:targetSdkVersion="19" />

<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />

<application
android:name="com.hippo.ehviewer.CrashApplication"
android:allowBackup="true"
android:largeHeap="true"
android:hardwareAccelerated="false"
android:icon="@drawable/ic_launcher"
android:label="@string/app_name"
android:theme="@style/AppTheme" >

<activity
android:name="com.hippo.ehviewer.activity.MangaListActivity"
android:label="@string/app_name"
android:screenOrientation="portrait"
android:configChanges="orientation|screenSize" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<action android:name="android.intent.action.SEARCH" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
<meta-data
android:name="android.app.searchable"
android:resource="@xml/searchable" />
</activity>

<activity
android:name="com.hippo.ehviewer.activity.MangaDetailActivity"
android:screenOrientation="portrait"
android:windowSoftInputMode="adjustPan|adjustUnspecified|stateHidden"
android:configChanges="orientation|screenSize" >
</activity>

<activity
android:name="com.hippo.ehviewer.activity.MangaActivity"
android:screenOrientation="portrait"
android:configChanges="orientation|screenSize" >
</activity>

<activity
android:name="com.hippo.ehviewer.activity.SettingsActivity"
android:label="@string/preference_settings_title"
android:icon="@drawable/ic_action_settings"
android:screenOrientation="portrait"
android:configChanges="orientation|screenSize" >
</activity>

<activity
android:name="com.hippo.ehviewer.activity.FavouriteActivity"
android:label="@string/favourite"
android:icon="@drawable/ic_action_favourite"
android:screenOrientation="portrait"
android:configChanges="orientation|screenSize" >
</activity>

</application>

</manifest>
Binary file added libs/android-support-v4.jar
Binary file not shown.
Binary file added libs/commons-lang3-3.2.1.jar
Binary file not shown.
20 changes: 20 additions & 0 deletions proguard-project.txt
@@ -0,0 +1,20 @@
# To enable ProGuard in your project, edit project.properties
# to define the proguard.config property as described in that file.
#
# Add project specific ProGuard rules here.
# By default, the flags in this file are appended to flags specified
# in ${sdk.dir}/tools/proguard/proguard-android.txt
# You can edit the include path and order by changing the ProGuard
# include property in project.properties.
#
# For more details, see
# http://developer.android.com/guide/developing/tools/proguard.html

# Add any project specific keep options here:

# If your project uses WebView with JS, uncomment the following
# and specify the fully qualified class name to the JavaScript interface
# class:
#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
# public *;
#}
Binary file added res/drawable-hdpi/artistcg.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable-hdpi/asianporn.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable-hdpi/cosplay.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable-hdpi/doujinshi.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable-hdpi/gamecg.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable-hdpi/ic_action_action_search.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable-hdpi/ic_action_core_overflow.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable-hdpi/ic_action_favourite.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable-hdpi/ic_action_jump.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable-hdpi/ic_action_refresh.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable-hdpi/ic_action_settings.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable-hdpi/ic_launcher.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable-hdpi/ic_navigation_drawer.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable-hdpi/imageset.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable-hdpi/manga.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable-hdpi/mask.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable-hdpi/misc.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable-hdpi/non_h.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable-hdpi/scrollbar_white.9.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable-hdpi/star.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable-hdpi/star_empty.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable-hdpi/star_half.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable-hdpi/unknown.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable-hdpi/western.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable-mdpi/artistcg.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable-mdpi/asianporn.png
Binary file added res/drawable-mdpi/cosplay.png
Binary file added res/drawable-mdpi/doujinshi.png
Binary file added res/drawable-mdpi/gamecg.png
Binary file added res/drawable-mdpi/ic_action_action_search.png
Binary file added res/drawable-mdpi/ic_action_core_overflow.png
Binary file added res/drawable-mdpi/ic_action_favourite.png
Binary file added res/drawable-mdpi/ic_action_jump.png
Binary file added res/drawable-mdpi/ic_action_refresh.png
Binary file added res/drawable-mdpi/ic_action_settings.png
Binary file added res/drawable-mdpi/ic_launcher.png
Binary file added res/drawable-mdpi/ic_navigation_drawer.png
Binary file added res/drawable-mdpi/imageset.png
Binary file added res/drawable-mdpi/manga.png
Binary file added res/drawable-mdpi/mask.png
Binary file added res/drawable-mdpi/misc.png
Binary file added res/drawable-mdpi/non_h.png
Binary file added res/drawable-mdpi/scrollbar_blue.9.png
Binary file added res/drawable-mdpi/scrollbar_white.9.png
Binary file added res/drawable-mdpi/star.png
Binary file added res/drawable-mdpi/star_empty.png
Binary file added res/drawable-mdpi/star_half.png
Binary file added res/drawable-mdpi/unknown.png
Binary file added res/drawable-mdpi/western.png
Binary file added res/drawable-xhdpi/artistcg.png
Binary file added res/drawable-xhdpi/asianporn.png
Binary file added res/drawable-xhdpi/cosplay.png
Binary file added res/drawable-xhdpi/doujinshi.png
Binary file added res/drawable-xhdpi/gamecg.png
Binary file added res/drawable-xhdpi/ic_action_action_search.png
Binary file added res/drawable-xhdpi/ic_action_core_overflow.png
Binary file added res/drawable-xhdpi/ic_action_favourite.png
Binary file added res/drawable-xhdpi/ic_action_jump.png
Binary file added res/drawable-xhdpi/ic_action_refresh.png
Binary file added res/drawable-xhdpi/ic_action_settings.png
Binary file added res/drawable-xhdpi/ic_launcher.png
Binary file added res/drawable-xhdpi/ic_navigation_drawer.png
Binary file added res/drawable-xhdpi/imageset.png
Binary file added res/drawable-xhdpi/manga.png
Binary file added res/drawable-xhdpi/mask.png
Binary file added res/drawable-xhdpi/misc.png
Binary file added res/drawable-xhdpi/non_h.png
Binary file added res/drawable-xhdpi/scrollbar_blue.9.png
Binary file added res/drawable-xhdpi/scrollbar_white.9.png
Binary file added res/drawable-xhdpi/star.png
Binary file added res/drawable-xhdpi/star_empty.png
Binary file added res/drawable-xhdpi/star_half.png
Binary file added res/drawable-xhdpi/unknown.png
Binary file added res/drawable-xhdpi/western.png
Binary file added res/drawable-xxhdpi/artistcg.png
Binary file added res/drawable-xxhdpi/asianporn.png
Binary file added res/drawable-xxhdpi/back.png
Binary file added res/drawable-xxhdpi/cosplay.png
Binary file added res/drawable-xxhdpi/doujinshi.png
Binary file added res/drawable-xxhdpi/front.png
Binary file added res/drawable-xxhdpi/gamecg.png
Binary file added res/drawable-xxhdpi/ic_action_core_overflow.png
Binary file added res/drawable-xxhdpi/ic_action_favourite.png
Binary file added res/drawable-xxhdpi/ic_action_jump.png
Binary file added res/drawable-xxhdpi/ic_action_refresh.png
Binary file added res/drawable-xxhdpi/ic_action_search.png
Binary file added res/drawable-xxhdpi/ic_action_settings.png
Binary file added res/drawable-xxhdpi/ic_launcher.png
Binary file added res/drawable-xxhdpi/ic_navigation_drawer.png
Binary file added res/drawable-xxhdpi/imageset.png
Binary file added res/drawable-xxhdpi/manga.png
Binary file added res/drawable-xxhdpi/mask.png
Binary file added res/drawable-xxhdpi/misc.png
Binary file added res/drawable-xxhdpi/non_h.png
Binary file added res/drawable-xxhdpi/scrollbar_blue.9.png
Binary file added res/drawable-xxhdpi/scrollbar_white.9.png
Binary file added res/drawable-xxhdpi/star.png
Binary file added res/drawable-xxhdpi/star_empty.png
Binary file added res/drawable-xxhdpi/star_half.png
Binary file added res/drawable-xxhdpi/unknown.png
Binary file added res/drawable-xxhdpi/western.png
Binary file added res/drawable-xxxhdpi/ic_launcher.png
Binary file added res/drawable/refresh.png
Binary file added res/drawable/sadpanda.jpg
Binary file added res/drawable/wait.gif
69 changes: 69 additions & 0 deletions res/layout/detail.xml
@@ -0,0 +1,69 @@
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:fitsSystemWindows="true" >

<ScrollView
android:id="@+id/manga_detail_scrollview"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:fadingEdge="vertical"
android:scrollbars="vertical" >

<LinearLayout
android:id="@+id/manga_detail"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:gravity="center"
android:orientation="vertical" >

<com.hippo.ehviewer.view.OlImageView
android:id="@+id/detail_cover"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal"
android:layout_marginBottom="8dp"
android:layout_marginTop="8dp" />

<TextView
android:id="@+id/detail_title"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginBottom="8dp"
android:layout_marginLeft="8dp"
android:layout_marginRight="8dp" />

<include
android:id="@+id/manga_detail_normal"
layout="@layout/detail_normal"
android:visibility="gone" />

<include
android:id="@+id/manga_detail_offensive"
layout="@layout/detail_offensive"
android:visibility="gone" />

<include
android:id="@+id/manga_detail_pining"
layout="@layout/detail_pining"
android:visibility="gone" />
</LinearLayout>
</ScrollView>

<ProgressBar
android:id="@+id/detail_wait"
style="?android:attr/progressBarStyleLarge"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerInParent="true" />

<Button
android:id="@+id/detail_refresh"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerInParent="true"
android:onClick="buttonRefresh"
android:text="@string/refresh"
android:visibility="gone" />

</RelativeLayout>
76 changes: 76 additions & 0 deletions res/layout/detail_normal.xml
@@ -0,0 +1,76 @@
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical"
android:gravity="center_horizontal" >

<ImageView
android:id="@+id/detail_type"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginBottom="8dp" />

<TextView
android:id="@+id/detail_uploader"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginBottom="8dp" />

<TextView
android:id="@+id/detail_posted"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginBottom="8dp" />

<TextView
android:id="@+id/detail_pages"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginBottom="8dp" />

<TextView
android:id="@+id/detail_size"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginBottom="8dp" />

<TextView
android:id="@+id/detail_language"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginBottom="8dp" />

<LinearLayout
android:id="@+id/detail_rate"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation = "horizontal"
android:layout_marginBottom="8dp" >
</LinearLayout>

<TextView
android:id="@+id/detail_average"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginBottom="8dp" />

<TextView
android:id="@+id/detail_people"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginBottom="8dp" />

<Button
android:id="@+id/button_read"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginBottom="12dp"
android:text="@string/detail_button_read"
android:onClick="buttonRead" />

<include
layout="@layout/page_list"
android:id="@+id/page_list"
android:visibility="gone" />

</LinearLayout>
51 changes: 51 additions & 0 deletions res/layout/detail_offensive.xml
@@ -0,0 +1,51 @@
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical"
android:gravity="center_horizontal" >

<TextView
android:textAppearance="?android:attr/textAppearanceLarge"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_margin="8dp"
android:textColor="#ff0000"
android:text="@string/detail_offensive_title" />

<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginBottom="8dp"
android:layout_marginLeft="8dp"
android:layout_marginRight="8dp"
android:text="@string/detail_offensive" />

<Button
android:id="@+id/detail_button_cancel"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_margin="8dp"
android:text="@string/detail_button_cancel"
android:onClick="buttonFinsh" />

<Button
android:id="@+id/detail_button_once"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginBottom="8dp"
android:layout_marginLeft="8dp"
android:layout_marginRight="8dp"
android:text="@string/detail_button_once"
android:onClick="buttonOnce" />

<Button
android:id="@+id/detail_button_every"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginBottom="8dp"
android:layout_marginLeft="8dp"
android:layout_marginRight="8dp"
android:text="@string/detail_button_every"
android:onClick="buttonEvery" />

</LinearLayout>
23 changes: 23 additions & 0 deletions res/layout/detail_pining.xml
@@ -0,0 +1,23 @@
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical"
android:gravity="center_horizontal" >

<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="8dp"
android:layout_marginLeft="8dp"
android:layout_marginRight="8dp"
android:text="@string/detail_pining" />

<Button
android:id="@+id/detail_button_known"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_margin="8dp"
android:text="@string/detail_button_known"
android:onClick="buttonFinsh" />

</LinearLayout>

0 comments on commit 1382a83

Please sign in to comment.