将TextView放置在框架布局中 [英] Place TextView in Frame Layout

查看:73
本文介绍了将TextView放置在框架布局中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

伙计们
我正在尝试开发android程序,我需要在FrameLayout中放置一个文本视图,但是当我执行我的应用程序时.强制关闭!这是我的代码,欢迎任何关于在FrameLayout中编写文本的想法!:

Hi Guys
I''m trying to develop android program and i need to place a text view inside FrameLayout,But When i do my app. is force closed!Here is my Code and any idea about how to write text inside FrameLayout is welcomed!:

<RelativeLayout 
        android:layout_marginTop="10dip"
	    android:layout_width="250dip"
	    android:layout_height="200dip"
	    android:layout_marginLeft="35dip">
	    <FrameLayout 
	        android:background="@drawable/rounded1"
	        android:layout_width="250dip"
	    	android:layout_height="20dip">
		
	        
	    </FrameLayout>
	    <TextView android:text="@string/Search"/>
       	<Button
	        android:id="@+id/btnNexxt"
	        android:layout_width="wrap_content"
	        android:layout_height="wrap_content"
	        android:text="@string/ContinueBtn"
	        android:gravity="bottom" 
	        android:layout_alignParentBottom="true"/>
       
       
       
   </RelativeLayout>

推荐答案

检查此文章 [ ^ ].
可能会有帮助.
Check this article[^].
It may help.


这篇关于将TextView放置在框架布局中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆