Skip to content

Instantly share code, notes, and snippets.

@mfebrianto
Last active July 23, 2020 13:20
Show Gist options
  • Save mfebrianto/693288e1910e61dc43c31747c71a1d49 to your computer and use it in GitHub Desktop.
Save mfebrianto/693288e1910e61dc43c31747c71a1d49 to your computer and use it in GitHub Desktop.
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/widget_item_wrapper"
android:layout_width="match_parent"
android:layout_height="40dp"
android:background="@drawable/background_widget_white">
<TextView
android:id="@+id/remaining_text"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerInParent="true"
android:textSize="10sp"
android:text="Hello"
android:textAlignment="center"
android:textStyle="bold"/>
<TextView
android:id="@+id/remaining_text2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerInParent="true"
android:textSize="10sp"
android:text="World"
android:layout_below="@+id/remaining_text"
android:textAlignment="center"
android:textStyle="bold"/>
</RelativeLayout>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment