学习 android studio 知识点

1、使用TextInputLayout创建一个登陆界面
http://www.jcodecraeer.com/a/basictutorial/2015/0821/3338.html
<android.support.design.widget.TextInputLayout
    android:layout_height="wrap_content"
    android:layout_width="match_parent">
    <EditText
        android:layout_width="match_parent"
        android:layout_height="wrap_content"/>

</android.support.design.widget.TextInputLayout>

 android:layout_height="wrap_content"
 android:layout_width="match_parent"
http://blog.csdn.net/zwj540469505/article/details/11639385

match_parent和fill_parent是一个意思  
fill_parent设置一个顶部布局或控件强制性让它布满整个屏幕。
wrap_content布局指根据视图内部内容自动扩展以适应其大小。
http://blog.csdn.net/Biegral/article/details/46373219

设置页面颜色风格
http://www.aoaoyi.com/archives/623.html



http://blog.csdn.net/ljw124213/article/details/52743486

1在res/values/styles下设置

<!-- 没有Actionbar-->
<style name="AppTheme.NoActionBar">
    <item name="windowNoTitle">true</item>
    <item name="windowActionBar">false</item>
</style>
2 在配置文件下 AndroidManifest.xml  增加红色部分

<activity
    android:name=".View.LoginActivity"
    android:theme="@style/AppTheme.NoActionBar" >
    <intent-filter>
        <action android:name="android.intent.action.MAIN"/>

        <category android:name="android.intent.category.LAUNCHER"/>
    </intent-filter>

</activity>


  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值