mirror of
https://github.com/iSoron/uhabits.git
synced 2025-12-07 09:38:52 -06:00
Create HabitListView and move most code from Fragment to it
This commit is contained in:
@@ -24,7 +24,7 @@
|
||||
android:layout_height="match_parent"
|
||||
android:background="#ffffff">
|
||||
|
||||
<com.mobeta.android.dslv.DragSortListView
|
||||
<org.isoron.uhabits.ui.habits.list.HabitListView
|
||||
android:id="@+id/listView"
|
||||
dslv:drag_enabled="true"
|
||||
dslv:drag_start_mode="onLongPress"
|
||||
@@ -82,6 +82,7 @@
|
||||
style="?android:attr/progressBarStyleHorizontal"
|
||||
android:layout_below="@+id/header"
|
||||
android:layout_marginTop="@dimen/progressbarOffset"
|
||||
android:visibility="gone"
|
||||
/>
|
||||
|
||||
<LinearLayout
|
||||
|
||||
@@ -22,4 +22,18 @@
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
tools:context=".MainActivity">
|
||||
|
||||
<item
|
||||
android:id="@+id/action_add"
|
||||
android:icon="?iconAdd"
|
||||
android:title="@string/add_habit"
|
||||
app:showAsAction="ifRoom"/>
|
||||
|
||||
<item
|
||||
android:id="@+id/action_show_archived"
|
||||
android:checkable="true"
|
||||
android:enabled="true"
|
||||
android:title="@string/show_archived"
|
||||
android:orderInCategory="0"
|
||||
app:showAsAction="never"/>
|
||||
|
||||
</menu>
|
||||
@@ -22,24 +22,12 @@
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
tools:context=".MainActivity">
|
||||
|
||||
<item
|
||||
android:id="@+id/action_add"
|
||||
android:icon="?iconAdd"
|
||||
android:title="@string/add_habit"
|
||||
app:showAsAction="ifRoom"/>
|
||||
|
||||
<item
|
||||
android:id="@+id/action_show_archived"
|
||||
android:checkable="true"
|
||||
android:enabled="true"
|
||||
android:title="@string/show_archived"
|
||||
app:showAsAction="never"/>
|
||||
|
||||
<item
|
||||
android:id="@+id/action_night_mode"
|
||||
android:checkable="true"
|
||||
android:enabled="true"
|
||||
android:title="@string/night_mode"
|
||||
android:orderInCategory="50"
|
||||
app:showAsAction="never"/>
|
||||
|
||||
<item
|
||||
Reference in New Issue
Block a user