FrameLayout Layout

FrameLayout It's the simplest of the five layouts .FrameLayout The elements in the layout overlap according to the order . utilize FrameLayout Characteristics of overlapping layout elements , We can generally hide and display some layers , And the ability to place another small icon on an image .

Look at the code :

<?xml version="1.0" encoding="utf-8"?>
<FrameLayout xmlns:android=""
android:layout_height="fill_parent" > <!-- Base map --> <LinearLayout
android:orientation="vertical" > <ImageView
android:src="@drawable/test1" />
</LinearLayout> <!-- This view will overlay on the top of the graph above --> <LinearLayout
android:orientation="vertical" > <ImageView
android:src="@drawable/ic_launcher" /> </LinearLayout> <!-- Invisible view -->
android:src="@drawable/jhs_button1_h4" /> </FrameLayout>

effect : The first picture is at the bottom , The second picture is above , The third picture is gone Hide the .

Android Development 24:FrameLayout More articles on layout

  1. Android Development 06: Layout - Linear layout LinearLayout

    LinearLayout Organize views into rows or columns . Subviews can be arranged vertically or horizontally . Linear layout is a very common layout . Look at an example of layout : <LinearLayout xmlns:android=& ...

  2. Android app Development -05-Android xml Layout details

    Android app Development -05-Android xml Layout details Although there is Ink knife , Mohist These graphical development tools do Android Interface design , But we can't do without learning to be Android native app, Study xml Layout is still necessary ...

  3. .Net Programmers learn Android development quickly - Layout and click event writing

    Focus on today's headlines - Be a siege lion of the whole stack , Learning code also requires reading , Love the whole stack , Love life more . Provide technical and life guidance for programmers . This series of courses Committed to veteran programmers can quickly get started learning Android Development . Systematically and comprehensively from a .Net Step by step from the perspective of programmers ...

  4. Android Development : Preliminary understanding of the layout file layout

    After understanding the directory structure of the project , After the role of the main document . After understanding the definition and use of each constant file , The next big play must be the layout file layout. Sure enough , About online “ Android layout file layout” Various introductions of . analysis . In depth analysis , And so on ...

  5. Android Development _ Learn more ViewPager Control

    One . summary ViewPager yes android Expansion pack, v4 package ( Class in , This class allows users to switch the current view. ViewPager characteristic : ...

  6. Learn Android Development [4] - Use implicit Intent Start SMS 、 Contacts 、 Camera applications

    Learn about Android development in the last article [3] - Use RecyclerView In the display list, I learned that when displaying the list RecyclerView Use , This record is how to use implicit Intent Call the functions of other applications , Like texting . ...

  7. Android Development Notes —— About open source projects SlidingMenu Introduction to the use of ( Imitation QQ5.0 Sideslip menu )

    I remember writing about this sideslip effect at the end of last year , At that time, it was using custom HorizontalScrollView To achieve , The effect is as follows : Interested friends can see this document < Android Development Notes —— Customize HorizontalScro ...

  8. Android Development Notes ——Fragment+FragmentTabHost Components ( Realize the bottom menu of sina Weibo )

    I remember writing about it before 2 This article is about the implementation of the bottom menu , Because it's out of date TabHost class , Although it can also achieve the effect we want , But as learning , Still need to know about this new class FragmentTabHost Before 2 Links to articles : Ann ...

  9. Android Development Notes ——TabHost Components ( Two )( Realize bottom menu navigation )

    The above article < Android Development Review Notes ——TabHost Components ( One )( Realize bottom menu navigation )> Using customization is mentioned in View(ImageView+TextView) To set the style of a bottom menu Here's a more spiritual one ...

Random recommendation

  1. font-size:100% What's the role

    h1,h2,h3,h4,h5,h6 {font-size:100%;font-weight:normal;} input,select,textarea,samp {font-size:100%;} ...

  2. IIS Express Allow external access ( External debugging )

    Visual Studio coordination IIS Express by Web Development provides powerful debugging capabilities , In this paper, IIS Express How to access other devices in LAN in debug mode , For testing . 1. open IIS Expr ...

  3. BigDecimal Tool class processing precision calculation

    /** * Created by My_coder on 2017-07-27. * Addition, subtraction, multiplication and division calculation tool class */ public class BigDecimalUtil { private BigDec ...

  4. To survive in the cracks - In the world of nothing php Virtual host environment using smtp Send E-mail ( Two )

    To survive in the cracks Preface : In the last essay , With 163 Personal email as the sending email address , When the email address is QQ In the mailbox , It's very likely to be thrown directly into the mail bin , To solve this problem , Apply for registration of enterprise email , Can reduce the number of emails sent as spam ...

  5. FPM Four : use OVP Do the query and jump to the details

    The previous query UIBB To configure , It can be reused directly here , Of the query feeder class It's automatically reused . 1. For inquiry feeder class Add interface , Continue to inherit form The interface of . 2. Implement each method one by one , Even if it doesn't work ...

  6. python Universal decorator , Decorator with parameters ,

    # Use decorators to decorate functions with return values # def func(functionName): # print('---func-1----') # def func_in(): # print(" ...

  7. DC3 Find suffix array board

    #include<bits/stdc++.h> #define LL long long #define fi first #define se second #define mk mak ...

  8. error: cannot lock ref &#39;refs/remotes/origin/master&#39;: unable to resolve reference &#39;refs/remotes/origin/master&#39;: reference broken...

    Previously, I added a branch to my project , And then I did something , For example, synchronize the local branches to the remote warehouse , Then branch merge is done in the remote warehouse , as well as Pull request Operation, etc. , later , In the local warehouse git fetc ...

  9. AFNetworking Simple use

    AFNetworking Download address : AFNetworking Is very simple to use , Create a class , Call a method to achieve ...

  10. Django introduction ( Two )

    This section mainly introduces django Medium model,template Templates . model yes django Self contained orm frame , Now let's build a blog website , Let's see how it's used . 1. New application blog python man ...