• 团队项目-第二阶段冲刺-4


    一、说在前面

    1、今天任务:写意见反馈界面(1h)

    2、明天任务:完善热搜界面(预计2h)

    3、遇到问题:NO

    二、效果

      三、代码

    1、SugActivity.java

    package com.me.news_2;
    
    import androidx.appcompat.app.AppCompatActivity;
    
    import android.os.Bundle;
    
    public class SugActivity extends AppCompatActivity {
    
        @Override
        protected void onCreate(Bundle savedInstanceState) {
            super.onCreate(savedInstanceState);
            setContentView(R.layout.activity_sug);
        }
    }
    View Code

     2、activity_sug.xml

    <?xml version="1.0" encoding="utf-8"?>
    <LinearLayout
        xmlns:android="http://schemas.android.com/apk/res/android"
        android:orientation="vertical"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:background="#ffffff">
        <TextView
            android:text="用户反馈"
            android:layout_width="fill_parent"
            android:layout_height="40dip"
            android:textColor="#111111"
            android:fontFamily="sans-serif-normal"
            android:gravity="center"
            android:textSize="20sp"/>
        <LinearLayout android:orientation="vertical"
            android:layout_width="fill_parent"
            android:layout_height="fill_parent"
            android:paddingLeft="10dp"
            android:paddingRight="10dp">
            <TextView android:id="@+id/feedback_title"
                android:layout_width="fill_parent"
                android:layout_height="wrap_content"
                android:textSize="24dp"
                android:textColor="#0C0C0B"
                android:gravity="center"
                android:layout_marginTop="10dp"
                android:layout_marginBottom="10dp"
                android:text="欢迎您提出宝贵的意见和建议。">
            </TextView>
            <LinearLayout android:orientation="horizontal"
                android:layout_width="fill_parent"
                android:layout_height="wrap_content"
                android:layout_marginTop="10dp" >
                <Spinner android:id="@+id/feedback_type_spinner"
                    android:layout_width="wrap_content"
                    android:layout_height="50dp"
                    android:layout_weight="1"
                    android:layout_margin="5dp"
                    android:focusable="true"
                    android:entries="@array/feedback_type"/>
            </LinearLayout>
            <LinearLayout android:layout_width="match_parent"
                android:layout_height="match_parent"
                android:orientation="vertical">
                <EditText android:id="@+id/feedback_content"
                    android:layout_width="match_parent"
                    android:layout_height="200dp"
                    android:maxEms="10"
                    android:minEms="10"
                    android:hint="  请输入您的反馈意见(字数500以内)"
                    android:padding="5dp"
                    android:gravity="top"
                    android:layout_margin="5dp"
                    android:background="@drawable/edit_bg" />
                <ImageView
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:src="@drawable/sctp"
                    android:layout_margin="5dp"/>
                <LinearLayout
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content"
                    android:orientation="horizontal">
                    <TextView
                        android:text="联系方式:"
                        android:textSize="21dp"
                        android:layout_width="110dp"
                        android:textColor="#010101"
                        android:layout_height="50dp"
                        android:layout_margin="5dp"/>
                    <EditText
                        android:layout_width="260dp"
                        android:layout_height="50dp"
                        android:layout_margin="5dp"
                        android:hint="QQ、邮箱、手机"
                        android:background="@drawable/edit_bg_2"/>
    
                </LinearLayout>
    
                <Button
                    android:id="@+id/feedback_submit"
                    android:layout_width="fill_parent"
                    android:layout_height="50dp"
                    android:layout_gravity="center_horizontal"
                    android:layout_marginBottom="215dp"
                    android:layout_margin="5dp"
                    android:background="#E44141"
                    android:text="提交反馈"
                    android:textColor="#ffffff"
                    android:textSize="20dp" />
            </LinearLayout>
        </LinearLayout>
    </LinearLayout>
    View Code
  • 相关阅读:
    设置导航栏标题颜色及字体大小
    FMDB的简单实用
    iPhone越狱
    P1122 最大子树和
    UVA11090 Going in Cycle!!
    P1156 垃圾陷阱
    P1325 雷达安装
    P1038 神经网络
    P2922 [USACO08DEC]秘密消息Secret Message
    P2292 [HNOI2004]L语言
  • 原文地址:https://www.cnblogs.com/wyhqj/p/12894500.html
Copyright © 2020-2023  润新知