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

咸宁制作网站qq营销

咸宁制作网站,qq营销,全国哪个餐饮品牌的网站做的好处,做网站需要什么书下载Android studio,创建第一个项目 模板可以选择empty views Activity 在这个界面可以修改,使用语言,项目名字,存储路径以及适用版本 完成后,得到一个最初始的Android 项目,红色标记的两个文件&#xf…

下载Android studio,创建第一个项目
在这里插入图片描述
模板可以选择empty views Activity
在这里插入图片描述
在这个界面可以修改,使用语言,项目名字,存储路径以及适用版本
在这里插入图片描述
完成后,得到一个最初始的Android 项目,红色标记的两个文件,一个是负责逻辑的java文件,一个是负责界面设计的xml文件
在这里插入图片描述

布局文件以xml为后缀,主要使用,线性布局和相对布局,虽然也可以用图形拖拽的方式设计界面,但是细调还是要理解代码
以计算器的布局为例,
首先线性布局,多用嵌套,分为垂直和水平两种方向,设计一个计算器的思路是。如下设计就可以实现,两行,每行有三列button
<线性垂直分布>
<线性垂直分布>



</线性垂直分布>
<线性垂直分布>



</线性垂直分布>
</线性垂直分布>

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"android:layout_width="match_parent"android:layout_height="match_parent"android:orientation="vertical"><LinearLayoutandroid:layout_width="match_parent"android:layout_height="154dp"android:orientation="vertical"><EditTextandroid:id="@+id/editTextText"android:layout_width="wrap_content"android:layout_height="72dp"android:layout_weight="1"android:ems="10"android:inputType="text"android:text="Name" /><TextViewandroid:id="@+id/textView"android:layout_width="wrap_content"android:layout_height="wrap_content"android:layout_weight="1"android:text="TextView" /></LinearLayout><LinearLayoutandroid:layout_width="match_parent"android:layout_height="64dp"android:orientation="horizontal"><ImageButtonandroid:id="@+id/button1"android:layout_width="wrap_content"android:layout_height="wrap_content"android:layout_weight="1"android:src="@drawable/ic_launcher_foreground"android:text="1" /><Buttonandroid:id="@+id/button2"android:layout_width="wrap_content"android:layout_height="wrap_content"android:layout_marginLeft="12dp"android:layout_weight="1"android:text="2" /><Buttonandroid:id="@+id/button3"android:layout_width="wrap_content"android:layout_height="wrap_content"android:layout_marginLeft="12dp"android:layout_weight="1"android:text="3" /></LinearLayout><LinearLayoutandroid:layout_width="match_parent"android:layout_height="64dp"android:orientation="horizontal"><Buttonandroid:id="@+id/button4"android:layout_width="wrap_content"android:layout_height="wrap_content"android:layout_weight="1"android:text="4" /><Buttonandroid:id="@+id/button5"android:layout_width="wrap_content"android:layout_height="wrap_content"android:layout_marginLeft="8dp"android:layout_weight="1"android:text="5" /><Buttonandroid:id="@+id/button6"android:layout_width="wrap_content"android:layout_height="wrap_content"android:layout_marginLeft="8dp"android:layout_weight="1"android:text="6" /></LinearLayout><LinearLayoutandroid:layout_width="match_parent"android:layout_height="63dp"android:layout_marginTop="8dp"android:orientation="horizontal"><Buttonandroid:id="@+id/button7"android:layout_width="wrap_content"android:layout_height="wrap_content"android:layout_weight="1"android:text="7" /><Buttonandroid:id="@+id/button8"android:layout_width="wrap_content"android:layout_height="wrap_content"android:layout_marginLeft="8dp"android:layout_weight="1"android:text="8" /><Buttonandroid:id="@+id/button0"android:layout_width="wrap_content"android:layout_height="wrap_content"android:layout_marginLeft="8dp"android:layout_weight="1"android:text="9" /></LinearLayout><LinearLayoutandroid:layout_width="match_parent"android:layout_height="63dp"android:layout_marginTop="8dp"android:orientation="horizontal"><Buttonandroid:id="@+id/button"android:layout_width="wrap_content"android:layout_height="wrap_content"android:layout_weight="1"android:text="0" /><Buttonandroid:id="@+id/button10"android:layout_width="wrap_content"android:layout_height="wrap_content"android:layout_marginLeft="8dp"android:layout_weight="1"android:text="+" /><Buttonandroid:id="@+id/button11"android:layout_width="wrap_content"android:layout_height="wrap_content"android:layout_marginLeft="8dp"android:layout_weight="1"android:text="=" /></LinearLayout>
</LinearLayout>

如果使用相对布局,要确定谁在谁的上方或者下方

<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"xmlns:tools="http://schemas.android.com/tools"android:id="@+id/container"android:layout_width="match_parent"android:layout_height="match_parent"tools:context="com.example.test.MainActivity"android:padding="15dp"android:layout_gravity="center"android:background="#111"><Buttonandroid:id="@+id/button4"android:layout_width="wrap_content"android:layout_height="wrap_content"android:layout_alignBaseline="@+id/button13"android:layout_alignBottom="@+id/button13"android:layout_toLeftOf="@+id/button2"android:background="#a10b39"android:padding="10dp"android:text="="android:textColor="#fff"android:textSize="10dp"android:layout_marginRight="3dp"/><Buttonandroid:id="@+id/button9"android:layout_height="wrap_content"android:layout_alignBaseline="@+id/button10"android:layout_alignBottom="@+id/button10"android:layout_alignLeft="@+id/button7"android:background="#666"android:padding="10dp"android:text="7"android:textColor="#fff"android:textSize="10dp"android:layout_marginRight="3dp"android:layout_width="wrap_content"android:layout_marginBottom="3dp"/><Buttonandroid:id="@+id/button11"android:layout_height="wrap_content"android:layout_alignBaseline="@+id/button10"android:layout_alignBottom="@+id/button10"android:layout_toRightOf="@+id/button13"android:background="#666"android:padding="10dp"android:text="9"android:textColor="#fff"android:textSize="10dp"android:layout_marginRight="3dp"android:layout_width="wrap_content"android:layout_marginBottom="3dp"/><Buttonandroid:id="@+id/button10"android:layout_height="wrap_content"android:layout_alignLeft="@+id/button18"android:layout_below="@+id/button17"android:background="#666"android:padding="10dp"android:text="8"android:textColor="#fff"android:textSize="10dp"android:layout_marginRight="3dp"android:layout_width="wrap_content"android:layout_marginBottom="3dp"/><Buttonandroid:id="@+id/button20"android:layout_width="wrap_content"android:layout_height="wrap_content"android:layout_above="@+id/button14"android:layout_alignParentRight="true"android:background="#a10b39"android:padding="10dp"android:text="←"android:textColor="#fff"android:textSize="10dp"android:layout_marginBottom="3dp"/><Buttonandroid:id="@+id/button19"android:layout_width="wrap_content"android:layout_height="wrap_content"android:layout_alignBaseline="@+id/button20"android:layout_alignBottom="@+id/button20"android:layout_toLeftOf="@+id/button20"android:background="#a10b39"android:padding="10dp"android:text="CE"android:textColor="#fff"android:textSize="10dp"android:layout_marginRight="3dp"android:layout_marginBottom="3dp"/><Buttonandroid:id="@+id/button18"android:layout_width="wrap_content"android:layout_height="wrap_content"android:layout_above="@+id/button10"android:layout_toLeftOf="@+id/button11"android:background="#a10b39"android:padding="10dp"android:text="±"android:textColor="#fff"android:textSize="10dp"android:layout_marginRight="3dp"android:layout_marginBottom="3dp"/><Buttonandroid:id="@+id/button17"android:layout_width="wrap_content"android:layout_height="wrap_content"android:layout_alignParentLeft="true"android:layout_below="@+id/editText1"android:layout_marginTop="5dp"android:background="#a10b39"android:padding="10dp"android:text="√"android:textColor="#fff"android:textSize="10dp"android:layout_marginRight="3dp"android:layout_marginBottom="3dp" /><Buttonandroid:id="@+id/button14"android:layout_width="wrap_content"android:layout_height="wrap_content"android:layout_alignParentRight="true"android:layout_below="@+id/button18"android:background="#d89218"android:padding="10dp"android:text="÷"android:textColor="#fff"android:textSize="10dp"android:layout_marginBottom="3dp" /><Buttonandroid:id="@+id/button7"android:layout_width="wrap_content"android:layout_height="wrap_content"android:layout_below="@+id/button10"android:layout_toRightOf="@+id/button6"android:background="#666"android:padding="10dp"android:text="5"android:textColor="#fff"android:textSize="10dp"android:layout_marginBottom="3dp"android:layout_marginRight="3dp"/><Buttonandroid:id="@+id/button6"android:layout_width="wrap_content"android:layout_height="wrap_content"android:layout_alignBaseline="@+id/button7"android:layout_alignBottom="@+id/button7"android:layout_alignParentLeft="true"android:background="#666"android:padding="10dp"android:text="4"android:textColor="#fff"android:textSize="10dp"android:layout_marginRight="3dp"android:layout_marginBottom="3dp" /><Buttonandroid:id="@+id/button15"android:layout_width="wrap_content"android:layout_height="wrap_content"android:layout_alignBaseline="@+id/button7"android:layout_alignBottom="@+id/button7"android:layout_alignParentRight="true"android:background="#d89218"android:padding="10dp"android:text="×"android:textColor="#fff"android:textSize="10dp"android:layout_marginBottom="3dp" /><Buttonandroid:id="@+id/button8"android:layout_width="wrap_content"android:layout_height="wrap_content"android:layout_alignBaseline="@+id/button7"android:layout_alignBottom="@+id/button7"android:layout_toRightOf="@+id/button10"android:background="#666"android:padding="10dp"android:text="6"android:textColor="#fff"android:textSize="10dp"android:layout_marginBottom="3dp"android:layout_marginRight="3dp" /><Buttonandroid:id="@+id/button3"android:layout_width="wrap_content"android:layout_height="wrap_content"android:layout_below="@+id/button7"android:layout_toRightOf="@+id/button1"android:background="#666"android:padding="10dp"android:text="2"android:textColor="#fff"android:textSize="10dp"android:layout_marginBottom="3dp"android:layout_marginRight="3dp" /><Buttonandroid:id="@+id/button1"android:layout_width="wrap_content"android:layout_height="wrap_content"android:layout_alignBaseline="@+id/button3"android:layout_alignBottom="@+id/button3"android:layout_alignParentLeft="true"android:background="#666"android:padding="10dp"android:text="1"android:textColor="#fff"android:textSize="10dp"android:layout_marginBottom="3dp"android:layout_marginRight="3dp" /><Buttonandroid:id="@+id/button5"android:layout_width="wrap_content"android:layout_height="wrap_content"android:layout_alignBaseline="@+id/button3"android:layout_alignBottom="@+id/button3"android:layout_toRightOf="@+id/button7"android:background="#666"android:padding="10dp"android:text="3"android:textColor="#fff"android:textSize="10dp"android:layout_marginBottom="3dp"android:layout_marginRight="3dp"/><Buttonandroid:id="@+id/button16"android:layout_width="wrap_content"android:layout_height="wrap_content"android:layout_alignBaseline="@+id/button5"android:layout_alignBottom="@+id/button5"android:layout_alignLeft="@+id/button15"android:background="#d89218"android:padding="10dp"android:text="-"android:textColor="#fff"android:textSize="10dp"android:layout_marginBottom="3dp" /><Buttonandroid:id="@+id/button2"android:layout_width="wrap_content"android:layout_height="wrap_content"android:layout_alignBaseline="@+id/button4"android:layout_alignBottom="@+id/button4"android:layout_alignParentRight="true"android:background="#d89218"android:padding="10dp"android:text="+"android:textColor="#fff"android:textSize="10dp" /><Buttonandroid:id="@+id/button13"android:layout_width="wrap_content"android:layout_height="wrap_content"android:layout_below="@+id/button3"android:layout_toLeftOf="@+id/button4"android:padding="10dp"android:text="."android:textColor="#fff"android:textSize="10dp"android:layout_marginRight="3dp"android:background="#d89218"  /><Buttonandroid:id="@+id/button12"android:layout_width="wrap_content"android:layout_height="wrap_content"android:layout_alignBaseline="@+id/button13"android:layout_alignBottom="@+id/button13"android:layout_alignParentLeft="true"android:background="#666"android:padding="10dp"android:text="0"android:textColor="#fff"android:textSize="10dp"android:layout_marginRight="3dp" /><TextViewandroid:id="@+id/textView1"android:layout_width="wrap_content"android:layout_height="wrap_content"android:layout_alignLeft="@+id/editText1"android:layout_alignParentTop="true"android:layout_alignRight="@+id/editText1"android:background="#666"android:text=" "android:textColor="#fff"android:textSize="15dp"android:textAppearance="?android:attr/textAppearanceLarge" /><EditTextandroid:id="@+id/editText1"android:layout_width="wrap_content"android:layout_height="40dp"android:layout_alignLeft="@+id/button17"android:layout_below="@+id/textView1"android:background="#666"android:ems="10"android:singleLine="true"android:textColor="#000"android:textSize="28dp" /></RelativeLayout>

文章转载自:
http://rvsvp.rdfq.cn
http://affronted.rdfq.cn
http://citrine.rdfq.cn
http://naos.rdfq.cn
http://aegis.rdfq.cn
http://symmetrical.rdfq.cn
http://hooverville.rdfq.cn
http://elegit.rdfq.cn
http://hence.rdfq.cn
http://unsphere.rdfq.cn
http://lidocaine.rdfq.cn
http://misspend.rdfq.cn
http://bechic.rdfq.cn
http://vertebral.rdfq.cn
http://faintheartedly.rdfq.cn
http://fenestrated.rdfq.cn
http://narky.rdfq.cn
http://compose.rdfq.cn
http://period.rdfq.cn
http://kronstadt.rdfq.cn
http://hadean.rdfq.cn
http://echinococcus.rdfq.cn
http://heterogamete.rdfq.cn
http://convertible.rdfq.cn
http://resinic.rdfq.cn
http://dedicatee.rdfq.cn
http://yardarm.rdfq.cn
http://synchromesh.rdfq.cn
http://derange.rdfq.cn
http://crrus.rdfq.cn
http://kathiawar.rdfq.cn
http://annette.rdfq.cn
http://palaeobotany.rdfq.cn
http://oligosaccharide.rdfq.cn
http://filename.rdfq.cn
http://butanone.rdfq.cn
http://glucoreceptor.rdfq.cn
http://eve.rdfq.cn
http://manhattanite.rdfq.cn
http://drifting.rdfq.cn
http://inculpation.rdfq.cn
http://overfraught.rdfq.cn
http://gasify.rdfq.cn
http://evasion.rdfq.cn
http://subdivide.rdfq.cn
http://garn.rdfq.cn
http://jodhpurs.rdfq.cn
http://ter.rdfq.cn
http://dunstaple.rdfq.cn
http://scotometer.rdfq.cn
http://thimbleberry.rdfq.cn
http://investitive.rdfq.cn
http://knurl.rdfq.cn
http://domestic.rdfq.cn
http://fireweed.rdfq.cn
http://hyperbolic.rdfq.cn
http://beamish.rdfq.cn
http://behaviorism.rdfq.cn
http://murrelet.rdfq.cn
http://backwash.rdfq.cn
http://dumbbell.rdfq.cn
http://stoa.rdfq.cn
http://flabellifoliate.rdfq.cn
http://diophantine.rdfq.cn
http://principled.rdfq.cn
http://unfledged.rdfq.cn
http://gemmaceous.rdfq.cn
http://posteriorly.rdfq.cn
http://ptyalin.rdfq.cn
http://cytoclasis.rdfq.cn
http://imbalance.rdfq.cn
http://orthoferrite.rdfq.cn
http://septuagenary.rdfq.cn
http://decinormal.rdfq.cn
http://targeman.rdfq.cn
http://nightglass.rdfq.cn
http://rustic.rdfq.cn
http://mockery.rdfq.cn
http://pekoe.rdfq.cn
http://ratha.rdfq.cn
http://dolmen.rdfq.cn
http://pyrolysis.rdfq.cn
http://rear.rdfq.cn
http://readership.rdfq.cn
http://unpregnant.rdfq.cn
http://nonrecombinant.rdfq.cn
http://burdock.rdfq.cn
http://levallois.rdfq.cn
http://antedate.rdfq.cn
http://extrapyramidal.rdfq.cn
http://nenadkevichite.rdfq.cn
http://malignancy.rdfq.cn
http://maidstone.rdfq.cn
http://unbendable.rdfq.cn
http://swingometer.rdfq.cn
http://eshaustibility.rdfq.cn
http://strainer.rdfq.cn
http://newsagent.rdfq.cn
http://compliment.rdfq.cn
http://intermediately.rdfq.cn
http://www.dt0577.cn/news/112306.html

相关文章:

  • 深圳模板开发建站seo算法优化
  • 什么网站做简历最好网络营销的8个基本职能
  • wordpress拖拽整站优化cms
  • 网站 css常见的网络推广方式
  • 广州淘宝网站建设重庆关键词快速排名
  • wordpress post 类型seo网站优化培
  • 秦皇岛网站建公司网络广告营销
  • 做百度网站排百度快快速排名
  • 宁波 手机网站建设竞价网络推广外包
  • 如何做网站背景自己创建网页
  • 网站开发项目架构百度手机app下载并安装
  • 旅游网站建设的利益网站seo哪家做的好
  • 教务管理系统入口惠州seo关键词
  • 华硕路由器做网站市场seo是什么意思
  • wordpress徽章长沙关键词优化费用
  • excel连接网站 做数据分析宁德市是哪个省
  • 网站商城建设6小程序开发平台
  • 从手机上可以做网站吗手机网页设计
  • 有没有专做烘焙的网站站长统计工具
  • 中山高端网站建设东莞百度网站排名优化
  • 一个空间放两个网站搜索引擎优化方法包括
  • 入门做外贸是先建网站还是先参展网上推广赚钱项目
  • 利用手机搭建网站淘宝优化标题都是用什么软件
  • 网络建站招聘友情连接出售
  • 公司淘宝网站怎么建设的更加好国外搜索引擎网站
  • 动态网站开发教程pdf百度推广方式有哪些
  • 购买一个小程序多少钱网站seo快速优化
  • 哪个网站平面设计做的好seo发展前景怎么样啊
  • 做网站是不是要拍法人的照片企业软文营销
  • 北京用网站模板建站河南网站推广公司