zoukankan      html  css  js  c++  java
  • android 简单的控件前端代码

    1. /Hello_word/res/layout/activity_main.xml

    Graphical  Layout/activity_fullsreen.xml(layout/) 代码与设置界面互换!

        <TextView

            android:id="@+id/textView1"

            android:layout_width="wrap_content"

            android:layout_height="wrap_content"

            android:text="@string/hello_world" />

     

        <Button

            android:id="@+id/button1"

            android:layout_width="wrap_content"

            android:layout_height="wrap_content"

            android:layout_below="@+id/textView1"

            android:layout_centerHorizontal="true"

            android:layout_marginTop="145dp"

            android:text="Button" />

    ---------------------------------------------------------------------------------------------------------------

        <TextView

            android:id="@+id/textView1"

            android:layout_width="wrap_content"

            android:layout_height="wrap_content"

            android:text="@string/hello_world" />

     

        <Button

            android:id="@+id/button1"

            android:layout_width="wrap_content"

            android:layout_height="wrap_content"

            android:layout_below="@+id/textView1"

            android:layout_centerHorizontal="true"

            android:layout_marginTop="145dp"

            android:text="你知道的" />

    <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"

        xmlns:tools="http://schemas.android.com/tools"

        android:layout_width="match_parent"

        android:layout_height="match_parent"

        android:paddingBottom="@dimen/activity_vertical_margin"

        android:paddingLeft="@dimen/activity_horizontal_margin"

        android:paddingRight="@dimen/activity_horizontal_margin"

        android:paddingTop="@dimen/activity_vertical_margin"

        tools:context="com.example.test1.MainActivity" >

     

        <TextView

            android:id="@+id/textView1"

            android:layout_width="wrap_content"

            android:layout_height="wrap_content"

            android:text="@string/hello_world" />

     

        <Button

            android:id="@+id/button1"

            android:layout_width="wrap_content"

            android:layout_height="wrap_content"

            android:layout_alignParentBottom="true"

            android:layout_centerHorizontal="true"

            android:layout_marginBottom="168dp"

            android:hint="确定功能提示"

            android:text="确定"

            android:textStyle="bold" />

     

        <TextView

            android:id="@+id/textView2"

            android:layout_width="wrap_content"

            android:layout_height="wrap_content"

            android:layout_alignLeft="@+id/editText1"

            android:layout_alignParentLeft="true"

            android:layout_alignParentRight="true"

            android:layout_alignRight="@+id/button1"

            android:layout_below="@+id/textView1"

            android:layout_marginTop="59dp"

            android:text="只读文本"

            android:textSize="15pt" 

            android:textColor="#0092c7" />

     

        <EditText

            android:id="@+id/editText1"

            android:layout_width="wrap_content"

            android:layout_height="wrap_content"

            android:layout_above="@+id/button1"

            android:layout_centerHorizontal="true"

            android:layout_marginBottom="55dp"

            android:ems="10"

            android:hint="删除完成后显示,提示功能"

            android:text="文本框测试" >

     

            <requestFocus />

        </EditText>

     

    </RelativeLayout>

    ______________________________________________________________________

  • 相关阅读:
    关于unbox.any castclass ldobj
    SQL 语句 之 增删改查 (一)
    .NET(C#):使用SmtpClient发送带有图片和附件的电子邮件
    Ext.Net 1.2.0_演示 Ext.Net+QRCode 封装条形码控件
    局域网共享打印机(不需要密码)
    Windows 2003单用户单会话登录远程桌面
    不过如此
    CellMerge
    Windows Server 2008服务器支持iso文件下载的方法
    SQL2008 Express 无法打开备份设备 '‘xxxxx'。出现操作系统错误 5(拒绝访问。)。BACKUP DATABASE 正在异常终止。
  • 原文地址:https://www.cnblogs.com/hutie1980/p/4451559.html
Copyright © 2011-2022 走看看