feat: repo editor in extension window (#332)
* fix: error checking in repo editor * feat: edit repos from extension page
This commit is contained in:
parent
f96d2ffaa5
commit
29e115ce41
5 changed files with 253 additions and 99 deletions
|
@ -35,16 +35,31 @@
|
|||
android:textColor="?attr/colorPrimary"
|
||||
android:textSize="16sp" />
|
||||
|
||||
<ImageButton
|
||||
android:id="@+id/languageselect"
|
||||
android:layout_width="48dp"
|
||||
<LinearLayout
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="48dp"
|
||||
android:layout_marginLeft="16dp"
|
||||
android:layout_marginRight="16dp"
|
||||
android:background="?android:attr/selectableItemBackground"
|
||||
android:contentDescription="@string/sort_by"
|
||||
app:srcCompat="@drawable/ic_round_translate_24"
|
||||
app:tint="?attr/colorOnBackground" />
|
||||
android:layout_marginHorizontal="16dp"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<ImageButton
|
||||
android:id="@+id/openSettingsButton"
|
||||
android:layout_width="48dp"
|
||||
android:layout_height="48dp"
|
||||
android:background="?android:attr/selectableItemBackground"
|
||||
android:contentDescription="@string/sort_by"
|
||||
app:srcCompat="@drawable/ic_github"
|
||||
app:tint="?attr/colorOnBackground" />
|
||||
|
||||
<ImageButton
|
||||
android:id="@+id/languageselect"
|
||||
android:layout_width="48dp"
|
||||
android:layout_height="48dp"
|
||||
android:background="?android:attr/selectableItemBackground"
|
||||
android:contentDescription="@string/sort_by"
|
||||
app:srcCompat="@drawable/ic_round_translate_24"
|
||||
app:tint="?attr/colorOnBackground" />
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
|
|
26
app/src/main/res/layout/dialog_repositories.xml
Normal file
26
app/src/main/res/layout/dialog_repositories.xml
Normal file
|
@ -0,0 +1,26 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:orientation="vertical"
|
||||
android:padding="16dp">
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/repoInventory"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical" />
|
||||
|
||||
<com.google.android.material.textfield.TextInputEditText
|
||||
android:id="@+id/repositoryTextBox"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
app:boxCornerRadiusBottomEnd="8dp"
|
||||
app:boxCornerRadiusBottomStart="8dp"
|
||||
app:boxCornerRadiusTopEnd="8dp"
|
||||
app:boxCornerRadiusTopStart="8dp"
|
||||
android:imeOptions="actionDone"
|
||||
app:hintAnimationEnabled="true" />
|
||||
|
||||
</LinearLayout>
|
|
@ -14,7 +14,7 @@
|
|||
<string name="github" translatable="false">https://github.com/rebelonion/Dantotsu</string>
|
||||
<string name="telegram" translatable="false" tools:ignore="Typos">https://t.me/+gzBCQExtLQo1YTNh </string>
|
||||
<string name="coffee" translatable="false">https://www.buymeacoffee.com/rebelonion</string>
|
||||
|
||||
|
||||
<string name="anilist_link">https://anilist.co/user/%1$s/</string>
|
||||
<string name="myanilist_link">https://myanimelist.net/profile/%1$s/</string>
|
||||
<string name="discord_link">https://discord.com/users/%1$s/</string>
|
||||
|
@ -864,13 +864,11 @@ Non quae tempore quo provident laudantium qui illo dolor vel quia dolor et exerc
|
|||
<string name="stat_text_color">Stats Text Color</string>
|
||||
<string name="placeholder">Placeholder</string>
|
||||
|
||||
<string name="anime_repo_listing">Anime Extension Repos</string>
|
||||
<string name="anime_add_repository">Add Anime Repo</string>
|
||||
<string name="manga_repo_listing">Manga Extension Repos</string>
|
||||
<string name="manga_add_repository">Add Manga Repo</string>
|
||||
<string name="add_repository">Add Repo</string>
|
||||
<string name="long_click_delete">Long click to delete</string>
|
||||
|
||||
<string name="edit_repositories">Edit repositories</string>
|
||||
<string name="rem_repository">Remove repository?</string>
|
||||
|
||||
<string name="trending_movies">Trending Movies</string>
|
||||
<string name="include_list">Include list</string>
|
||||
<string name="top_rated">Top rated</string>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue