Skip to content

Instantly share code, notes, and snippets.

@binarygit
Created December 16, 2025 00:44
Show Gist options
  • Select an option

  • Save binarygit/f2f42381e0d000ca8318d8afeb79aff4 to your computer and use it in GitHub Desktop.

Select an option

Save binarygit/f2f42381e0d000ca8318d8afeb79aff4 to your computer and use it in GitHub Desktop.

Setup dependencies

# gradle/libs.versions.toml

# make sure kotlin version is 2.xx
[plugins]
compose-compiler = { id = "org.jetbrains.kotlin.plugin.compose", version.ref = "kotlin" }
// build.gradle.kts
plugins {
    alias(libs.plugins.compose.compiler) apply false
}
// app/build.gradle.kts
plugins {
    alias(libs.plugins.compose.compiler)
}

Use in fragment

@HotwireDestinationDeepLink(uri = "hotwire://fragment/hello_world")
class HelloWorldFragment: HotwireFragment() {
    override fun onCreateView(
        inflater: LayoutInflater,
        container: ViewGroup?,
        savedInstanceState: Bundle?
    ): View? {
        // The layout part lets us configure the layout for this view
      val view = inflater.inflate(R.layout.fragment_hello_world, container, false)

      view.findViewById<ComposeView>(R.id.compose_view).apply {
        setContent {
          Hello()
        }
      }
      return view
    }  

    @Composable
    fun Hello() {
      Column(
        verticalArrangement = Arrangement.Center,
        horizontalAlignment = Alignment.CenterHorizontally
      ) {
        Text("Hello World!!")
      }
    }

Layout file with back nav displaying on top

The filename is fragment_hello_world.xml inside layouts

<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout
  xmlns:android="http://schemas.android.com/apk/res/android"
  xmlns:app="http://schemas.android.com/apk/res-auto"
  android:layout_width="match_parent"
  android:layout_height="match_parent"
  android:fitsSystemWindows="true">

  <com.google.android.material.appbar.AppBarLayout
    android:id="@+id/app_bar"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    app:layout_constraintEnd_toEndOf="parent"
    app:layout_constraintStart_toStartOf="parent"
    app:layout_constraintTop_toTopOf="parent">

  <com.google.android.material.appbar.MaterialToolbar
    android:id="@+id/toolbar"
    android:layout_width="match_parent"
    android:layout_height="wrap_content" />

  </com.google.android.material.appbar.AppBarLayout>

  <androidx.compose.ui.platform.ComposeView
    android:id="@+id/compose_view"
    android:layout_width="match_parent"
    android:layout_height="0dp"
    app:layout_constraintBottom_toBottomOf="parent"
    app:layout_constraintTop_toBottomOf="@+id/app_bar" />

</androidx.constraintlayout.widget.ConstraintLayout>

Why would a fucking Zameendar become an alcoholic because a whore left him?

Paro wasn't a whore.

All exes are whores.

Avash chuckles

He was a rich bengali zamendaar at a time when men like him could build their own harems and he turns into a drunk because of a bad breakup? I don't buy it.

But he loved paro. He couldn't just have someone else and be happy

Dev was happiest once he became a drunk because then he could induldge his ego hiding it in the veneer of heartbreak.

No, he turned to drinking because he was in so much pain after Paro got married because he loved her so much.

No, Devdas only loved himself.

Dude the whole story is about loving the other person! Two lovers whose lives are destroyed because they couldn't be together for life. They loved each other so much that without the other - they smiply couldn't be happy enough to live.

I think Dev would've died a drunk even if they were together.

What. How?

There are many poisons he could use. I think this time it'd be jealousy.

What do you mean?

Imagine they got married, and are together. I think at one point Dev would start getting jealous for one reason or another. Knowing Dev, do you think he'd try to sort things out calmly or lash out?

Defo lash out. He isn't the calm type.

Now, Dev's jealous - he gets into a fight with Paro. She's angry and says stupid things and goes to her "maike" or somewhere else. Angry, jealous, betrayed - where do you think Devdas will go?

Drinking?

Bingo. Drinking to drown his sorrows. To soothe his wounds.

Hmm maybe it's not such a crazy theory

Binesh shrugs

Not all men are Devdas though. There are kings who go to war and fight a demon to bring their wife back and stay together.

and then ask her "You didn't sleep with him right? right?"

The evening rigns with their laughter and the wind blows.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment