Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
FikriMilano committed Nov 5, 2024
1 parent f7b4791 commit 066914a
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ package com.google.android.fhir.datacapture.views
import android.app.Dialog
import android.os.Build
import android.os.Bundle
import android.util.Log
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
Expand Down Expand Up @@ -260,6 +261,9 @@ private class OptionSelectAdapter(val multiSelectEnabled: Boolean) :
submitList(newList)
// Scroll down the recyclerview to show the Add another answer button on the screen.
recyclerView.smoothScrollToPosition(this@OptionSelectAdapter.itemCount)
newList.forEach {
Log.d("FIKRI123", it.toString())
}
}
}
}
Expand Down
17 changes: 17 additions & 0 deletions datacapture/src/main/res/layout/option_item_other_add_another.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,20 @@
android:layout_gravity="center_horizontal"
android:text="@string/open_choice_other_add_another"
/>

<!--<LinearLayout-->
<!--xmlns:android="http://schemas.android.com/apk/res/android"-->
<!--android:layout_width="match_parent"-->
<!--android:layout_height="wrap_content"-->
<!--android:orientation="horizontal"-->
<!--android:gravity="center_vertical"-->
<!-- >-->
<!--<Button-->
<!-- style="?attr/questionnaireAddAnotherAnswerButtonStyle"-->
<!-- android:id="@+id/add_another"-->
<!-- android:layout_width="wrap_content"-->
<!-- android:layout_height="wrap_content"-->
<!-- android:layout_gravity="center_horizontal"-->
<!-- android:text="@string/open_choice_other_add_another"-->
<!-- />-->
<!--</LinearLayout>-->

0 comments on commit 066914a

Please sign in to comment.