Skip to main content

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 NameDescriptionType
headerViewStyleStyle for the header of the create poll screen.LMFeedHeaderViewStyle
authorViewStyleDefines the style for the author view.LMFeedPostHeaderViewStyle
pollQuestionTitleViewStyleStyle for the poll question title.LMFeedTextStyle
pollQuestionViewStyleStyle for the poll question input field.LMFeedEditTextStyle
pollOptionsTitleViewStyleStyle for the poll options title.LMFeedTextStyle
pollAddOptionViewStyleStyle for the "add poll option" button.LMFeedTextStyle
pollExpiryTimeTitleViewStyleStyle for the poll expiry time title.LMFeedTextStyle
pollExpiryTimeViewStyleStyle for the poll expiry time selector.LMFeedTextStyle
pollAdvanceOptionViewStyleStyle for advanced options section.LMFeedTextStyle
pollAdvanceOptionSwitchViewStyleStyle for the advanced option toggle switches.LMFeedSwitchStyle
pollOptionsViewStyleStyle for the list of poll options.LMFeedCreatePollOptionViewStyle
pollDropdownViewStyleStyle 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

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

  • 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.