[英]How to set two icons on a single activity on android
On my MainActivity i want to place two icons as dipicted on the image above.(The Addidas logos). 在我的MainActivity上,我想放置两个图标,如上图所示(Addidas徽标)。
Does anyone know how i can go about archiving this on android? 有谁知道我如何在Android上进行存档?
You can implement a LinearLayout
for this header. 您可以为此标头实现LinearLayout
。
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="horizontal" >
//Put elements here
<ImageView/>
<TextView/>
<ImageView/>
</LinearLayout>
You can have a look about common layouts here . 您可以在此处查看常见的布局。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.