Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs(stories): stories by id initialization #28

Merged
merged 3 commits into from
Jun 18, 2024

Conversation

gochicus
Copy link
Contributor

@gochicus gochicus commented Jun 18, 2024

На основе этого ПР: rees46/android-sdk#22
Задача: https://github.com/rees46/planning/issues/826
Реализация на java - версия 1.8.17
на kotlin - версия 2.0.4

@gochicus gochicus added the documentation Improvements or additions to documentation label Jun 18, 2024
@gochicus gochicus requested a review from xeewii June 18, 2024 10:29
@gochicus gochicus self-assigned this Jun 18, 2024
@xeewii
Copy link

xeewii commented Jun 18, 2024

Давай в основной секции к stories допишем как создавать их.
То есть

Add code to your layout:

<com.personalizatio.stories.views.StoriesView
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    app:code="STORY BLOCK CODE" />
val storiesView = findViewById<StoriesView>(R.id.stories_view)
sdk.initializeStoriesView(storiesView)

Or programmatically:

val storiesView = StoriesView(this, "STORY BLOCK CODE")
findViewById<ViewGroup>(R.id.stories).addView(storiesView)
sdk.initializeStoriesView(storiesView)

Тогда sdk.initializeStoriesView(storiesView) в блоке Font setup нужно убрать будет

@gochicus gochicus requested a review from TorinAsakura June 18, 2024 11:43
@TorinAsakura TorinAsakura merged commit 280cb11 into master Jun 18, 2024
@TorinAsakura TorinAsakura deleted the feat/stories-by-id-kotlin branch June 18, 2024 16:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants