소스 검색

chore: moved a file to another package

beautusg 7 년 전
부모
커밋
ba4effb6be
2개의 변경된 파일4개의 추가작업 그리고 0개의 파일을 삭제
  1. 2 0
      app/src/main/java/com/sduduzog/slimlauncher/ui/main/NotesFragment.kt
  2. 2 0
      app/src/main/res/layout/notes_fragment_list_item.xml

+ 2 - 0
app/src/main/java/com/sduduzog/slimlauncher/ui/main/NotesFragment.kt

@@ -65,6 +65,8 @@ class NotesFragment : BaseFragment(), OnShitDoneToNotesListener {
 
         val itemTouchHelper = ItemTouchHelper(simpleItemTouchCallback)
         itemTouchHelper.attachToRecyclerView(notes_fragment_list)
+
+        notes_fragment_create_note.setOnClickListener(Navigation.createNavigateOnClickListener(R.id.action_notesFragment_to_noteFragment))
     }
 
 

+ 2 - 0
app/src/main/res/layout/notes_fragment_list_item.xml

@@ -15,5 +15,7 @@
     <TextView
         android:id="@+id/notes_fragment_list_item_snippet"
         android:layout_width="match_parent"
+        android:ellipsize="end"
+        android:maxLines="5"
         android:layout_height="wrap_content" />
 </LinearLayout>