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

Consolidate Sample #226

Merged
merged 3 commits into from
Jul 20, 2018
Merged

Conversation

ShaishavGandhi
Copy link
Collaborator

Description: Consolidate sample to open up different activities. Have also included a brief description before the Button to describe the sample.

Signed-off-by: shaishavgandhi05 <shaishgandhi@gmail.com>
Signed-off-by: shaishavgandhi05 <shaishgandhi@gmail.com>
@@ -20,4 +20,7 @@
<string name="title_activity_main">AutoDispose Demo</string>
<string name="title_activity_arch_component">AutoDispose ArchComponents Demo</string>
<string name="load_image">Load Image</string>
<string name="main_activity_description">Sample Java Activity which uses Architecture Components lifecycle to manage subscription</string>
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tentative descriptions for each Activity. Welcome any feedback!

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How about Sample Java Activity demonstrating integration with Architecture Components Lifecycle?


val mainActivityButton: Button = findViewById(R.id.mainActivityButton)
mainActivityButton.setOnClickListener {
startActivity(MainActivity::class.java)
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Proposal to rename MainActivity to JavaActivity or something similar?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Works for me!

@ZacSweers
Copy link
Collaborator

Would you mind adding a screenshot(s) or screenrecording of the new UI for posterity?

@ShaishavGandhi
Copy link
Collaborator Author

Here's a screenshot:

autodispose

Just opens up the Activities. One concern is that both MainActivity and KotlinActivity don't really display anything. They just log the Observable sequence.

@ZacSweers
Copy link
Collaborator

Nit: Can we remove the "AutoDispose" prefix in the button texts in favor of just a toolbar with AutoDispose Demo as the title?

Signed-off-by: shaishavgandhi05 <shaishgandhi@gmail.com>
@ShaishavGandhi
Copy link
Collaborator Author

Here's the new screenshot:
autodispose

@ZacSweers ZacSweers merged commit ed00fd7 into uber:master Jul 20, 2018
@ZacSweers
Copy link
Collaborator

thanks!

@ShaishavGandhi ShaishavGandhi deleted the sg/consolidate-sample branch July 20, 2018 03:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants