简体   繁体   中英

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).

Does anyone know how i can go about archiving this on android?

You can implement a LinearLayout for this header.

    <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 .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM