Skip to content

Instantly share code, notes, and snippets.

@DiganVaghasiya
Created September 23, 2019 11:30
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 DiganVaghasiya/be2dd49b0162ba0253a5ff873194cae6 to your computer and use it in GitHub Desktop.
Save DiganVaghasiya/be2dd49b0162ba0253a5ff873194cae6 to your computer and use it in GitHub Desktop.
My widget design file
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_margin="4dp"
android:background="#666F70"
android:gravity="center"
android:orientation="vertical">
<TextView
android:id="@+id/txtWidget"
android:textSize="15sp"
android:layout_width="wrap_content"
android:layout_height="wrap_content"/>
<Button
android:id="@+id/btn"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Click Me!" />
</LinearLayout>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment