Screen: LMFeedCreatePollFragment
LMFeedCreatePollFragment
allows users to create polls within the LikeMinds feed system. It provides an interface for adding poll questions, options, and configuring advanced settings like expiration time and anonymous voting.
GitHub Link to LMFeedCreatePollFragment
View Style: LMFeedCreatePollFragmentViewStyle
LMFeedCreatePollFragmentViewStyle
defines the visual style and structure of the LMFeedCreatePollFragment. The following fields are available for customization:
Field Name | Description | Type |
---|---|---|
headerViewStyle | Style for the header of the create poll screen. | LMFeedHeaderViewStyle |
authorViewStyle | Defines the style for the author view. | LMFeedPostHeaderViewStyle |
pollQuestionTitleViewStyle | Style for the poll question title. | LMFeedTextStyle |
pollQuestionViewStyle | Style for the poll question input field. | LMFeedEditTextStyle |
pollOptionsTitleViewStyle | Style for the poll options title. | LMFeedTextStyle |
pollAddOptionViewStyle | Style for the "add poll option" button. | LMFeedTextStyle |
pollExpiryTimeTitleViewStyle | Style for the poll expiry time title. | LMFeedTextStyle |
pollExpiryTimeViewStyle | Style for the poll expiry time selector. | LMFeedTextStyle |
pollAdvanceOptionViewStyle | Style for advanced options section. | LMFeedTextStyle |
pollAdvanceOptionSwitchViewStyle | Style for the advanced option toggle switches. | LMFeedSwitchStyle |
pollOptionsViewStyle | Style for the list of poll options. | LMFeedCreatePollOptionViewStyle |
pollDropdownViewStyle | Style for dropdown menus in the poll creation screen. | LMFeedTextStyle |
GitHub Link to LMFeedCreatePollFragmentViewStyle
Customization available in LMFeedCreatePollFragment
Header Customizations
- customizeCreatePollHeader(headerView: LMFeedHeaderView): Allows customization of the poll creation header.
Author View Customizations
- customizeAuthorView(authorView: LMFeedPostHeaderView): Customizes the appearance of the author view.
Poll Content Customizations
- customizePollQuestion(tvPollQuestionTitle: LMFeedTextView, etPollQuestion: LMFeedEditText): Customizes the input field for the poll question.
- customizePollOptions(tvPollOptionsTitle: LMFeedTextView, tvAddOption: LMFeedTextView): Customizes the poll options layout.
- customizePollExpiryTime(tvPollExpiryTitle: LMFeedTextView, tvPollExpiryTime: LMFeedTextView): Customizes the poll expiry time selector.
Advanced Options Customizations
- customizeAdvancedOptionTitle(tvAdvancedOptions: LMFeedTextView): Customizes the title for advanced options.
- customizeAdvanceOptionSwitchOptions(switchAnonymousPoll: LMFeedSwitch, switchLiveResults: LMFeedSwitch, switchAddNewOptions: LMFeedSwitch): Customizes the toggle switches for advanced options.
Interactions available in LMFeedCreatePollFragment
Navigation Interactions
onNavigationIconClicked()
: Handles clicks on the navigation icon.
Poll Option Interactions
onAddPollOptionClicked()
: Handles adding a new poll option.
Poll Settings Interactions
onPollExpiryTimeClicked()
: Handles the selection of poll expiry time.onAdvancedSettingsClicked()
: Handles clicks on the advanced settings button.
Submission Interactions
onPollSubmitClicked()
: Handles the submission of the created poll.