//RadioGroup中xml文件的配置
<RadioGroup
android:id="@+id/radiogroupid"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="horizontal"
>
<RadioButton
android:id="@+id/femalebutton"
android:layout_width="wr..
分类:
移动开发 时间:
2015-06-04 12:07:53
阅读次数:
132
今天了解到PopupWindows这个布局,PopupWindow这个类用来实现一个弹出框,可以使用任意布局的View作为其内容,这个弹出框是悬浮在当前activity之上的。
下面是一个实例
xml文件
android:id="@+id/ll_popup"
android:layout_width="match_parent"
...
分类:
移动开发 时间:
2015-06-03 17:46:47
阅读次数:
137
准确的说让Edittext只能输入数字有方法两种,都是通过xml属性设置
方法一:
<EditText
android:id="@+id/u_account"
android:layout_width="0dp"
android:layout_height="match_parent"
andro...
分类:
其他好文 时间:
2015-06-02 18:01:50
阅读次数:
136
项目文档结构步骤一:布局activity_guide.xml
<RelativeLayoutxmlns: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"
tools:context="co..
分类:
移动开发 时间:
2015-05-30 18:27:20
阅读次数:
152
<?xmlversion="1.0"encoding="utf-8"?><LinearLayoutxmlns:android="http://schemas.android.com/apk/res/android"android:layout_width="fill_parent"android:layout_height="fill_parent"><ImageViewandroid:layout_width="fill_parent"android:layout_height..
分类:
其他好文 时间:
2015-05-30 18:25:28
阅读次数:
157
paint的使用 <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout...
分类:
其他好文 时间:
2015-05-30 13:38:23
阅读次数:
111
我们在做APP应用时,经常要用到CheckBox控件,但是系统原有的CheckBox样式又不满足我们的需求,我们就要自定义CheckBox选中与否状态,其实就同Button一样,设置其选择与否背景即可。
布局如下:
android:id="@+id/foot_mark_cb"
android:layout_width...
分类:
其他好文 时间:
2015-05-29 23:21:33
阅读次数:
305
前言最近看到朋友制作的Android APP使用了极少的图片,但是图形却极其丰富,问了之后得知是使用shape绘制的,有很多优点。
下面是我整理的一些素材:预览下面是图片预览:代码布局文件<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_p...
分类:
移动开发 时间:
2015-05-29 13:59:35
阅读次数:
222
1.准备工作
每一个view,只是img不一样,其他都是一样的
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:la...
分类:
移动开发 时间:
2015-05-29 10:03:45
阅读次数:
129
首先准备一个删除按钮的布局,新建button.xml文件,代码如下所示:
<Button xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/btn"
android:layout_width="wrap_content"
android:layout_...
分类:
其他好文 时间:
2015-05-29 09:59:12
阅读次数:
140