How to display messages?

There is layout. How it is necessary to display messages?

<?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:paddingRight="20dip" android:layout_height="wrap_content"> <LinearLayout android:id="@+id/wrapper" android:layout_width="wrap_content" android:layout_height="wrap_content" android:orientation="vertical" android:gravity="left" android:background="@drawable/bubble_yellow"> <RelativeLayout android:id="@+id/nicknameAndTimeWrapper" android:layout_width="fill_parent" android:layout_height="wrap_content"> <TextView android:id="@+id/nick" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_gravity="left" android:textStyle="bold" android:text="Shyro:" android:layout_margin="1dip" android:paddingLeft="1dip" android:textColor="@android:color/primary_text_light" /> </RelativeLayout> <TextView android:id="@+id/message" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_gravity="left" android:layout_margin="1dip" android:paddingLeft="1dip" android:text="Hello bubbles" android:textColor="@android:color/primary_text_light" /> </LinearLayout> </LinearLayout>

Answers

  • MihaMarkicMihaMarkic SI ✭✭✭✭

    By inflating it into a view and place that view into visual tree?

Sign In or Register to comment.