zoukankan      html  css  js  c++  java
  • Android 笔记

    android模拟器的背景色设置默认为黑色

    修改 AndroidManifest.xml 文件中的
    <application android:theme="@style/AppTheme">  为:     
    <applicationandroid:theme="@android:style/Theme.Black">

    Xml  白色边灰色底圆角

    <?xml version="1.0" encoding="utf-8"?>
    <shape xmlns:android="http://schemas.android.com/apk/res/android">
    
        <solid android:color="#C8C8C8C8" />
        <!-- 背景色 -->
    
        <stroke  android:width="1dip"
            android:color="#FFFFFF" />
        <!-- 边框色 -->
           <corners  android:topLeftRadius="10dp"
             android:topRightRadius="10dp"
            android:bottomRightRadius="10dp"
            android:bottomLeftRadius="10dp"/>
        <!-- 圆角-->
    
    </shape>

    XML selector选择器 EditText获取焦点XML的选择

    <?xml version="1.0" encoding="UTF-8"?>
    <selector xmlns:android="http://schemas.android.com/apk/res/android">
        <!-- selector选择器 -->
        <item android:state_window_focused="false" android:drawable="@drawable/bg_edittext_normal" />
        <item android:state_focused="true" android:drawable="@drawable/bg_edittext_focused" />
    </selector>
  • 相关阅读:
    HDU 5059 Help him
    HDU 5058 So easy
    HDU 5056 Boring count
    HDU 5055 Bob and math problem
    HDU 5054 Alice and Bob
    HDU 5019 Revenge of GCD
    HDU 5018 Revenge of Fibonacci
    HDU 1556 Color the ball
    CodeForces 702D Road to Post Office
    CodeForces 702C Cellular Network
  • 原文地址:https://www.cnblogs.com/stuart/p/4476711.html
Copyright © 2011-2022 走看看