mirror of
https://github.com/mihonapp/mihon.git
synced 2025-10-30 05:47:57 +01:00
Initial MAL support
This commit is contained in:
BIN
app/src/main/res/drawable-hdpi/ic_create.png
Normal file
BIN
app/src/main/res/drawable-hdpi/ic_create.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 262 B |
BIN
app/src/main/res/drawable-ldpi/ic_create.png
Normal file
BIN
app/src/main/res/drawable-ldpi/ic_create.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 195 B |
BIN
app/src/main/res/drawable-mdpi/ic_create.png
Normal file
BIN
app/src/main/res/drawable-mdpi/ic_create.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 195 B |
BIN
app/src/main/res/drawable-xhdpi/ic_create.png
Normal file
BIN
app/src/main/res/drawable-xhdpi/ic_create.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 299 B |
BIN
app/src/main/res/drawable-xxhdpi/ic_create.png
Normal file
BIN
app/src/main/res/drawable-xxhdpi/ic_create.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 415 B |
BIN
app/src/main/res/drawable-xxxhdpi/ic_create.png
Normal file
BIN
app/src/main/res/drawable-xxxhdpi/ic_create.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 501 B |
36
app/src/main/res/layout/dialog_myanimelist_search.xml
Normal file
36
app/src/main/res/layout/dialog_myanimelist_search.xml
Normal file
@@ -0,0 +1,36 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:orientation="vertical"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent">
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content">
|
||||
|
||||
<EditText
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"
|
||||
android:id="@+id/myanimelist_search_field"/>
|
||||
|
||||
<Button
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="@string/action_search"
|
||||
android:id="@+id/myanimelist_search_button"/>
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<ListView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:id="@+id/myanimelist_search_results"
|
||||
android:choiceMode="singleChoice"
|
||||
android:listSelector="@color/list_choice_pressed_bg_light">
|
||||
|
||||
</ListView>
|
||||
|
||||
|
||||
|
||||
</LinearLayout>
|
||||
13
app/src/main/res/layout/dialog_myanimelist_search_item.xml
Normal file
13
app/src/main/res/layout/dialog_myanimelist_search_item.xml
Normal file
@@ -0,0 +1,13 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:orientation="vertical"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent">
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:id="@+id/myanimelist_result_title"
|
||||
android:padding="10dp"/>
|
||||
|
||||
</LinearLayout>
|
||||
49
app/src/main/res/layout/fragment_myanimelist.xml
Normal file
49
app/src/main/res/layout/fragment_myanimelist.xml
Normal file
@@ -0,0 +1,49 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:orientation="vertical"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:padding="10dp">
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content">
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="MyAnimeList title:" />
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:id="@+id/myanimelist_title" />
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content">
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="Last chapter read" />
|
||||
|
||||
<EditText
|
||||
android:layout_width="56dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:inputType="number"
|
||||
android:ems="10"
|
||||
android:id="@+id/myanimelist_last_chapter_read"/>
|
||||
|
||||
<Button
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="@string/action_update"
|
||||
android:id="@+id/update_button"/>
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
|
||||
</LinearLayout>
|
||||
10
app/src/main/res/menu/myanimelist.xml
Normal file
10
app/src/main/res/menu/myanimelist.xml
Normal file
@@ -0,0 +1,10 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<menu xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto">
|
||||
|
||||
<item android:title="@string/action_edit"
|
||||
android:id="@+id/myanimelist_edit"
|
||||
android:icon="@drawable/ic_create"
|
||||
app:showAsAction="ifRoom" />
|
||||
|
||||
</menu>
|
||||
@@ -17,10 +17,17 @@
|
||||
<string name="action_mark_as_unread">Mark as unread</string>
|
||||
<string name="action_download">Download</string>
|
||||
<string name="action_delete">Delete</string>
|
||||
<string name="action_update">Update</string>
|
||||
<string name="action_edit">Edit</string>
|
||||
<string name="action_sort_up">Sort up</string>
|
||||
<string name="action_sort_down">Sort down</string>
|
||||
<string name="action_show_unread">Show unread</string>
|
||||
|
||||
<!-- Buttons -->
|
||||
<string name="button_ok">Ok</string>
|
||||
<string name="button_cancel">Cancel</string>
|
||||
|
||||
|
||||
<!-- Preferences -->
|
||||
<!-- Subsections -->
|
||||
<string name="pref_category_reader">Reader</string>
|
||||
|
||||
Reference in New Issue
Block a user