Android之PopWindow

这篇博客主要介绍了Android中PopWindow的使用,并结合RadioButton和RadioGroup展示了如何实现单选功能。博主通过代码示例分享了布局文件和接口调用的方法,同时提到了在使用PopWindow时主动打开输入软件盘的EditText操作。
摘要由CSDN通过智能技术生成

本文只是记录一些零碎的东西

真的是受不了自己了,以为自己记录了,再次要使用时,居然没有找到!

PopWindow的使用,这里还记录了一下RadioButton和RadioGroup的组合使用,可以实现单选,直接上代码



看一下布局文件

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:id="@+id/map_order_cancle_view"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:orientation="vertical"
    android:padding="@dimen/map_bottom_text_left" >
    
    <LinearLayout
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
		android:orientation="horizontal">

        <TextView
            android:id="@+id/order_cancle"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_weight="0.5"
            android:paddingLeft="@dimen/map_bottom_text_left"
            android:textColor="@android:color/black"
            android:textSize="@dimen/map_order_cancle"
            android:text="@string/map_cancle" />

        <TextView
            android:id="@+id/order_sure"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:gravity="right"
            android:textColor="@android:color/black"
            android:layout_weight="0.5"
            android:paddingRight="@dimen/map_bottom_text_left"
            android:textSize="@dimen/map_order_cancle"
            android:text="@string/map_sure&#
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值