Skip to content

Instantly share code, notes, and snippets.

@boldijar
Created November 8, 2016 22:10
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 boldijar/4085a53962a9be64bdd3fa3793be6f39 to your computer and use it in GitHub Desktop.
Save boldijar/4085a53962a9be64bdd3fa3793be6f39 to your computer and use it in GitHub Desktop.
<LinearLayout
android:id="@+id/my_layout"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
<LinearLayout
android:id="@+id/my_normal_layout"
android:orientation="horizontal"
android:gravity="end"
android:layout_width="0dp"
android:layout_height="wrap_content">
<TextView
android:id="@+id/my_time"
android:textSize="10sp"
android:layout_marginRight="5dp"
android:layout_gravity="bottom"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="오후 15:15"/>
<View
android:layout_height="0dp"
android:layout_width="0dp"
android:layout_weight="0"
/>
<TextView
android:textAlignment="center"
android:layout_marginTop="5dp"
android:layout_marginRight="5dp"
android:maxWidth="200dp"
android:textSize="14sp"
android:lineSpacingMultiplier="1.2"
android:gravity="center_vertical"
android:paddingLeft="10dp"
android:paddingRight="15dp"
android:paddingTop="8dp"
android:paddingBottom="8dp"
android:background="@drawable/bubble_my"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textColor="#000000"
android:text="this is Test"
android:id="@+id/my_normal_text" />
</LinearLayout>
</LinearLayout>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment