zoukankan      html  css  js  c++  java
  • 信息反馈-冲刺02

    昨天我做了学生登录后勤服务的界面;学生遇到问题需要上传图片,备注具体位置以及手机号

    遇到问题:如何调用本地相机或从本地选取图片上传;

    源代码:

    <?xml version="1.0" encoding="utf-8"?>
    <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
        xmlns:tools="http://schemas.android.com/tools"
        android:id="@+id/activity_main"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        tools:context="com.example.helloworld.MainActivity"
        android:background="@drawable/fense">
        <RelativeLayout
            android:id="@+id/text11"
            android:layout_width="match_parent"
            android:layout_height="450dp"
            android:padding="100dp">
            <Button
                android:id="@+id/btn_xiangji"
                android:layout_width="150dp"
                android:layout_height="150dp"
                android:background="@drawable/xiangji">
            </Button>
        </RelativeLayout>
        <RelativeLayout
                android:layout_width="match_parent"
                android:layout_height="match_parent"
                android:layout_below="@id/text11">
                <LinearLayout
                    android:layout_width="match_parent"
                    android:layout_height="match_parent">
                        <Button
                             android:id="@+id/btn_textview1"
                             android:layout_width="180dp"
                             android:layout_height="match_parent"
                             android:text="操作说明"
                             android:background="@drawable/lvse"/>
                        <Button
                            android:id="@+id/btn_textview2"
                            android:layout_width="match_parent"
                            android:layout_height="match_parent"
                            android:text="我的服务"
                            android:layout_toRightOf="@id/btn_textview1"
                        android:background="@drawable/lvse"/>
                </LinearLayout>
        </RelativeLayout>
    </RelativeLayout>
  • 相关阅读:
    linux网络编程之socket编程(三)
    linux网络编程之socket编程(二)
    字符串转成时间戳
    xls的读写
    统计词语频率保存到xls
    信息时代的学习(对于人类)
    编码格式简介:ASCII码、ANSI、GBK、GB2312、GB18030和Unicode、UTF-8,BOM头
    ThinkPHP中:RBAC权限控制的实习步骤
    getField()和select()方法的区别
    按钮美化,变化显示效果
  • 原文地址:https://www.cnblogs.com/sengzhao666/p/10801050.html
Copyright © 2011-2022 走看看