![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Android
chengshenshen
这个作者很懒,什么都没留下…
展开
-
Android禁止横屏竖屏切换
在Android中要让一个程序的界面始终保持一个方向,不随手机方向转动而变化的办法: 只要在AndroidManifest.xml里面配置一下就可以了。 在AndroidManifest.xml的activity(需要禁止转向的activity)配置中加入android:screenOrientation=”landscape”属性即可(landscape是横向,portrait是纵向)。例转载 2012-03-06 10:52:16 · 291 阅读 · 0 评论 -
android 怎样通过暗码启动应用程序
<application android:icon="@drawable/ic_launcher" android:label="@string/app_name" > <activity android:name=".PhoneGuide" android:label="@string/app_nam转载 2012-03-05 15:37:59 · 919 阅读 · 0 评论 -
android中EditText对输入内容进行限定
<EditText android:id="@+id/phoneNumberEditText" android:hint="请输入手机号" android:singleLine="true" android:layout_width="fill_parent" android:layout_height="wrap_转载 2012-03-26 14:22:48 · 389 阅读 · 0 评论