Skip to content

Commit

Permalink
Refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
duy committed Oct 29, 2024
1 parent 5195e2e commit 668cdb7
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -61,12 +61,12 @@ class MarkdownListDocumentFragment : Fragment(), OnDocumentClickListener, IDocum
listDocumentAdapter = MarkdownListDocumentAdapter(context, documentItems)
listDocumentAdapter?.setOnDocumentClickListener(this)

val documentListView = view.findViewById<RecyclerView>(R.id.document_list_view)
val documentListView = view.findViewById<RecyclerView>(R.id.symja_prgm_document_list_view)
documentListView.setHasFixedSize(false)
documentListView.isNestedScrollingEnabled = false
documentListView.layoutManager = LinearLayoutManager(context)
documentListView.adapter = listDocumentAdapter
searchView = view.findViewById(R.id.edit_search_view)
searchView = view.findViewById(R.id.symja_prgm_search_view)
searchView?.addTextChangedListener(object : SimpleTextWatcher() {
override fun afterTextChanged(s: Editable) {
onQueryTextChange(s.toString())
Expand All @@ -83,10 +83,10 @@ class MarkdownListDocumentFragment : Fragment(), OnDocumentClickListener, IDocum
viewFlipper?.setInAnimation(getContext(), android.R.anim.slide_in_left)
viewFlipper?.setOutAnimation(getContext(), android.R.anim.slide_out_right)

documentNavigationContainer = view.findViewById(R.id.document_navigation_container)
documentNavigationContainer = view.findViewById(R.id.symja_prgm_document_navigation_container)
documentNavigationContainer?.isVisible = false;

documentNavigationView = view.findViewById(R.id.document_navigation_view)
documentNavigationView = view.findViewById(R.id.symja_prgm_document_navigation_view)
documentNavigationAdapter.setOnItemClickListener { position: Int, documentItem: DocumentItem ->
switchToPosition(
position,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@
android:orientation="vertical">

<androidx.appcompat.widget.LinearLayoutCompat
android:id="@+id/document_navigation_container"
android:id="@+id/symja_prgm_document_navigation_container"
android:layout_width="match_parent"
android:layout_height="40dp"
tools:visibility="visible">

<androidx.recyclerview.widget.RecyclerView
android:id="@+id/document_navigation_view"
android:id="@+id/symja_prgm_document_navigation_view"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="horizontal"
Expand All @@ -36,7 +36,7 @@


<androidx.appcompat.widget.AppCompatEditText
android:id="@+id/edit_search_view"
android:id="@+id/symja_prgm_search_view"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@null"
Expand All @@ -52,7 +52,7 @@
android:layout_height="1dp" />

<com.simplecityapps.recyclerview_fastscroll.views.FastScrollRecyclerView
android:id="@+id/document_list_view"
android:id="@+id/symja_prgm_document_list_view"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
Expand Down

0 comments on commit 668cdb7

Please sign in to comment.