This commit is contained in:
sifacaii 2022-08-23 18:36:02 +08:00
parent 7ecf0dacd7
commit 7e40852426
3 changed files with 9 additions and 2 deletions

View File

@ -15,7 +15,7 @@
android:label="@string/app_name" android:label="@string/app_name"
android:roundIcon="@drawable/touchicon144" android:roundIcon="@drawable/touchicon144"
android:supportsRtl="true" android:supportsRtl="true"
android:theme="@style/Theme.Material3.Dark.NoActionBar" android:theme="@style/jellyfin"
tools:targetApi="31"> tools:targetApi="31">
<activity <activity
android:name=".MainActivity" android:name=".MainActivity"

View File

@ -120,7 +120,7 @@ public class MainActivity extends BaseActivity {
layoutManager.setOrientation(layoutManager.HORIZONTAL); layoutManager.setOrientation(layoutManager.HORIZONTAL);
tvRecyclerView.setLayoutManager(layoutManager); tvRecyclerView.setLayoutManager(layoutManager);
int spm = Utils.getPixelsFromDp(mActivity, tvContiner.getResources().getDimensionPixelSize(R.dimen.vh_space_width)); int spm = Utils.getPixelsFromDp(mActivity, tvContiner.getResources().getDimensionPixelSize(R.dimen.vh_space_width));
tvRecyclerView.setSpacingWithMargins(0, spm); tvRecyclerView.setSpacingWithMargins(0, 12);
JAdapter jAdapter = new JAdapter(data, horizon); JAdapter jAdapter = new JAdapter(data, horizon);
jAdapter.setOnItemClickListener(new JAdapter.OnItemClickListener() { jAdapter.setOnItemClickListener(new JAdapter.OnItemClickListener() {

View File

@ -0,0 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<style name="jellyfin" parent="Theme.Material3.Dark.NoActionBar">
<item name="android:background">@null</item>
<item name="android:windowBackground">@drawable/app_bg</item>
</style>
</resources>