English 中文(简体)
如何做到这一点 我添加如下文字:像脉冲和roid一样的图像。
原标题:How Can I add text on the top of image like pulse in android

我想重新注入像我和roid的灵感。 我想知道,我怎么能够把透明的文本放在像脉冲这样的形象上,也能够如何在阅读故事时创造像脉冲一样的二次屏幕。 在这一屏幕上,这一自下而上的挑选要素如何自动出现和隐藏,在点击时,究竟是完全改变活动还是只是改动案文?

摘录如下我提到的两份《国际调查》。

“entergraph

这种底线航行是如何躲藏的?

“entergraph

Thanks pranay

最佳回答

User RelativeLayout. Here is an example which places a TextView on Top of an ImageView and centers the text on the image.

<RelativeLayout
    android:layout_width="fill_parent"
    android:layout_height="wrap_content">
    <ImageView
        android:layout_width="wrap_content"
        android:id="@+id/MyImage"
        android:adjustViewBounds="true"
        android:layout_height="wrap_content"/>
    <TextView
        android:id="@+id/TextOnImage"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_centerVertical="true"
        android:layout_centerHorizontal="true"/>
</RelativeLayout>
问题回答

相对应会解决你的问题,因为它使你能够独立地确定每个儿童群体的地位。 公正使用差值和婚礼,以调整你想要的具体布局。

You should use Relative layout





相关问题
How to start to create an application GUI using C#?

HI! I am new to C# and plan to use it for my application GUI. I am trying to make my GUI similar to SPSS:http://www.spss.com/images/08/statistics_screens/ez_rfm-big.jpg Is this easy in C#? Is there ...

Automatic height of edit box

My shoes application has three items stacked on top of each other (with a stack, of course), in order: A banner An edit box Two buttons in a flow What I want to do is have the banner stay at it s ...

Search by using the keyboard in a list/grid - algorithm

I need to implement a custom search in a grid and I would like to find some user interface guidelines that explain the standard way to implement it. I mean this kind of search that is initiated by ...

UI And TcpClient Issue in vb.net

I m having some problems with a small ircbot i m writing. Basically I connect to the server using a tcpclient in a seperate class, which also runs on its own thread. I want to display the server text ...

UI Convention: Shortcut key for application exit? [closed]

Is there a convention for the shortcut keys for application exit? Some applications uses Alt+X some others use Ctrl+ X and Ctrl+Q. Applications like FF and IE doesnot assign a shortcut at all. So is ...

热门标签