Merge pull request #459 from chennemann/feat/scroll-bar-in-main-menu

Add scrollbars to habit overview list
pull/480/head
Alinson S. Xavier 7 years ago committed by GitHub
commit a719f6ad98
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -28,6 +28,7 @@ import android.view.*
import com.google.auto.factory.*
import dagger.*
import org.isoron.androidbase.activities.*
import org.isoron.uhabits.R
import org.isoron.uhabits.activities.common.views.*
import org.isoron.uhabits.core.models.*
@ -37,7 +38,7 @@ class HabitCardListView(
@Provided private val adapter: HabitCardListAdapter,
@Provided private val cardViewFactory: HabitCardViewFactory,
@Provided private val controller: Lazy<HabitCardListController>
) : RecyclerView(context) {
) : RecyclerView(context, null, R.attr.scrollableRecyclerViewStyle) {
var checkmarkCount: Int = 0

@ -132,6 +132,10 @@
style="@style/About.Item"
android:text="Victor Yu"/>
<TextView
style="@style/About.Item"
android:text="Christoph Hennemann"/>
</LinearLayout>
<LinearLayout

@ -54,4 +54,6 @@
<attr name="cardBackground" format="reference"/>
<attr name="headerBackground" format="reference"/>
<attr name="selectedBackground" format="reference"/>
<attr name="scrollableRecyclerViewStyle" format="reference"/>
</resources>

@ -65,6 +65,8 @@
<item name="aboutScreenColor">@color/blue_800</item>
<item name="widgetShadowAlpha">0.25</item>
<item name="widgetBackgroundAlpha">1</item>
<item name="scrollableRecyclerViewStyle">@style/ScrollableRecyclerViewStyle</item>
</style>
<style name="SmallSpinner">
@ -120,6 +122,8 @@
<item name="widgetShadowAlpha">0.25</item>
<item name="widgetBackgroundAlpha">1</item>
<item name="scrollableRecyclerViewStyle">@style/ScrollableRecyclerViewStyle</item>
</style>
<style name="AppBaseThemeDark.PureBlack">
@ -254,4 +258,8 @@
parent="@style/Theme.AppCompat.Dialog">
<item name="windowNoTitle">false</item>
</style>
<style name="ScrollableRecyclerViewStyle" parent="android:Widget">
<item name="android:scrollbars">vertical</item>
</style>
</resources>

Loading…
Cancel
Save