类似Popuwindow的实现
来源:互联网 发布:linux开机自动运行脚本 编辑:程序博客网 时间:2024/04/29 22:31
我这里用的是控制view 的Visibility 添加动画,这部分内容就不用帖代码了,主要就一个布局:
<RelativeLayout xmlns:tools="http://schemas.android.com/tools" xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" android:background="#ffffff" > <TextView android:id="@+id/textView1" android:layout_width="match_parent" android:layout_height="40dp" android:layout_alignParentLeft="true" android:layout_alignParentTop="true" android:background="#404040" /> <Button android:id="@+id/button1" android:layout_width="60dp" android:layout_height="30dp" android:layout_above="@+id/layout_parent" android:layout_alignParentLeft="true" android:layout_margin="5dp" android:background="@drawable/layout_rect_item" android:hint="--请选择--" android:textColor="#505050" android:textColorHint="#d5d5d5" android:textSize="10sp" /> <LinearLayout android:id="@+id/layout_parent" android:layout_width="200dp" android:layout_height="80dp" android:layout_alignParentLeft="true" android:layout_alignParentTop="true" android:layout_marginLeft="5dp" android:layout_marginTop="35dp" android:background="@drawable/popbg" android:orientation="horizontal" android:visibility="visible" > <RadioGroup android:id="@+id/radioGroup1" android:layout_width="match_parent" android:layout_height="match_parent" android:layout_marginTop="12dp" android:orientation="horizontal" > <RadioButton android:id="@+id/radio0" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_margin="10dp" android:button="@null" android:text="邓海林" android:textColor="#505050" android:textSize="12sp" /> <RadioButton android:id="@+id/radio1" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_margin="10dp" android:button="@null" android:text="邓超" android:textColor="#505050" android:textSize="12sp" /> <RadioButton android:id="@+id/radio2" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_margin="10dp" android:button="@null" android:text="海洋" android:textColor="#505050" android:textSize="12sp" /> </RadioGroup> </LinearLayout> <com.example.widget.SlidingWidget android:id="@+id/slidingWidget1" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignRight="@+id/layout_parent" android:layout_centerVertical="true" android:layout_marginRight="24dp" /></RelativeLayout>
如果弹出界面的数据时动态的,可以用view类addview 添加到layou ,监听事件放view
0 0
- 类似Popuwindow的实现
- popuwindow的动画实现
- 实现Popuwindow
- React Native之类似Popuwindow
- React-Native学习笔记之:Modal实现覆盖效果(类似安卓中PopuWindow)
- 简单PopuWindow实现
- 在popuwindow下的控件的点击效果实现
- PopuWindow的使用
- popuwindow的使用方法
- PopuWindow
- popuwindow
- popuwindow
- PopuWindow
- PopuWindow实现侧滑菜单
- android的popuwindow的使用
- 关于PopuWindow的弹出方式
- 自定义控件+popuwindow下拉菜单的实现(仿58下拉菜单)
- Android自定义控件+popuwindow下拉菜单的实现仿58下拉菜单
- node.js中的异步目录遍历中需要注意的问题
- “iOS 推送通知”详解:从创建到设置到运行
- 【unity 代码升华篇】委托进阶、回调函数(三)
- 搭建Java的Socket服务器
- 第8周项目1分段函数求值
- 类似Popuwindow的实现
- 谷歌董事长施密特给年轻职场人士的八条建议
- [LeetCode]Rotate List
- 第八周项目2计算小贺的薪水
- 阿里云部署Docker(5)----管理和发布您的镜像
- Android开发MVP模式解析
- git操作笔记
- 快意测试云活动9月获奖金额已发放,10月活动依然继续
- ios8CLLocationManager无法定位