A few ui changes (#204)
This commit is contained in:
parent
4628282715
commit
70c87b4067
4 changed files with 64 additions and 56 deletions
|
@ -4,6 +4,7 @@
|
||||||
xmlns:tools="http://schemas.android.com/tools"
|
xmlns:tools="http://schemas.android.com/tools"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="match_parent"
|
android:layout_height="match_parent"
|
||||||
|
android:fitsSystemWindows="true"
|
||||||
tools:context=".settings.SettingsActivity">
|
tools:context=".settings.SettingsActivity">
|
||||||
|
|
||||||
<LinearLayout
|
<LinearLayout
|
||||||
|
@ -80,6 +81,20 @@
|
||||||
app:tabPaddingStart="16dp"
|
app:tabPaddingStart="16dp"
|
||||||
app:tabTextAppearance="@style/NavBarText" />
|
app:tabTextAppearance="@style/NavBarText" />
|
||||||
|
|
||||||
|
<androidx.viewpager2.widget.ViewPager2
|
||||||
|
android:id="@+id/viewPager"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="0dp"
|
||||||
|
android:layout_weight="1" />
|
||||||
|
|
||||||
|
<FrameLayout
|
||||||
|
android:id="@+id/fragmentExtensionsContainer"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="match_parent"
|
||||||
|
android:layout_gravity="bottom"
|
||||||
|
android:layout_weight="1"
|
||||||
|
android:visibility="gone"></FrameLayout>
|
||||||
|
|
||||||
<com.google.android.material.textfield.TextInputLayout
|
<com.google.android.material.textfield.TextInputLayout
|
||||||
android:id="@+id/searchView"
|
android:id="@+id/searchView"
|
||||||
style="@style/Widget.MaterialComponents.TextInputLayout.OutlinedBox.ExposedDropdownMenu"
|
style="@style/Widget.MaterialComponents.TextInputLayout.OutlinedBox.ExposedDropdownMenu"
|
||||||
|
@ -87,7 +102,7 @@
|
||||||
android:layout_height="56dp"
|
android:layout_height="56dp"
|
||||||
android:layout_marginStart="16dp"
|
android:layout_marginStart="16dp"
|
||||||
android:layout_marginEnd="16dp"
|
android:layout_marginEnd="16dp"
|
||||||
android:layout_marginBottom="8dp"
|
android:layout_gravity="bottom"
|
||||||
android:transitionName="@string/search"
|
android:transitionName="@string/search"
|
||||||
app:boxBackgroundColor="@color/bg"
|
app:boxBackgroundColor="@color/bg"
|
||||||
app:boxBackgroundMode="outline"
|
app:boxBackgroundMode="outline"
|
||||||
|
@ -103,29 +118,16 @@
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_weight="1"
|
android:layout_weight="1"
|
||||||
|
android:layout_gravity="bottom"
|
||||||
android:fontFamily="@font/poppins_bold"
|
android:fontFamily="@font/poppins_bold"
|
||||||
android:imeOptions="actionSearch"
|
android:imeOptions="actionSearch"
|
||||||
android:inputType="textPersonName"
|
android:inputType="textPersonName"
|
||||||
|
android:hint="@string/search"
|
||||||
android:padding="8dp"
|
android:padding="8dp"
|
||||||
android:selectAllOnFocus="true"
|
android:selectAllOnFocus="true"
|
||||||
android:textSize="14sp"
|
android:textSize="14sp"
|
||||||
|
|
||||||
tools:ignore="LabelFor,TextContrastCheck" />
|
tools:ignore="LabelFor,TextContrastCheck" />
|
||||||
</com.google.android.material.textfield.TextInputLayout>
|
</com.google.android.material.textfield.TextInputLayout>
|
||||||
|
|
||||||
<androidx.viewpager2.widget.ViewPager2
|
|
||||||
android:id="@+id/viewPager"
|
|
||||||
android:layout_width="match_parent"
|
|
||||||
android:layout_height="0dp"
|
|
||||||
android:layout_weight="1" />
|
|
||||||
|
|
||||||
<FrameLayout
|
|
||||||
android:id="@+id/fragmentExtensionsContainer"
|
|
||||||
android:layout_width="match_parent"
|
|
||||||
android:layout_height="match_parent"
|
|
||||||
android:layout_gravity="bottom"
|
|
||||||
android:layout_weight="1"
|
|
||||||
android:visibility="gone"></FrameLayout>
|
|
||||||
|
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
</LinearLayout>
|
</LinearLayout>
|
|
@ -50,20 +50,6 @@
|
||||||
app:icon="@drawable/ic_anilist"
|
app:icon="@drawable/ic_anilist"
|
||||||
app:iconTint="?attr/colorOnPrimaryContainer" />
|
app:iconTint="?attr/colorOnPrimaryContainer" />
|
||||||
|
|
||||||
<Button
|
|
||||||
android:id="@+id/importSettingsButton"
|
|
||||||
android:layout_width="156dp"
|
|
||||||
android:layout_height="64dp"
|
|
||||||
android:layout_gravity="bottom|center_horizontal"
|
|
||||||
android:layout_marginBottom="32dp"
|
|
||||||
android:backgroundTint="?attr/colorPrimary"
|
|
||||||
android:fontFamily="@font/poppins_bold"
|
|
||||||
android:text="@string/import_settings"
|
|
||||||
android:textColor="?attr/colorOnPrimary"
|
|
||||||
app:cornerRadius="16dp"
|
|
||||||
app:icon="@drawable/ic_download_24"
|
|
||||||
app:iconTint="?attr/colorOnPrimary" />
|
|
||||||
|
|
||||||
<LinearLayout
|
<LinearLayout
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
|
@ -104,6 +90,25 @@
|
||||||
|
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
|
||||||
|
<LinearLayout
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:orientation="horizontal"
|
||||||
|
android:padding="8dp"
|
||||||
|
android:gravity="center">
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
android:id="@+id/importSettingsButton"
|
||||||
|
android:clickable="true"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:text="@string/import_settings_underline"
|
||||||
|
android:textSize="11sp"
|
||||||
|
android:textColor="?attr/colorOutline"
|
||||||
|
android:fontFamily="@font/poppins_bold"/>
|
||||||
|
|
||||||
|
</LinearLayout>
|
||||||
|
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
|
||||||
</FrameLayout>
|
</FrameLayout>
|
||||||
|
|
|
@ -49,6 +49,15 @@
|
||||||
android:textSize="10sp" />
|
android:textSize="10sp" />
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
|
||||||
|
<ImageView
|
||||||
|
android:id="@+id/closeTextView"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_gravity="center_vertical"
|
||||||
|
android:layout_weight="0"
|
||||||
|
android:src="@drawable/ic_round_delete_24"
|
||||||
|
app:tint="?attr/colorOnBackground" />
|
||||||
|
|
||||||
<ImageView
|
<ImageView
|
||||||
android:id="@+id/settingsImageView"
|
android:id="@+id/settingsImageView"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
|
@ -59,13 +68,4 @@
|
||||||
android:src="@drawable/ic_round_dots_vertical_24"
|
android:src="@drawable/ic_round_dots_vertical_24"
|
||||||
app:tint="?attr/colorOnBackground" />
|
app:tint="?attr/colorOnBackground" />
|
||||||
|
|
||||||
<ImageView
|
|
||||||
android:id="@+id/closeTextView"
|
|
||||||
android:layout_width="wrap_content"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:layout_gravity="center_vertical"
|
|
||||||
android:layout_weight="0"
|
|
||||||
android:src="@drawable/ic_round_delete_24"
|
|
||||||
app:tint="?attr/colorOnBackground" />
|
|
||||||
|
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
|
|
@ -657,6 +657,7 @@
|
||||||
<string name="pinned_sources">Pinned Sources</string>
|
<string name="pinned_sources">Pinned Sources</string>
|
||||||
<string name="import_export_settings">Import/Export Settings</string>
|
<string name="import_export_settings">Import/Export Settings</string>
|
||||||
<string name="import_settings">Import Settings</string>
|
<string name="import_settings">Import Settings</string>
|
||||||
|
<string name="import_settings_underline"><u>Import Settings</u></string>
|
||||||
<string name="try_internal_cast_experimental">Try Internal Cast (Experimental)</string>
|
<string name="try_internal_cast_experimental">Try Internal Cast (Experimental)</string>
|
||||||
|
|
||||||
<string name="comments">Comments</string>
|
<string name="comments">Comments</string>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue