96编辑器旗下产品
找图
终身
ID:0
到期时间:永久
退出登录
您的位置:首页 > 百科管理 > 详情

登陆按钮图片素材-如何设计android的登录界面

原创:找图网 2023-05-28 11:41:55
  • 谁能给我传一套网页设计按钮图,急用!

  • 站长站素材

  • 怎样制作QQ登陆界面?高分

  • 准备两张图片,大小分别为:324×47、324×167,当然也可以直接选用一张图片,大小为324×214,然后按上面的大小分为两块。

    现在,准备工作已经基本就绪,打开,然后打开文件,如下图所示,依次点击左侧树状:资源-->位图,然后找到963和16050两个位置,可以看到大小分别为324×47和324×167的图片

    导入以上两项图片素材 点击963,然后在工具栏点击"导入"按钮:

    导入刚准备好的324×47的图片;点击16050,同样通过"导入"将324×167的图片导入,这样,背景图片就搞定了,怎么样,简单吧,呵呵。同样的,在"位图"这一分支下还有箭头等图标,也可以自己制作然后导入。

    现在继续往下走,在左侧面板依次打开"对话框"-->450,

    细致地进行调整 在这里,我们将面板上各个部件的坐标位置以及是否要它显示、启用进行设置,比如,我们不希望"QQ号码"显示在面板上,只需要单击选中它,然后在右侧面板中将"可见"选框清除掉即可,这样它便不会出现在我们的面板上了,其他依此类推。而对于各个按钮、选框的位置,我们可以直接点击工具栏中"对话框编辑器"对于按钮也可以精心控制 对于按钮的背景图案,如果与背景图案实在不搭配的话,可以有两个方法来解决:

    一、 直接制作相配的图案,导入左侧面板"TABBMP"分支下16052到16055这四个位置,

    导入面板 16052:按钮按下时的图案,16055是"登录QQ"背景图案,至于其他的两个,基本上不太用管它,导入与16055基本上相同的即可。 二、 直接在背景图案上自己处理好诸如"QQ号码"、"密码"、"高级设置"等按钮的位置,然后将面板上相应的按钮修改为无文字,如下图所示:进一步地修改 如此一来,便不会出现按钮的背景图案,并且只需要调整按钮的位置即可。

    好了,我们继续,回过头来,现在点击"图标"-->320,导入图标 在上述位置将自己喜欢的图标导入,如果没有特别喜欢的,留着不作改动也可以。

    上述修改的小图标对应的便是如下图所示登录面板里的小图标将制作好的文件拷贝到QQ安装目录下,(注意,最好事先将原文件保存一下,修改一下原文件名即可),然后启动,

  • 如何设计android的登录界面

  • 在网上在到一个登录界面感觉挺不错的,给大家分享一下~先看效果图:

    这个Demo除了按钮、小猫和Logo是图片素材之外,其余的UI都是通过代码实现的。

    ?

    一、背景

    背景蓝色渐变,是通过一个xml文件来设置的。代码如下:

    background_

    <?xml version="1.0" encoding="utf-8"?>

    <shape xmlns:andro>

    <gradient

    android:startColor="#FFACDAE5"

    android:endColor="#FF72CAE1"

    android:angle="45"

    />

    </shape>

    startColor是渐变开始的颜色值,endColor是渐变结束的颜色值,angle是渐变的角度。其中#FFACDAE5中,FF是Alpha值,AC是RGB的R值,DA是RGB的G值,E5是RGB的B值,每个值在00~FF取值,即透明度、红、绿、蓝有0~255的分值,像要设置具体的颜色,可以在PS上的取色器上查看设置。

    ?

    ?

    二、圆角白框

    效果图上面的并不是白框,其实框是白色的,只是设置了透明值,也是靠一个xml文件实现的。

    background_login_

    <?xml version="1.0" encoding="UTF-8"?>

    <shape xmlns:andro>

    <solid android:color="#55FFFFFF" />

    <!-- 设置圆角

    注意: bottomRightRadius是左下角而不是右下角  bottomLeftRadius右下角-->

    <corners android:topLeftRadius="10dp" android:topRightRadius="10dp"

    android:bottomRightRadius="10dp" android:bottomLeftRadius="10dp"/>

    </shape>

    ?

    三、界面的布局

    界面的布局挺简单的,就直接贴代码啦~

    <?xml version="1.0" encoding="utf-8"?>

    <LinearLayout

    xmlns:andro

    android:orientation="vertical"

    android:layout_width="fill_parent"

    android:layout_height="fill_parent"

    android:background="@drawable/background_login">

    <!-- padding 内边距   layout_margin 外边距

    android:layout_alignParentTop 布局的位置是否处于顶部 -->

    <RelativeLayout

    android:

    android:layout_width="fill_parent"

    android:layout_height="wrap_content"

    android:padding="15dip"

    android:layout_margin="15dip"

    android:background="@drawable/background_login_div_bg" >

    <!-- 账号 -->

    <TextView

    android:

    android:layout_width="wrap_content"

    android:layout_height="wrap_content"

    android:layout_alignParentTop="true"

    android:layout_marginTop="5dp"

    android:text="@string/login_label_username"

    />

    <EditText

    android:

    android:layout_width="fill_parent"

    android:layout_height="wrap_content"

    android:hint="@string/login_username_hint"

    android:layout_below="@id/login_user_input"

    android:singleLine="true"

    android:inputType="text"/>

    <!-- 密码 text -->

    <TextView

    android:

    android:layout_width="wrap_content"

    android:layout_height="wrap_content"

    android:layout_below="@id/username_edit"

    android:layout_marginTop="3dp"

    android:text="@string/login_label_password"

    />

    <EditText

    android:

    android:layout_width="fill_parent"

    android:layout_height="wrap_content"

    android:layout_below="@id/login_password_input"

    android:password="true"

    android:singleLine="true"

    android:inputType="textPassword" />

    <!-- 登录button -->

    <Button

    android:

    android:layout_width="wrap_content"

    android:layout_height="wrap_content"

    android:layout_below="@id/password_edit"

    android:layout_alignRight="@id/password_edit"

    android:text="@string/login_label_signin"

    android:background="@drawable/blue_button" />

    </RelativeLayout>

    <RelativeLayout

    android:layout_width="fill_parent"

    android:layout_height="wrap_content" >

    <TextView  android:

    android:text="@string/login_register_link"

    android:layout_width="wrap_content"

    android:layout_height="wrap_content"

    android:layout_marginLeft="15dp"

    android:textColor="#888"

    android:textColorLink="#FF0066CC" />

    <ImageView android:

    android:src="@drawable/cat"

    android:layout_width="wrap_content"

    android:layout_height="wrap_content"

    android:layout_alignParentRight="true"

    android:layout_alignParentBottom="true"

    android:layout_marginRight="25dp"

    android:layout_marginLeft="10dp"

    android:layout_marginBottom="25dp" />

    <ImageView android:src="@drawable/logo"

    android:layout_width="wrap_content"

    android:layout_height="wrap_content"

    android:layout_toLeftOf="@id/miniTwitter_logo"

    android:layout_alignBottom="@id/miniTwitter_logo"

    android:paddingBottom="8dp"/>

    </RelativeLayout>

    </LinearLayout>

    最新文章 更多
    最新素材 更多
    公司介绍 网站地图 图片资讯
    Copyright © 2010-2022 山东找图网络科技有限公司  鲁ICP备18007836号-3  邮箱:15653358549@163.com