diff --git a/app/build.gradle b/app/build.gradle index 526879ab..efa0d848 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -88,7 +88,8 @@ dependencies { implementation 'com.google.android.material:material:1.12.0' implementation 'androidx.recyclerview:recyclerview:1.3.2' implementation 'androidx.cardview:cardview:1.0.0' - implementation "androidx.viewpager2:viewpager2:1.0.0" + implementation "androidx.viewpager2:viewpager2:1.1.0" + api 'joda-time:joda-time:2.10.13' api 'com.github.tibbi:RecyclerView-FastScroller:e7d3e150c4' diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index e579c40f..3b4573a6 100644 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -19,7 +19,7 @@ android:localeConfig="@xml/locales_config" android:roundIcon="@mipmap/ic_launcher" android:supportsRtl="true" - android:theme="@style/AppTheme"> + android:theme="@style/AppTheme.Base"> @@ -31,7 +31,7 @@ + /> - - - - - diff --git a/app/src/main/java/be/scri/activities/MainActivity.kt b/app/src/main/java/be/scri/activities/MainActivity.kt index fe1b8026..9c57e196 100644 --- a/app/src/main/java/be/scri/activities/MainActivity.kt +++ b/app/src/main/java/be/scri/activities/MainActivity.kt @@ -1,12 +1,17 @@ package be.scri.activities + import android.os.Bundle import android.view.View +import android.view.ViewGroup +import android.widget.Button +import android.widget.TextView import androidx.viewpager2.widget.ViewPager2 -import com.google.android.material.bottomnavigation.BottomNavigationView import be.scri.R import be.scri.adapters.ViewPagerAdapter import be.scri.databinding.ActivityMainBinding +import com.google.android.material.bottomnavigation.BottomNavigationView + class MainActivity : SimpleActivity() { @@ -17,9 +22,24 @@ class MainActivity : SimpleActivity() { override fun onCreate(savedInstanceState: Bundle?) { super.onCreate(savedInstanceState) + supportActionBar?.displayOptions = androidx.appcompat.app.ActionBar.DISPLAY_SHOW_CUSTOM; + supportActionBar?.setDisplayShowCustomEnabled(true); + supportActionBar?.setCustomView(R.layout.custom_action_bar_layout); + supportActionBar?.elevation = 0F + val layoutParams = supportActionBar?.customView?.layoutParams + layoutParams?.height = 1000 + supportActionBar?.customView?.layoutParams = layoutParams + setActionBarTitle(R.string.app_launcher_name) + val mButton = supportActionBar?.customView?.findViewById