Skip to content

Instantly share code, notes, and snippets.

@Karn
Last active September 29, 2019 01:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Karn/37b7e87614685adbde0ae63724e7b0e7 to your computer and use it in GitHub Desktop.
Save Karn/37b7e87614685adbde0ae63724e7b0e7 to your computer and use it in GitHub Desktop.
A sample Activity
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
android:padding="16dp">
<ImageView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="16dp"
android:layout_marginBottom="16dp"
android:src="@drawable/ic_notify_logo" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:text="Bubbles are ready!" />
</LinearLayout>
class BubbleActivity : AppCompatActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setContentView(R.layout.activity_bubble)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment