aft*_*tab 9 android android-widget android-layout
我正在尝试创建一个带有一些文本的聊天气泡.为此我创建了三个布局,在主线性布局内部我正在使用FramLayout,我正在设置一个9补丁背景到这个Framlayout.Inside的Framlayout我正在添加一个RelativeLayout我放置我的三个textViews和一个imageView.but键入长文本它走出FramLayout边界.我不知道我做错了什么或我缺少什么.当我使用小文本它仍然适合,但与大文本它甚至从FramLayout的背景边框出去.在附件我显示我的泡沫和雅虎IM泡沫.我正在尝试创建像雅虎但有一些不同的风格.请给我你的建议.我尝试了很多与不同方法,但没有获得成功.谢谢你提前..
在这里我放置我的布局文件
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:id="@+id/linearListLayout1">
<FrameLayout
android:id="@+id/frameLayout1"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:background="@drawable/bubbleblue" >
<RelativeLayout
android:id="@+id/relativeLayout1"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:minHeight="100dp">
<TextView
android:id="@+id/chattitle"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="TextView"
android:layout_marginTop="10dp"
android:layout_marginLeft="10dp"/>
<TextView android:id="@+id/chatdate"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="TextView"
android:layout_alignParentRight="true"
android:layout_marginTop="10dp"/>
<TextView android:id="@+id/chatText"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_alignBottom="@+id/chatstatus"
android:layout_below="@+id/chattitle"
android:layout_toLeftOf="@+id/chatstatus"
android:text="TextView" />
<ImageView
android:id="@+id/chatstatus"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@drawable/add_picture"
android:layout_alignParentRight="true"
android:layout_below="@+id/chatdate"
android:minHeight="2dip"
android:maxWidth="2sp"
android:maxHeight="2sp"
android:layout_marginRight="2dp"/>
</RelativeLayout>
</FrameLayout>
Run Code Online (Sandbox Code Playgroud)