Skip to content

Commit

Permalink
Refactored text overflow in dropdown (#1987)
Browse files Browse the repository at this point in the history
* Refactored text overflow in dropdown

* Removed unnecessary attributes from drop down list item xml

* Update datacapture/src/main/res/layout/drop_down_list_item.xml

---------

Co-authored-by: Jing Tang <[email protected]>
  • Loading branch information
2 people authored and ktarasenko committed Jun 29, 2023
1 parent 7817a14 commit 6791b35
Showing 1 changed file with 11 additions and 8 deletions.
19 changes: 11 additions & 8 deletions datacapture/src/main/res/layout/drop_down_list_item.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,17 @@
See the License for the specific language governing permissions and
limitations under the License.
-->
<TextView
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/answer_option_textview"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:drawablePadding="@dimen/icon_drawable_padding"
android:ellipsize="end"
android:maxLines="1"
android:padding="@dimen/drop_down_padding"
android:textAppearance="?attr/questionnaireDropDownTextStyle"
/>
>
<TextView
android:id="@+id/answer_option_textview"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:drawablePadding="@dimen/icon_drawable_padding"
android:padding="@dimen/drop_down_padding"
android:textAppearance="?attr/questionnaireDropDownTextStyle"
/>
</LinearLayout>

0 comments on commit 6791b35

Please sign in to comment.