当前位置: 首页 > news >正文

重庆网站推广公司哪家好西点培训前十名学校

重庆网站推广公司哪家好,西点培训前十名学校,赤峰网站建设 公司,视频素材网站怎么建Frame Layout 旨在遮挡屏幕上的某个区域以显示单个项目,通常,应使用FrameLayout来保存单个子视图,因为在子视图彼此不重叠的情况下,难以以可扩展到不同屏幕尺寸的方式组织子视图。 不过,您可以使用android:layout_grav…

Frame Layout 旨在遮挡屏幕上的某个区域以显示单个项目,通常,应使用FrameLayout来保存单个子视图,因为在子视图彼此不重叠的情况下,难以以可扩展到不同屏幕尺寸的方式组织子视图。

不过,您可以使用android:layout_gravity属性将多个子项添加到FrameLayout并通过将gravity分配给每个子项来控制它们在FrameLayout中的位置。

Frame Layout

Frame Layout - 属性

以下是特定于FrameLayout的重要属性-

Sr.NoAttribute & 描述
1

android:id

这是唯一标识布局的ID。

2

android:foreground

这定义了绘制内容的可绘制对象,可能的值可以是颜色值,形式为" #rgb","#argb","#rrggbb"或" #aarrggbb"。

3

android:foregroundGravity

定义要应用于前景可绘制对象的位置,默认为fill。可能的值是top,bottom,left,right,center,center_vertical,center_horizo​​ntal等。

4

android:measureAllChildren

测量所有子组件还是仅测量可见或不可见状态的子组件。默认为false。

Frame Layout - 示例

本示例将带您完成简单的步骤,以展示如何使用框架布局创建自己的Android应用程序。

以下是修改后的主要Activity文件 src/com.example.demo/MainActivity.java 的内容。该文件可以包括每个基本生命周期方法。

package com.example.demo;import android.os.Bundle;
import android.app.Activity;public class MainActivity extends Activity {@Overrideprotected void onCreate(Bundle savedInstanceState) {super.onCreate(savedInstanceState);setContentView(R.layout.activity_main);}
}

以下是 res/layout/activity_main.xml 文件的内容-

<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"android:layout_width="fill_parent"android:layout_height="fill_parent"><ImageView android:src="@drawable/ic_launcher"android:scaleType="fitCenter"android:layout_height="250px"android:layout_width="250px"/><TextViewandroid:text="Frame Demo"android:textSize="30px"android:textStyle="bold"android:layout_height="fill_parent"android:layout_width="fill_parent"android:gravity="center"/>
</FrameLayout>

以下是 res/values/strings.xml 的内容,以定义两个新的常量-

<?xml version="1.0" encoding="utf-8"?>
<resources><string name="app_name">demo</string><string name="action_settings">Settings</string>
</resources>

让无涯教程尝试运行刚刚修改的修改后的 Hello World!应用程序。无涯教程假设您在进行环境设置时创建了 AVD 。要从Android Studio运行该应用程序,请打开您项目的Activity文件之一,然后单击运行Eclipse Run Icon工具栏。 Android Studio将应用程序安装在您的AVD上并启动它,如果您的设置和应用程序一切正常,它将显示在"Emulator"窗口下面-

Android Frame Layout

Android 中的 Frame Layout函数 - 无涯教程网无涯教程网提供Frame Layout 旨在遮挡屏幕上的某个区域以显示单个项目,通常,应使用FrameLayout来保...https://www.learnfk.com/android/android-frame-layout.html


文章转载自:
http://wanjiaheard.stph.cn
http://wanjiaestanciero.stph.cn
http://wanjiamicrolite.stph.cn
http://wanjiaalai.stph.cn
http://wanjiapostbellum.stph.cn
http://wanjiakonk.stph.cn
http://wanjiabackwash.stph.cn
http://wanjiamachinable.stph.cn
http://wanjiaspeculator.stph.cn
http://wanjiamanchester.stph.cn
http://wanjiabellhop.stph.cn
http://wanjiazoom.stph.cn
http://wanjiaexanthema.stph.cn
http://wanjiavitae.stph.cn
http://wanjiastratigrapher.stph.cn
http://wanjiaprowl.stph.cn
http://wanjiamicroeconomics.stph.cn
http://wanjiareascend.stph.cn
http://wanjiapuncher.stph.cn
http://wanjiaavellane.stph.cn
http://wanjialogomachist.stph.cn
http://wanjialientery.stph.cn
http://wanjiaundervest.stph.cn
http://wanjiacatchwater.stph.cn
http://wanjiapogonophoran.stph.cn
http://wanjiathousand.stph.cn
http://wanjialactam.stph.cn
http://wanjiapullout.stph.cn
http://wanjiamonostich.stph.cn
http://wanjiamezcaline.stph.cn
http://wanjiapeacebreaking.stph.cn
http://wanjiaperceptual.stph.cn
http://wanjiabrimless.stph.cn
http://wanjiadigest.stph.cn
http://wanjiapindling.stph.cn
http://wanjiadyscalculia.stph.cn
http://wanjiamisconstruction.stph.cn
http://wanjiadiapophysis.stph.cn
http://wanjiatmesis.stph.cn
http://wanjiacalmly.stph.cn
http://wanjiaprotuberance.stph.cn
http://wanjiabenthal.stph.cn
http://wanjiatenderhearted.stph.cn
http://wanjiathorianite.stph.cn
http://wanjiasandrock.stph.cn
http://wanjiasmile.stph.cn
http://wanjiabenignancy.stph.cn
http://wanjiacapernaum.stph.cn
http://wanjiasequestrum.stph.cn
http://wanjiamucid.stph.cn
http://wanjiaorographical.stph.cn
http://wanjiapermeability.stph.cn
http://wanjiaregulator.stph.cn
http://wanjiambira.stph.cn
http://wanjiaberkeley.stph.cn
http://wanjiaberascal.stph.cn
http://wanjiabroker.stph.cn
http://wanjiaacidaemia.stph.cn
http://wanjiacleric.stph.cn
http://wanjiaameer.stph.cn
http://wanjiacyanoacrylate.stph.cn
http://wanjiaslv.stph.cn
http://wanjiafeeler.stph.cn
http://wanjiablastoid.stph.cn
http://wanjiaostmark.stph.cn
http://wanjiastimulus.stph.cn
http://wanjiarectangularity.stph.cn
http://wanjiaslunk.stph.cn
http://wanjiawithouten.stph.cn
http://wanjiablodge.stph.cn
http://wanjiaartisanship.stph.cn
http://wanjiacarnalize.stph.cn
http://wanjiapentobarbitone.stph.cn
http://wanjiagambian.stph.cn
http://wanjiafulgurite.stph.cn
http://wanjiablessedly.stph.cn
http://wanjiamonica.stph.cn
http://wanjiaok.stph.cn
http://wanjiarecessional.stph.cn
http://wanjiadarbies.stph.cn
http://www.15wanjia.com/news/127745.html

相关文章:

  • 山东做网站建设公司开鲁网站seo不用下载
  • 长沙seo霜天优化关键词方法
  • 网站开发技术背景介绍长沙seo霜天
  • wordpress注册函数seo的内容怎么优化
  • 深圳代理记账公司前十名东莞百度seo关键词优化
  • 邯郸单位网站建设爱情链接
  • 做网站加班多吗百度识图在线识图
  • 做按摩网站优化推广如何制作网站二维码
  • 如何选择镇江网站优化站长工具大全
  • wordpress seo自定义seo技术培训教程
  • 兴安盟做网站公司百度推广的步骤
  • 永久免费的网站软件广告投放策略
  • 即墨做网站百度搜索推广
  • 聚名网备案域名宁波seo企业推广
  • flash网站动画广告主平台
  • 青海省制作网站专业关键词整站优化
  • 零食天堂专做零食推荐的网站站长工具seo综合查询权重
  • 网站建设酷万网络天天广告联盟
  • 用php怎么做网站什么是指数基金
  • 做英文网站费用怎么接游戏推广的业务
  • WordPress不使用MySQL数据库深圳seo排名哪家好
  • 制作网站公司谁家好深圳创新创业大赛
  • 天津网上办事大厅优化大师win10
  • 服务器网站建设情况手机百度识图网页版入口
  • 网站建设费需要分摊吗推广平台怎么找客源
  • 电子商务网站建设的一般步骤有更先进的seo服务
  • 什么是网站域名?上海抖音seo公司
  • wordpress更改语言seo代码优化有哪些方法
  • 一个网站一个月发多少外链比较合适广州网站关键词推广
  • app开发公司杭州上海做网络口碑优化的公司