首页 > 其他分享 >直播软件app开发,用户自定义头像选择

直播软件app开发,用户自定义头像选择

时间:2023-04-24 14:23:28浏览次数:33  
标签:layout 自定义 app height content 头像 wrap android id

直播软件app开发,用户自定义头像选择

1.进行主界面的布局activity_main.xml

 


<RelativeLayout xmlns: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"
    android:orientation="horizontal"
    tools:context=".MainActivity" >
 
    <ImageButton
        android:id="@+id/imageButton1"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_alignParentLeft="true"
        android:layout_alignParentTop="true"
        android:src="@drawable/ic_launcher" />
 
    <EditText
        android:id="@+id/editText1"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_alignBottom="@+id/imageButton1"
        android:layout_marginLeft="18dp"
        android:layout_toRightOf="@+id/imageButton1"
        android:ems="10" >
 
        <requestFocus />
    </EditText>
  
</RelativeLayout>

2.进行对话框中组件的布局activity_show_gallery.xml

 


<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content" >
     <ImageSwitcher
        android:id="@+id/imageSwitcher1"
        android:layout_width="fill_parent"
        android:layout_height="fill_parent"
        android:layout_alignParentLeft="true"
        android:layout_alignParentTop="true">
    </ImageSwitcher>
 
    <Gallery
        android:id="@+id/gallery1"
        android:layout_width="fill_parent"
        android:layout_height="wrap_content"
        android:layout_alignParentBottom="true"
        android:layout_alignParentLeft="true"
        android:background="?android:galleryItemBackground"
        android:gravity="center_vertical"
        android:spacing="3dp"
      
        />
 
   
 
</RelativeLayout>

 

 以上就是 直播软件app开发,用户自定义头像选择,更多内容欢迎关注之后的文章

 

标签:layout,自定义,app,height,content,头像,wrap,android,id
From: https://www.cnblogs.com/yunbaomengnan/p/17349361.html

相关文章

  • 淘宝app端商品采集接口分享 商品详情图抓取 高并发请求
    接口名称:item_get_app请求方式:POST、GET返回数据格式:json请求示例:#coding:utf-8"""Compatibleforpython2.xandpython3.xrequirement:pipinstallrequests"""from__future__importprint_functionimportrequests#请求示例url默认请求参数已经做URL编......
  • vue3 自定义组件双向绑定(modelValue)
    参考链接:https://huaweicloud.csdn.net/638edf68dacf622b8df8d152.html父组件:<Customabcref="editor"v-model="data.introduction":min-height="400"name="职能"placeholder="请编辑"/>子组件<divclass="tinymc......
  • java token自定义实现
    importcom.example.newsmanager.model.Token;importjavax.servlet.http.Cookie;importjavax.servlet.http.HttpServletRequest;importjavax.servlet.http.HttpServletResponse;publicclassTokenUtil{publicstaticfinalStringTOKEN_NAME="token&......
  • NETAPP fans270c巡检命令
    1.查看环境信息   SXTY-PS-MMSC1-STORAGE-1A>environmentstatus2.查看系统信息详情 SXTY-PS-MMSC1-STORAGE-1A>sysconfig-a SXTY-PS-MMSC1-STORAGE-1A>sysconfig-A3.查看磁盘owner信息 SXTY-PS-MMSC1-STORAGE-1A>diskshow-v4.查看raid组详情 SXTY-PS-MM......
  • 以SQLserver为例的Dapper详细讲解
    Dapper是一种轻量级的ORM(对象关系映射)工具,它提供了高效且易于使用的方式来执行数据库操作。Dapper是由StackOverflow团队开发并维护的,它的主要目标是提供比EF更快、更直接的方式访问数据库。Dapper的主要特点包括:基于纯ADO.NET而不是EF,因此性能更高支持多种数据库,如SQLServer、M......
  • Appium desktop 保存不了 Saved Capability Sets(按钮置灰)解决办法!
     有很多小伙伴遇到过Appiumdesktop中SavedCapabilitySets0为置灰状态,输入参数后没有保存成功的情况(下图) 经过我的不断研究,终于找到了一个满意的解决办法!!!1.下载方法打开链接下载此应用:https://github.com/appium/appium-inspector/releases(对应系统下载最新版本即可)......
  • 安卓app抓包
    安卓app抓包app抓包分为:http和https请求的抓包1.http请求抓包:1.需要在电脑端安装charles+激活+配置2.记住电脑的ip地址和配置charles的端口3.需要在手机端配置系统代理--》ip地址和配置charles的端口,注意:电脑和手机必须连接在同一个局域网内(同一个路由器)4.电脑上的charles就......
  • 关于在visual Studio 2022中无法找到 ASP.NET Core Web Application 或 ASP.NET Core
    在学习ASP.NETCoreWebApplication时发现无论如何都无法找到这个模板,在翻遍论坛后都没有看到解决的方法,在我下载 visualStudio2017中终于找到了但是,你会发现他只能选择.netcore2.0这肯定是不符合我们写代码的,因为他太老了,但在2022中确实找不到    这......
  • 自定义权限校验方法、基于配置的权限控制、CSRF
    自定义权限校验方法我们也可以定义自己的权限校验方法。在@PreAuthorize注解中使用我们的方法。创建expression包,在该包下创建SGEexpression类@Component("ex")publicclassSGEexpression{publicbooleanhasAuthority(Stringauthority){//获取当前用户......
  • c# 异步进阶———— 自定义 taskschedule[三]
    前言我们知道我们的taskasync和await是基于线程池进行调度的。但是async和await也就是使用了默认的task调度,让其在线程池中运行。但是线程池是榨干机器性能为本质的,但是有时候我们运行一些我们自己的需求,比如控制一下线程数(因为并不是线程数越高,就能有更高的性能),控制一......