冲刺第十六天
SuggestionActivity.java
1 package com.example.lileme.ThreeFragment.MyselfDetile; 2 3 import android.os.Bundle; 4 import android.support.v7.app.AppCompatActivity; 5 import android.view.View; 6 import android.widget.ImageView; 7 import android.widget.TextView; 8 9 import com.example.lileme.R; 10 11 public class SuggestionActivity extends AppCompatActivity { 12 private ImageView mIvback; //返回键 13 private TextView mTvtitle; //标题 14 @Override 15 protected void onCreate(Bundle savedInstanceState) { 16 super.onCreate(savedInstanceState); 17 setContentView(R.layout.activity_suggestion); 18 mIvback=findViewById(R.id.iv_back); 19 mTvtitle=findViewById(R.id.tv_title); 20 Listener(); 21 } 22 public void Listener(){ 23 Onclick onclick=new Onclick(); 24 mIvback.setOnClickListener(onclick); 25 mTvtitle.setOnClickListener(onclick); 26 } 27 class Onclick implements View.OnClickListener{ 28 29 @Override 30 public void onClick(View v) { 31 switch (v.getId()){ 32 case R.id.iv_back: 33 finish(); 34 break; 35 } 36 } 37 } 38 }
activity_suggestion.xml
1 <?xml version="1.0" encoding="utf-8"?> 2 <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" 3 android:layout_width="match_parent" 4 android:layout_height="match_parent"> 5 <LinearLayout 6 android:id="@+id/ll_1" 7 android:layout_width="match_parent" 8 android:layout_height="wrap_content" 9 android:orientation="horizontal" 10 android:background="@color/indexcolor"> 11 <ImageView 12 android:id="@+id/iv_back" 13 android:layout_width="25dp" 14 android:layout_height="30dp" 15 android:background="@drawable/back" 16 android:scaleY="0.8" 17 android:layout_gravity="center_vertical" 18 android:layout_marginTop="5dp" 19 android:layout_marginBottom="5dp" 20 android:layout_marginLeft="5dp"/> 21 <LinearLayout 22 android:layout_width="match_parent" 23 android:layout_height="wrap_content" 24 android:orientation="vertical"> 25 <TextView 26 android:id="@+id/tv_title" 27 android:layout_width="wrap_content" 28 android:layout_height="wrap_content" 29 android:text="投诉建议" 30 android:textSize="20sp" 31 android:layout_gravity="center_horizontal" 32 android:layout_marginTop="5dp" 33 android:layout_marginBottom="5dp" 34 android:layout_marginRight="15dp"/> 35 </LinearLayout> 36 </LinearLayout> 37 <LinearLayout 38 android:id="@+id/emile" 39 android:layout_width="match_parent" 40 android:layout_height="wrap_content" 41 android:orientation="horizontal" 42 android:layout_below="@+id/ll_1" 43 android:gravity="center_vertical"> 44 <TextView 45 android:id="@+id/tv_email" 46 android:layout_width="wrap_content" 47 android:layout_height="50dp" 48 android:layout_below="@+id/tv_suggestion" 49 android:drawableLeft="@drawable/email" 50 android:gravity="center_vertical" 51 android:text="投诉邮箱" 52 android:textSize="17sp" 53 android:layout_marginLeft="10dp" 54 android:drawablePadding="10dp" 55 android:layout_marginRight="8dp"/> 56 <TextView 57 android:layout_width="wrap_content" 58 android:layout_height="wrap_content" 59 android:text="1403053171@qq.com" 60 android:textSize="15sp" 61 android:layout_marginLeft="80dp"/> 62 </LinearLayout> 63 64 <View 65 android:layout_width="match_parent" 66 android:layout_height="1dp" 67 android:layout_below="@id/emile" 68 android:background="#B3B3B3"/> 69 <LinearLayout 70 android:id="@+id/phone" 71 android:layout_below="@+id/emile" 72 android:layout_width="match_parent" 73 android:layout_height="wrap_content" 74 android:orientation="horizontal"> 75 <TextView 76 android:id="@+id/tv_phone" 77 android:layout_width="wrap_content" 78 android:layout_height="50dp" 79 android:layout_below="@+id/emile" 80 android:drawableLeft="@drawable/phone" 81 android:gravity="center_vertical" 82 android:text="客服电话" 83 android:textSize="17sp" 84 android:layout_marginLeft="10dp" 85 android:drawablePadding="10dp" 86 android:layout_marginRight="8dp" 87 /> 88 <TextView 89 android:layout_width="wrap_content" 90 android:layout_height="wrap_content" 91 android:textSize="15sp" 92 android:text="18203232573" 93 android:layout_marginLeft="130dp"/> 94 </LinearLayout> 95 <View 96 android:layout_width="match_parent" 97 android:layout_height="1dp" 98 android:layout_below="@id/phone" 99 android:background="#B3B3B3"/> 100 </RelativeLayout>
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· 从 HTTP 原因短语缺失研究 HTTP/2 和 HTTP/3 的设计差异
· AI与.NET技术实操系列:向量存储与相似性搜索在 .NET 中的实现
· 基于Microsoft.Extensions.AI核心库实现RAG应用
· Linux系列:如何用heaptrack跟踪.NET程序的非托管内存泄露
· 开发者必知的日志记录最佳实践
· TypeScript + Deepseek 打造卜卦网站:技术与玄学的结合
· Manus的开源复刻OpenManus初探
· AI 智能体引爆开源社区「GitHub 热点速览」
· 从HTTP原因短语缺失研究HTTP/2和HTTP/3的设计差异
· 三行代码完成国际化适配,妙~啊~