UI界面基本完成

master
hjw 3 years ago
parent cd4485aada
commit c079278026

@ -18,89 +18,126 @@
android:roundIcon="@mipmap/ic_launcher_round" android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="true" android:supportsRtl="true"
android:theme="@style/Theme.LeudaemiaLikeMe"> android:theme="@style/Theme.LeudaemiaLikeMe">
<activity android:name=".Activity.RegisterActivity" <activity android:name=".Activity.SplashActivity"
android:theme="@style/Theme.AppCompat.Light.NoActionBar"></activity> android:theme="@style/Theme.AppCompat.Light.NoActionBar">
<activity android:name=".Activity.AddEventActivity" <intent-filter>
android:theme="@style/Theme.AppCompat.Light.NoActionBar"/> <action android:name="android.intent.action.MAIN" />
<activity android:name=".Activity.MyInfoActivity"
android:theme="@style/Theme.AppCompat.Light.NoActionBar"></activity> <category android:name="android.intent.category.LAUNCHER" />
<activity android:name=".Activity.AddClock" </intent-filter>
android:theme="@style/Theme.AppCompat.Light.NoActionBar"/>
<activity android:name=".Activity.AlarmAlert" </activity>
android:theme="@style/Theme.AppCompat.Light.NoActionBar" /> <activity
<activity android:name=".ClockDetail" android:name=".Activity.RegisterActivity"
android:theme="@style/Theme.AppCompat.Light.NoActionBar"/> android:theme="@style/Theme.AppCompat.Light.NoActionBar" />
<activity android:name=".Activity.AnswerActivity" <activity
android:theme="@style/Theme.AppCompat.Light.NoActionBar"/> android:name=".Activity.AddEventActivity"
<activity android:name=".Activity.QuestionDetailActivity" android:theme="@style/Theme.AppCompat.Light.NoActionBar" />
android:theme="@style/Theme.AppCompat.Light.NoActionBar"/> <activity
<activity android:name=".Activity.BlogDetailActivity" android:name=".Activity.MyInfoActivity"
android:theme="@style/Theme.AppCompat.Light.NoActionBar"/> android:theme="@style/Theme.AppCompat.Light.NoActionBar" />
<activity android:name=".Activity.BlogSearchResultActivity" <activity
android:theme="@style/Theme.AppCompat.Light.NoActionBar"></activity> android:name=".Activity.AddClock"
<activity android:name=".Activity.BlogSearchActivity" android:theme="@style/Theme.AppCompat.Light.NoActionBar" />
<activity
android:name=".Activity.AlarmAlert"
android:theme="@style/Theme.AppCompat.Light.NoActionBar" />
<activity
android:name=".ClockDetail"
android:theme="@style/Theme.AppCompat.Light.NoActionBar" />
<activity
android:name=".Activity.AnswerActivity"
android:theme="@style/Theme.AppCompat.Light.NoActionBar" />
<activity
android:name=".Activity.QuestionDetailActivity"
android:theme="@style/Theme.AppCompat.Light.NoActionBar" />
<activity
android:name=".Activity.BlogDetailActivity"
android:theme="@style/Theme.AppCompat.Light.NoActionBar" />
<activity
android:name=".Activity.BlogSearchResultActivity"
android:theme="@style/Theme.AppCompat.Light.NoActionBar" />
<activity
android:name=".Activity.BlogSearchActivity"
android:theme="@style/Theme.AppCompat.Light.NoActionBar" /> android:theme="@style/Theme.AppCompat.Light.NoActionBar" />
<meta-data <meta-data
android:name="com.google.android.actions" android:name="com.google.android.actions"
android:resource="@xml/network_security_config" /> android:resource="@xml/network_security_config" />
<activity android:name=".Activity.BaseActivity" <activity
android:name=".Activity.BaseActivity"
android:theme="@style/Theme.AppCompat.Light.NoActionBar" /> android:theme="@style/Theme.AppCompat.Light.NoActionBar" />
<activity android:name=".Activity.MainActivity" <activity
android:name=".Activity.MainActivity"
android:theme="@style/Theme.AppCompat.Light.NoActionBar" />
<activity
android:name=".Activity.ChatActivity"
android:theme="@style/Theme.AppCompat.Light.NoActionBar" />
<activity
android:name=".Activity.AttentionActivity"
android:theme="@style/Theme.AppCompat.Light.NoActionBar" />
<activity
android:name=".Activity.HistoryActivity"
android:theme="@style/Theme.AppCompat.Light.NoActionBar" />
<activity
android:name=".Activity.CollectActivity"
android:theme="@style/Theme.AppCompat.Light.NoActionBar" />
<activity
android:name=".Activity.SafetyActivity"
android:theme="@style/Theme.AppCompat.Light.NoActionBar" />
<activity
android:name=".Activity.AboutActivity"
android:theme="@style/Theme.AppCompat.Light.NoActionBar" />
<activity
android:name=".Activity.MyQuestionActivity"
android:theme="@style/Theme.AppCompat.Light.NoActionBar" />
<activity
android:name=".Activity.ConcernedProblemActivity"
android:theme="@style/Theme.AppCompat.Light.NoActionBar" />
<activity
android:name=".Activity.MdctRmdActivity"
android:theme="@style/Theme.AppCompat.Light.NoActionBar" />
<activity
android:name=".Activity.SearchActivity"
android:theme="@style/Theme.AppCompat.Light.NoActionBar" />
<activity
android:name=".Activity.InfoActivity"
android:theme="@style/Theme.AppCompat.Light.NoActionBar" />
<activity
android:name=".Activity.SendInvitationActivity"
android:theme="@style/Theme.AppCompat.Light.NoActionBar" />
<activity
android:name=".Activity.GoAnswerActivity"
android:theme="@style/Theme.AppCompat.Light.NoActionBar" />
<activity
android:name=".Activity.SendQuestionActivity"
android:theme="@style/Theme.AppCompat.Light.NoActionBar" />
<activity
android:name=".Activity.APNActivity"
android:theme="@style/Theme.AppCompat.Light.NoActionBar" />
<activity
android:name=".Activity.EventActivity"
android:theme="@style/Theme.AppCompat.Light.NoActionBar" />
<activity
android:name=".Activity.NewsDetailActivity"
android:theme="@style/Theme.AppCompat.Light.NoActionBar" />
<activity
android:name=".Activity.NewsSearchResultActivity"
android:theme="@style/Theme.AppCompat.Light.NoActionBar" />
<activity
android:name=".Activity.NewsSearchActivity"
android:theme="@style/Theme.AppCompat.Light.NoActionBar" /> android:theme="@style/Theme.AppCompat.Light.NoActionBar" />
<activity android:name=".Activity.ChatActivity"
android:theme="@style/Theme.AppCompat.Light.NoActionBar" />
<activity android:name=".Activity.AttentionActivity"
android:theme="@style/Theme.AppCompat.Light.NoActionBar" />
<activity android:name=".Activity.HistoryActivity"
android:theme="@style/Theme.AppCompat.Light.NoActionBar" />
<activity android:name=".Activity.CollectActivity"
android:theme="@style/Theme.AppCompat.Light.NoActionBar" />
<activity android:name=".Activity.SafetyActivity"
android:theme="@style/Theme.AppCompat.Light.NoActionBar" />
<activity android:name=".Activity.AboutActivity"
android:theme="@style/Theme.AppCompat.Light.NoActionBar"/>
<activity android:name=".Activity.MyQuestionActivity"
android:theme="@style/Theme.AppCompat.Light.NoActionBar"/>
<activity android:name=".Activity.ConcernedProblemActivity"
android:theme="@style/Theme.AppCompat.Light.NoActionBar"/>
<activity android:name=".Activity.MdctRmdActivity"
android:theme="@style/Theme.AppCompat.Light.NoActionBar"/>
<activity android:name=".Activity.SearchActivity"
android:theme="@style/Theme.AppCompat.Light.NoActionBar"/>
<activity android:name=".Activity.InfoActivity"
android:theme="@style/Theme.AppCompat.Light.NoActionBar"/>
<activity android:name=".Activity.SendInvitationActivity"
android:theme="@style/Theme.AppCompat.Light.NoActionBar"/>
<activity android:name=".Activity.GoAnswerActivity"
android:theme="@style/Theme.AppCompat.Light.NoActionBar"/>
<activity android:name=".Activity.SendQuestionActivity"
android:theme="@style/Theme.AppCompat.Light.NoActionBar"/>
<activity android:name=".Activity.APNActivity"
android:theme="@style/Theme.AppCompat.Light.NoActionBar"/>
<activity android:name=".Activity.EventActivity"
android:theme="@style/Theme.AppCompat.Light.NoActionBar"/>
<activity android:name=".Activity.NewsDetailActivity"
android:theme="@style/Theme.AppCompat.Light.NoActionBar"/>
<activity android:name=".Activity.NewsSearchResultActivity"
android:theme="@style/Theme.AppCompat.Light.NoActionBar"/>
<activity android:name=".Activity.NewsSearchActivity"
android:theme="@style/Theme.AppCompat.Light.NoActionBar"/>
<receiver <receiver
android:name=".CallAlarm" android:name=".CallAlarm"
android:process=".remote" /> android:process=".remote" />
<activity android:name=".Activity.LoginActivity" <activity
android:name=".Activity.LoginActivity"
android:theme="@style/Theme.AppCompat.Light.NoActionBar"> android:theme="@style/Theme.AppCompat.Light.NoActionBar">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity> </activity>
</application> </application>
</manifest> </manifest>

@ -1,14 +1,25 @@
package com.example.leudaemialikeme.Activity; package com.example.leudaemialikeme.Activity;
import android.os.Bundle; import android.os.Bundle;
import android.view.View;
import android.widget.ImageView;
import com.example.leudaemialikeme.R; import com.example.leudaemialikeme.R;
public class AboutActivity extends BaseActivity { public class AboutActivity extends BaseActivity {
ImageView about_back;
@Override @Override
protected void onCreate(Bundle savedInstanceState) { protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState); super.onCreate(savedInstanceState);
setContentView(R.layout.activity_about); setContentView(R.layout.activity_about);
about_back=findViewById(R.id.about_back);
about_back.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
finish();
}
});
} }
} }

@ -1,16 +1,14 @@
package com.example.leudaemialikeme.Activity; package com.example.leudaemialikeme.Activity;
import androidx.appcompat.app.AppCompatActivity;
import android.app.Activity; import android.app.Activity;
import android.app.DatePickerDialog; import android.app.DatePickerDialog;
import android.app.TimePickerDialog; import android.app.TimePickerDialog;
import android.content.Intent; import android.content.Intent;
import android.os.Bundle; import android.os.Bundle;
import android.view.View; import android.view.View;
import android.widget.Button;
import android.widget.DatePicker; import android.widget.DatePicker;
import android.widget.ImageView; import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.TextView; import android.widget.TextView;
import android.widget.TimePicker; import android.widget.TimePicker;
import android.widget.Toast; import android.widget.Toast;
@ -40,7 +38,8 @@ public class AddEventActivity extends BaseActivity {
private String show_event_day,show_event_month,show_event_info; private String show_event_day,show_event_month,show_event_info;
private String show_event_place,show_event_doctor_name,show_event_time,show_event_create_time; private String show_event_place,show_event_doctor_name,show_event_time,show_event_create_time;
private ImageView delete,save; private ImageView delete,save;
private Button add_date,add_time; private LinearLayout add_date,add_time;
// private Button add_time;
private ImageView back; private ImageView back;
DateFormat format= DateFormat.getDateTimeInstance(); DateFormat format= DateFormat.getDateTimeInstance();

@ -1,6 +1,8 @@
package com.example.leudaemialikeme.Activity; package com.example.leudaemialikeme.Activity;
import android.os.Bundle; import android.os.Bundle;
import android.view.View;
import android.widget.ImageView;
import androidx.recyclerview.widget.LinearLayoutManager; import androidx.recyclerview.widget.LinearLayoutManager;
import androidx.recyclerview.widget.RecyclerView; import androidx.recyclerview.widget.RecyclerView;
@ -14,6 +16,7 @@ import java.util.List;
public class AttentionActivity extends BaseActivity { public class AttentionActivity extends BaseActivity {
private ImageView attention_back;
private List<Attention> attentionList = new ArrayList<>(); private List<Attention> attentionList = new ArrayList<>();
@Override @Override
@ -21,6 +24,17 @@ public class AttentionActivity extends BaseActivity {
super.onCreate(savedInstanceState); super.onCreate(savedInstanceState);
setContentView(R.layout.activity_attention); setContentView(R.layout.activity_attention);
getData();//获得数据 getData();//获得数据
attention_back=findViewById(R.id.attention_back);
attention_back.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
finish();
}
});
RecyclerView recycleView = (RecyclerView) findViewById(R.id.attentionList);//获得视图 RecyclerView recycleView = (RecyclerView) findViewById(R.id.attentionList);//获得视图
LinearLayoutManager layoutManager; LinearLayoutManager layoutManager;
layoutManager = new LinearLayoutManager(this); layoutManager = new LinearLayoutManager(this);
@ -34,6 +48,5 @@ public class AttentionActivity extends BaseActivity {
attentionList.add(attention1); attentionList.add(attention1);
Attention attention2 = new Attention(R.mipmap.img_my_person,"小白帮","管住嘴,多饮水,常保暖"); Attention attention2 = new Attention(R.mipmap.img_my_person,"小白帮","管住嘴,多饮水,常保暖");
attentionList.add(attention2); attentionList.add(attention2);
} }
} }

@ -31,7 +31,7 @@ public class BaseActivity extends AppCompatActivity {
public static Owner owner; public static Owner owner;
//服务器链接 //服务器链接
public static String SERVER_IP = "172.18.138.225"; public static String SERVER_IP = "172.30.112.86";
// 172.30.118.24 寝172.18.138.225 // 172.30.118.24 寝172.18.138.225
// static { // static {

@ -8,6 +8,7 @@ import android.widget.AdapterView;
import android.widget.ArrayAdapter; import android.widget.ArrayAdapter;
import android.widget.Button; import android.widget.Button;
import android.widget.EditText; import android.widget.EditText;
import android.widget.ImageView;
import android.widget.Spinner; import android.widget.Spinner;
import android.widget.TextView; import android.widget.TextView;
import android.widget.Toast; import android.widget.Toast;
@ -33,6 +34,7 @@ public class MyInfoActivity extends BaseActivity {
private Button commit; private Button commit;
private Spinner spinner_sex; private Spinner spinner_sex;
private String toast_content; private String toast_content;
private ImageView my_info_back;
@Override @Override
protected void onCreate(Bundle savedInstanceState) { protected void onCreate(Bundle savedInstanceState) {
@ -89,6 +91,7 @@ public class MyInfoActivity extends BaseActivity {
if(!ch_user.getSex().equals(origin_user.getSex())) if(!ch_user.getSex().equals(origin_user.getSex()))
toast_content =toast_content +"性别修改成功\n"; toast_content =toast_content +"性别修改成功\n";
origin_user=ch_user; origin_user=ch_user;
changed_user=ch_user;
runOnUiThread(new Runnable() { runOnUiThread(new Runnable() {
@Override @Override
public void run() { public void run() {
@ -107,6 +110,14 @@ public class MyInfoActivity extends BaseActivity {
} }
}); });
my_info_back.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
finish();
}
});
} }
@ -119,6 +130,7 @@ public class MyInfoActivity extends BaseActivity {
edit_phone=(EditText)findViewById(R.id.my_info_phone); edit_phone=(EditText)findViewById(R.id.my_info_phone);
spinner_sex=(Spinner)findViewById(R.id.my_info_sex); spinner_sex=(Spinner)findViewById(R.id.my_info_sex);
commit=(Button)findViewById(R.id.my_info_commit); commit=(Button)findViewById(R.id.my_info_commit);
my_info_back=(ImageView)findViewById(R.id.my_info_back);
} }
private void initData(){ private void initData(){
@ -151,4 +163,5 @@ public class MyInfoActivity extends BaseActivity {
} }
}); });
} }
} }

@ -1,14 +1,26 @@
package com.example.leudaemialikeme.Activity; package com.example.leudaemialikeme.Activity;
import android.os.Bundle; import android.os.Bundle;
import android.view.View;
import android.widget.ImageView;
import com.example.leudaemialikeme.R; import com.example.leudaemialikeme.R;
public class SafetyActivity extends BaseActivity { public class SafetyActivity extends BaseActivity {
private ImageView safety_back;
@Override @Override
protected void onCreate(Bundle savedInstanceState) { protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState); super.onCreate(savedInstanceState);
setContentView(R.layout.activity_safety); setContentView(R.layout.activity_safety);
safety_back=(ImageView)findViewById(R.id.safety_back);
safety_back.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
finish();
}
});
} }
} }

@ -13,7 +13,6 @@ import android.widget.Toast;
import com.example.leudaemialikeme.Dao.InvitationDao; import com.example.leudaemialikeme.Dao.InvitationDao;
import com.example.leudaemialikeme.R; import com.example.leudaemialikeme.R;
import com.example.leudaemialikeme.Utils.Data;
import com.example.leudaemialikeme.Utils.OkHttpUtil; import com.example.leudaemialikeme.Utils.OkHttpUtil;
import java.text.SimpleDateFormat; import java.text.SimpleDateFormat;
@ -68,7 +67,6 @@ public class SendInvitationActivity extends BaseActivity {
SimpleDateFormat sdf =new SimpleDateFormat("yyyy-MM-dd HH:mm:ss", Locale.getDefault()); SimpleDateFormat sdf =new SimpleDateFormat("yyyy-MM-dd HH:mm:ss", Locale.getDefault());
String time = sdf.format(timeCurrent); String time = sdf.format(timeCurrent);
Log.e("输入的time:", time); Log.e("输入的time:", time);
Data app = (Data)getApplication();
Map<String,String> paramMap = new HashMap<String,String>(); Map<String,String> paramMap = new HashMap<String,String>();
paramMap.put("uid",String.valueOf(BaseActivity.owner.getNetId()));//需要获取登录用户的id paramMap.put("uid",String.valueOf(BaseActivity.owner.getNetId()));//需要获取登录用户的id
paramMap.put("btype",type); paramMap.put("btype",type);
@ -80,6 +78,7 @@ public class SendInvitationActivity extends BaseActivity {
paramMap.put("bbrowse",String.valueOf(0)); paramMap.put("bbrowse",String.valueOf(0));
paramMap.put("flag",String.valueOf(0)); paramMap.put("flag",String.valueOf(0));
sendInvitationRequest(paramMap); sendInvitationRequest(paramMap);
} }
} }
}); });
@ -111,6 +110,7 @@ public class SendInvitationActivity extends BaseActivity {
if (jsonStr.contains("success")){ if (jsonStr.contains("success")){
Toast.makeText(SendInvitationActivity.this, Toast.makeText(SendInvitationActivity.this,
"提交成功",Toast.LENGTH_SHORT).show(); "提交成功",Toast.LENGTH_SHORT).show();
finish();
}else{ }else{
Toast.makeText(SendInvitationActivity.this, Toast.makeText(SendInvitationActivity.this,
"帖子提交失败,请检查您的网络状况",Toast.LENGTH_SHORT).show(); "帖子提交失败,请检查您的网络状况",Toast.LENGTH_SHORT).show();

@ -11,7 +11,6 @@ import android.widget.Toast;
import com.example.leudaemialikeme.Dao.QuestionDao; import com.example.leudaemialikeme.Dao.QuestionDao;
import com.example.leudaemialikeme.R; import com.example.leudaemialikeme.R;
import com.example.leudaemialikeme.Utils.Data;
import com.example.leudaemialikeme.Utils.OkHttpUtil; import com.example.leudaemialikeme.Utils.OkHttpUtil;
import java.text.SimpleDateFormat; import java.text.SimpleDateFormat;
@ -66,7 +65,6 @@ public class SendQuestionActivity extends BaseActivity {
String time = sdf.format(timeCurrent); String time = sdf.format(timeCurrent);
// Log.e("输入的time:", time); // Log.e("输入的time:", time);
Map<String,String> paramMap = new HashMap<String,String>(); Map<String,String> paramMap = new HashMap<String,String>();
Data app = (Data)getApplication();
paramMap.put("uid",String.valueOf(BaseActivity.owner.getNetId())); // 需要获取登陆用户的id需改 paramMap.put("uid",String.valueOf(BaseActivity.owner.getNetId())); // 需要获取登陆用户的id需改
@ -84,7 +82,6 @@ public class SendQuestionActivity extends BaseActivity {
paramMap.put("qbrowseNum",String.valueOf(0)); paramMap.put("qbrowseNum",String.valueOf(0));
paramMap.put("flag",String.valueOf(0)); paramMap.put("flag",String.valueOf(0));
sendQuestionRequest(paramMap); sendQuestionRequest(paramMap);
} }
} }
}); });
@ -120,6 +117,7 @@ public class SendQuestionActivity extends BaseActivity {
if (jsonStr.contains("success")){ if (jsonStr.contains("success")){
Toast.makeText(SendQuestionActivity.this, Toast.makeText(SendQuestionActivity.this,
"提交成功",Toast.LENGTH_SHORT).show(); "提交成功",Toast.LENGTH_SHORT).show();
finish();
}else{ }else{
Toast.makeText(SendQuestionActivity.this, Toast.makeText(SendQuestionActivity.this,
"问题提交失败,请检查您的网络状况", Toast.LENGTH_SHORT).show(); "问题提交失败,请检查您的网络状况", Toast.LENGTH_SHORT).show();

@ -0,0 +1,29 @@
package com.example.leudaemialikeme.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.os.Handler;
import android.util.Log;
import androidx.appcompat.app.AppCompatActivity;
import com.example.leudaemialikeme.R;
public class SplashActivity extends AppCompatActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_splash);
new Handler().postDelayed(new Runnable() {
@Override
public void run() {
Log.e("splash","开始跳转");
Intent mainIntent = new Intent(SplashActivity.this, LoginActivity.class);
startActivity(mainIntent);
Log.e("splash","跳转下一页面");
finish();
}
}, 1900);
}
}

@ -20,11 +20,11 @@ public class HistoryPageFragmentAdapter extends FragmentPagerAdapter {
@Override @Override
public Fragment getItem(int idx) { public Fragment getItem(int idx) {
String collectCategoryTitle = channelList[idx]; String collectCategoryTitle = channelList[idx];
if(collectCategoryTitle.equals(" 资讯 ")) if(collectCategoryTitle.equals(" 资讯 "))
{ {
return NewsHistoryFragment.newInstance(collectCategoryTitle); return NewsHistoryFragment.newInstance(collectCategoryTitle);
} }
else if(collectCategoryTitle.equals(" 问题 ")){ else if(collectCategoryTitle.equals(" 问题 ")){
return QuestionHistoryFragment.newInstance(collectCategoryTitle); return QuestionHistoryFragment.newInstance(collectCategoryTitle);
}else{ }else{
return BlogHistoryFragment.newInstance(collectCategoryTitle); return BlogHistoryFragment.newInstance(collectCategoryTitle);

@ -30,7 +30,7 @@ public class CollectFragment extends Fragment implements ViewPager.OnPageChangeL
private ViewPager viewPager; //内导航的碎片的容器 private ViewPager viewPager; //内导航的碎片的容器
private RadioGroup rgChannelCollect=null; // 内导航由单选按钮组构成 private RadioGroup rgChannelCollect=null; // 内导航由单选按钮组构成
private HorizontalScrollView hvChannelCollect=null; //单选按钮组可滚动动 private HorizontalScrollView hvChannelCollect=null; //单选按钮组可滚动动
private String[] channelList = {" 资讯 "," 帖子 ", private String[] channelList = {" 帖子 "
}; //默认的内导航栏目 }; //默认的内导航栏目
private CollectPageFragmentAdapter adapter; //viewPager 的适配器 private CollectPageFragmentAdapter adapter; //viewPager 的适配器
private TextView Name; private TextView Name;

@ -26,7 +26,7 @@ public class HistoryFragment extends Fragment implements ViewPager.OnPageChangeL
private ViewPager viewPager; //内导航的碎片的容器 private ViewPager viewPager; //内导航的碎片的容器
private RadioGroup rgChannelCollect=null; // 内导航由单选按钮组构成 private RadioGroup rgChannelCollect=null; // 内导航由单选按钮组构成
private HorizontalScrollView hvChannelCollect=null; //单选按钮组可滚动动 private HorizontalScrollView hvChannelCollect=null; //单选按钮组可滚动动
private String[] channelList = {" 资讯 "," 问题 "," 帖子 " private String[] channelList = {" 资讯 "," 问题 "," 帖子 "
}; //默认的内导航栏目 }; //默认的内导航栏目
private HistoryPageFragmentAdapter adapter; //viewPager 的适配器 private HistoryPageFragmentAdapter adapter; //viewPager 的适配器
private TextView Name; private TextView Name;

@ -66,7 +66,7 @@ public class MessageChannelFragment extends Fragment {
} else if (messageCategoryTitle.equals(" 评论 ")) { } else if (messageCategoryTitle.equals(" 评论 ")) {
view = inflater.inflate(R.layout.fragment_comment, container, false); view = inflater.inflate(R.layout.fragment_comment, container, false);
} else if (messageCategoryTitle.equals(" ")) { } else if (messageCategoryTitle.equals(" 收藏 ")) {
view = inflater.inflate(R.layout.fragment_nice, container, false); view = inflater.inflate(R.layout.fragment_nice, container, false);
} else if (messageCategoryTitle.equals(" 粉丝 ")) { } else if (messageCategoryTitle.equals(" 粉丝 ")) {
view = inflater.inflate(R.layout.fragment_fans, container, false); view = inflater.inflate(R.layout.fragment_fans, container, false);

@ -24,7 +24,7 @@ public class MessageFragment extends Fragment implements ViewPager.OnPageChangeL
private RadioGroup rgChannel=null; // 内导航由单选按钮组构成 private RadioGroup rgChannel=null; // 内导航由单选按钮组构成
private HorizontalScrollView hvChannel=null; //单选按钮组可滚动动 private HorizontalScrollView hvChannel=null; //单选按钮组可滚动动
private String[] channelList = {" 私信 "," 评论 ", private String[] channelList = {" 私信 "," 评论 ",
" "," 粉丝 "}; //默认的内导航栏目 " 收藏 "," 粉丝 "}; //默认的内导航栏目
private MessagePageFragmentAdapter adapter; //viewPager 的适配器 private MessagePageFragmentAdapter adapter; //viewPager 的适配器
public MessageFragment() { public MessageFragment() {

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

@ -0,0 +1,17 @@
<shape xmlns:android="http://schemas.android.com/apk/res/android">
<gradient
android:startColor="@color/white"
android:centerColor="@color/white"
android:endColor="@color/white"
/>
<corners
android:radius="30dp"/>
</shape>

@ -0,0 +1,17 @@
<shape xmlns:android="http://schemas.android.com/apk/res/android">
<gradient
android:startColor="#07c160"
android:centerColor="#07c160"
android:endColor="#07c160"
/>
<corners
android:radius="30dp"/>
</shape>

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 686 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.6 KiB

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
<corners android:radius="16dp" />
<solid android:color="#FFFFFF" />
</shape>

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
<corners android:radius="16dp" />
<solid android:color="@color/white" />
</shape>

Binary file not shown.

After

Width:  |  Height:  |  Size: 20 KiB

@ -10,31 +10,47 @@
<LinearLayout <LinearLayout
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:orientation="horizontal"> android:background="@color/white"
android:orientation="vertical">
<ImageView
android:layout_width="30dp"
android:layout_height="30dp"
android:layout_margin="15dp"
android:src="@mipmap/img_go_answer_return"
/>
<TextView <LinearLayout
android:id="@+id/textView13" android:layout_width="match_parent"
android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_weight="3" android:layout_marginTop="15dp"
android:textSize="16dp" android:layout_marginBottom="15dp"
android:gravity="center" android:background="@color/white"
android:layout_margin="15dp" android:orientation="horizontal">
android:text="关于我们" />
<ImageView
android:id="@+id/about_back"
android:layout_width="30dp"
android:layout_height="30dp"
android:layout_marginLeft="15dp"
android:src="@drawable/back" />
<TextView
android:id="@+id/textView13"
android:layout_width="335dp"
android:layout_height="match_parent"
android:gravity="center"
android:text="关于我们"
android:textSize="20dp" />
<ImageView
android:layout_width="30dp"
android:layout_height="30dp"
android:layout_marginRight="15dp"
android:src="@drawable/replace"
/>
</LinearLayout>
</LinearLayout> </LinearLayout>
<ImageView <ImageView
android:layout_width="90dp" android:layout_width="200dp"
android:layout_height="90dp" android:layout_height="150dp"
android:layout_gravity="center" android:layout_gravity="center"
android:layout_margin="20dp" android:layout_margin="20dp"
android:src="@drawable/rec_news3" android:src="@drawable/about_logov2"
/> />
<TextView <TextView
@ -147,23 +163,25 @@
<LinearLayout <LinearLayout
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="300dp" android:layout_height="300dp"
android:orientation="vertical"/> android:layout_marginTop="150dp"
android:orientation="vertical">
<TextView <TextView
android:id="@+id/textView49" android:id="@+id/textView49"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:textSize="16dp" android:layout_marginBottom="10dp"
android:gravity="center" android:gravity="center"
android:layout_marginBottom="10dp" android:text="小白帮落地大队项目组"
android:text="今天我们学习了吗项目组" /> android:textSize="16dp" />
<TextView <TextView
android:id="@+id/textView50" android:id="@+id/textView50"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:textSize="16dp" android:gravity="center"
android:gravity="center" android:text="Copyright@2021"
android:text="Copyright@2021" /> android:textSize="16dp" />
</LinearLayout>
</LinearLayout> </LinearLayout>

@ -4,110 +4,173 @@
xmlns:tools="http://schemas.android.com/tools" xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
android:background="@drawable/background"
android:orientation="vertical" android:orientation="vertical"
tools:context=".ClockDetail"> tools:context=".ClockDetail">
<LinearLayout <LinearLayout
android:layout_marginTop="38dp"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content"> android:layout_height="wrap_content"
<ImageView android:background="@color/white">
android:layout_width="wrap_content"
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginLeft="5dp" android:layout_marginTop="15dp"
android:id="@+id/back_list_clock" android:layout_marginBottom="15dp"
android:textSize="20sp" /> android:background="@color/white"
android:orientation="horizontal">
<ImageView
android:id="@+id/back_list_clock"
android:layout_width="30dp"
android:layout_height="30dp"
android:layout_marginLeft="15dp"
android:src="@drawable/back" />
<TextView
android:layout_width="320dp"
android:layout_height="match_parent"
android:gravity="center"
android:text="提醒设置"
android:textSize="20dp" />
<Button
android:id="@+id/save"
android:layout_width="30dp"
android:layout_height="30dp"
android:layout_marginRight="15dp"
android:background="@drawable/clock_commit" />
</LinearLayout>
</LinearLayout> </LinearLayout>
<RelativeLayout
<LinearLayout
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content"> android:layout_height="wrap_content"
android:layout_marginTop="40dp"
android:orientation="vertical">
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:orientation="horizontal">
<TextView <TextView
android:id="@+id/hour" android:id="@+id/hour"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginLeft="25dp" android:layout_gravity="center"
android:text="null" android:text="00"
android:textSize="39sp" /> android:textSize="60dp" />
<TextView <TextView
android:id="@+id/net" android:id="@+id/net"
android:layout_marginTop="5dp"
android:layout_toRightOf="@id/hour"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_gravity="center"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:text=" : " android:text=" : "
android:textSize="29dp" /> android:textSize="50dp" />
<TextView <TextView
android:layout_toRightOf="@id/net"
android:id="@+id/minute" android:id="@+id/minute"
android:layout_marginTop="7dp" android:layout_gravity="center"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:text="null" android:text="00"
android:textSize="29sp" /> android:textSize="55dp" />
</LinearLayout>
<Button <Button
android:id="@+id/set_time" android:id="@+id/set_time"
android:text="设置时间" android:text="设置时间"
android:textStyle="bold" android:textStyle="bold"
android:textColor="#fff" android:textColor=" #BEBEBE"
android:layout_alignParentRight="true" android:layout_gravity="center"
android:layout_marginRight="35dp" android:background="@drawable/button_set_clock_time"
android:background="@drawable/button_shape"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" /> android:layout_height="wrap_content" />
</RelativeLayout> </LinearLayout>
<LinearLayout <LinearLayout
android:layout_marginTop="38dp"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content"> android:layout_height="wrap_content"
<TextView android:layout_marginTop="30dp"
android:layout_width="wrap_content" android:layout_marginBottom="20dp"
android:layout_height="wrap_content" android:orientation="vertical">
android:layout_marginLeft="5dp"
android:text="药品名称"
android:textSize="20sp" />
<EditText <LinearLayout
android:id="@+id/content_name"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginLeft="15dp" android:background="@drawable/shape_corner_add_clock"
android:textSize="18dp" android:orientation="vertical">
android:textStyle="bold" />
<LinearLayout
android:layout_margin="20dp"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="5dp"
android:text="药品名称"
android:textSize="20sp" />
<EditText
android:id="@+id/content_name"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginLeft="15dp"
android:textSize="18dp"
android:background="@color/white"
android:hint="请输入药品名称"
/>
</LinearLayout>
</LinearLayout>
</LinearLayout> </LinearLayout>
<LinearLayout <LinearLayout
android:layout_marginTop="38dp"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content"> android:layout_height="wrap_content"
<TextView android:layout_marginTop="20dp"
android:layout_width="wrap_content" android:layout_marginBottom="20dp"
android:layout_height="wrap_content" android:orientation="vertical">
android:layout_marginLeft="5dp"
android:text="剂量"
android:textSize="20sp" />
<EditText <LinearLayout
android:id="@+id/content_dosage"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginLeft="15dp" android:background="@drawable/shape_corner_add_clock"
android:textSize="18dp" android:orientation="vertical">
android:textStyle="bold" />
<LinearLayout
android:layout_margin="20dp"
android:paddingLeft="5dp"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<TextView
android:layout_width="82dp"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:text="服用剂量"
android:textSize="20sp" />
<EditText
android:id="@+id/content_dosage"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginLeft="15dp"
android:textSize="18dp"
android:background="@color/white"
android:hint="请输入服用提示信息"
/>
</LinearLayout>
</LinearLayout>
</LinearLayout> </LinearLayout>
<Button
android:id="@+id/save"
android:layout_marginTop="18sp"
android:text="保存"
android:textSize="18sp"
android:textStyle="bold"
android:textColor="#fff"
android:background="@drawable/button_shape"
android:layout_gravity="center"
android:layout_margin="35dp"
android:layout_width="match_parent"
android:layout_height="wrap_content" />
</LinearLayout> </LinearLayout>

@ -4,36 +4,40 @@
xmlns:tools="http://schemas.android.com/tools" xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
android:background="@drawable/background"
android:orientation="vertical" android:orientation="vertical"
tools:context="com.example.leudaemialikeme.Activity.AddEventActivity"> tools:context="com.example.leudaemialikeme.Activity.AddEventActivity">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@color/white"
android:orientation="vertical">
<LinearLayout <LinearLayout
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="0dp" android:layout_height="wrap_content"
android:layout_weight="1" android:layout_marginTop="15dp"
android:layout_marginBottom="15dp"
android:background="@color/white"
android:orientation="horizontal"> android:orientation="horizontal">
<ImageView <ImageView
android:layout_width="30dp" android:layout_width="30dp"
android:layout_height="30dp" android:layout_height="30dp"
android:layout_margin="10dp" android:layout_marginLeft="15dp"
android:src="@drawable/back"
android:id="@+id/back_event_list" android:id="@+id/back_event_list"
android:src="@drawable/back"/> />
<TextView <TextView
android:id="@+id/textView16" android:id="@+id/textView16"
android:layout_width="wrap_content" android:layout_width="335dp"
android:layout_height="wrap_content" android:layout_height="match_parent"
android:layout_weight="1"
android:layout_margin="10dp"
android:layout_gravity="center"
android:gravity="center" android:gravity="center"
android:textSize="18dp" android:textSize="20dp"
android:text="添加大事记" /> android:text="添加大事记" />
</LinearLayout> </LinearLayout>
</LinearLayout>
<LinearLayout <LinearLayout
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="0dp" android:layout_height="0dp"
@ -42,6 +46,8 @@
<LinearLayout <LinearLayout
android:layout_width="match_parent" android:layout_width="match_parent"
android:background="@color/white"
android:layout_marginTop="10dp"
android:layout_height="0dp" android:layout_height="0dp"
android:layout_weight="1" android:layout_weight="1"
android:orientation="horizontal"> android:orientation="horizontal">
@ -50,23 +56,28 @@
android:id="@+id/textView52" android:id="@+id/textView52"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_weight="1" android:layout_marginLeft="40dp"
android:layout_marginRight="30dp"
android:layout_gravity="center"
android:textSize="18dp" android:textSize="18dp"
android:layout_margin="8dp"
android:text="事件" /> android:text="事件" />
<EditText <EditText
android:id="@+id/add_event_info" android:id="@+id/add_event_info"
android:layout_width="wrap_content" android:layout_width="319dp"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_weight="1" android:layout_gravity="center"
android:layout_marginLeft="20dp"
android:background="@color/white"
android:ems="10" android:ems="10"
android:inputType="textPersonName" android:inputType="textPersonName"
android:text="事件名" /> android:hint="请输入事件名" />
</LinearLayout> </LinearLayout>
<LinearLayout <LinearLayout
android:layout_width="match_parent" android:layout_width="match_parent"
android:background="@color/white"
android:layout_marginTop="10dp"
android:layout_height="0dp" android:layout_height="0dp"
android:layout_weight="1" android:layout_weight="1"
android:orientation="horizontal"> android:orientation="horizontal">
@ -75,23 +86,28 @@
android:id="@+id/textView53" android:id="@+id/textView53"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_weight="1" android:layout_marginLeft="40dp"
android:layout_marginRight="30dp"
android:layout_gravity="center"
android:textSize="18dp" android:textSize="18dp"
android:layout_margin="8dp"
android:text="地点" /> android:text="地点" />
<EditText <EditText
android:id="@+id/add_event_place" android:id="@+id/add_event_place"
android:layout_width="wrap_content" android:layout_width="319dp"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_weight="1" android:layout_gravity="center"
android:layout_marginLeft="20dp"
android:background="@color/white"
android:ems="10" android:ems="10"
android:inputType="textPersonName" android:inputType="textPersonName"
android:text="地点名" /> android:hint="请输入地点名" />
</LinearLayout> </LinearLayout>
<LinearLayout <LinearLayout
android:layout_width="match_parent" android:layout_width="match_parent"
android:background="@color/white"
android:layout_marginTop="10dp"
android:layout_height="0dp" android:layout_height="0dp"
android:layout_weight="1" android:layout_weight="1"
android:orientation="horizontal"> android:orientation="horizontal">
@ -100,101 +116,137 @@
android:id="@+id/textView54" android:id="@+id/textView54"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_weight="1" android:layout_marginLeft="40dp"
android:layout_marginRight="30dp"
android:layout_gravity="center"
android:textSize="18dp" android:textSize="18dp"
android:layout_margin="8dp"
android:text="医生" /> android:text="医生" />
<EditText <EditText
android:id="@+id/add_event_doctor_name" android:id="@+id/add_event_doctor_name"
android:layout_width="wrap_content" android:layout_width="319dp"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_weight="1" android:layout_gravity="center"
android:layout_marginLeft="20dp"
android:background="@color/white"
android:ems="10" android:ems="10"
android:inputType="textPersonName" android:inputType="textPersonName"
android:text="医生名" /> android:hint="请输入医生名" />
</LinearLayout> </LinearLayout>
<LinearLayout <LinearLayout
android:layout_width="match_parent" android:layout_width="match_parent"
android:background="@color/white"
android:layout_marginTop="10dp"
android:layout_height="0dp" android:layout_height="0dp"
android:layout_weight="1" android:layout_weight="1"
android:orientation="horizontal"> android:orientation="horizontal">
<TextView <TextView
android:id="@+id/add_event_month"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_weight="1" android:layout_marginLeft="40dp"
android:layout_marginRight="30dp"
android:layout_gravity="center"
android:textSize="18dp" android:textSize="18dp"
android:layout_margin="8dp" android:text="日期" />
android:text="月" />
<TextView <LinearLayout
android:id="@+id/textView58" android:id="@+id/add_date"
android:layout_width="wrap_content" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="match_parent"
android:layout_weight="1" android:layout_weight="1"
android:textSize="18dp" android:orientation="horizontal">
android:layout_margin="8dp"
android:text="月" />
<TextView <TextView
android:id="@+id/add_event_day" android:id="@+id/add_event_month"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_gravity="center"
android:layout_weight="1" android:layout_height="wrap_content"
android:textSize="18dp" android:textSize="18dp"
android:layout_margin="8dp" android:layout_marginLeft="20dp"
android:text="天" /> android:text="月" />
<TextView
android:id="@+id/textView58"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textSize="18dp"
android:layout_gravity="center"
android:layout_margin="8dp"
android:text="月" />
<TextView
android:id="@+id/add_event_day"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textSize="18dp"
android:layout_gravity="center"
android:layout_marginRight="8dp"
android:text="天" />
<TextView
android:id="@+id/textView61"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="1"
android:layout_gravity="center"
android:textSize="18dp"
android:layout_marginRight="0dp"
android:text="日" />
</LinearLayout>
<TextView
android:id="@+id/textView61"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="1"
android:textSize="18dp"
android:layout_margin="8dp"
android:text="号" />
<Button
android:id="@+id/add_date"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="1"
android:ems="10"
android:inputType="textPersonName"
android:text="选择日期" />
</LinearLayout> </LinearLayout>
<LinearLayout <LinearLayout
android:layout_width="match_parent" android:layout_width="match_parent"
android:background="@color/white"
android:layout_marginTop="10dp"
android:layout_height="0dp" android:layout_height="0dp"
android:layout_weight="1" android:layout_weight="1"
android:orientation="horizontal"> android:orientation="horizontal">
<TextView <TextView
android:id="@+id/add_event_time"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_weight="1" android:layout_marginLeft="40dp"
android:layout_marginRight="30dp"
android:layout_gravity="center"
android:textSize="18dp" android:textSize="18dp"
android:layout_margin="8dp"
android:text="时间" /> android:text="时间" />
<Button <LinearLayout
android:id="@+id/add_time" android:id="@+id/add_time"
android:layout_width="wrap_content" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="match_parent"
android:layout_weight="1" android:layout_weight="1"
android:ems="10" android:orientation="horizontal">
android:inputType="textPersonName"
android:text="选择时间" /> <TextView
android:id="@+id/add_event_time"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:layout_weight="1"
android:textColor="#000"
android:textSize="18dp"
android:layout_marginLeft="20dp"
android:text="时间" />
</LinearLayout>
</LinearLayout> </LinearLayout>
<TextView <TextView
android:layout_width="match_parent" android:layout_width="wrap_content"
android:layout_height="0dp" android:layout_height="0dp"
android:layout_weight="1" android:layout_weight="1"
android:layout_gravity="center"
android:layout_marginTop="10dp"
android:layout_marginLeft="100dp"
android:text="显示时间" android:text="显示时间"
android:id="@+id/show_time" android:id="@+id/show_time"
/> />

@ -74,12 +74,6 @@
android:gravity="start" android:gravity="start"
android:layout_margin="10dp" android:layout_margin="10dp"
android:hint="分享你的经验,互帮互助,大家一起好起来呀!" /> android:hint="分享你的经验,互帮互助,大家一起好起来呀!" />
<ImageButton
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@mipmap/img_upload_img"
android:layout_margin="10dp"
/>
</LinearLayout> </LinearLayout>

@ -11,35 +11,38 @@
<LinearLayout <LinearLayout
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginTop="10dp" android:background="@color/white">
android:orientation="horizontal">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="15dp"
android:layout_marginBottom="15dp"
android:background="@color/white"
android:orientation="horizontal">
<ImageView <ImageView
android:id="@+id/attention_back"
android:layout_width="30dp" android:layout_width="30dp"
android:layout_height="30dp" android:layout_height="30dp"
android:layout_margin="15dp" android:layout_marginLeft="15dp"
android:src="@mipmap/img_go_answer_return" android:src="@drawable/back"/>
/>
<TextView <TextView
android:id="@+id/text_attention" android:id="@+id/text_attention"
android:layout_width="wrap_content" android:layout_width="320dp"
android:layout_height="wrap_content" android:layout_height="match_parent"
android:layout_weight="3"
android:textSize="18dp"
android:gravity="center" android:gravity="center"
android:layout_gravity="center" android:textSize="20dp"
android:text="关注" /> android:text="关注" />
<TextView <ImageView
android:id="@+id/find" android:id="@+id/find_new_users"
android:layout_width="wrap_content" android:layout_width="30dp"
android:layout_height="wrap_content" android:layout_height="30dp"
android:layout_weight="1" android:layout_marginRight="15dp"
android:textSize="18dp" android:src="@drawable/find_new_user" />
android:gravity="center" </LinearLayout>
android:layout_gravity="center"
android:text="发现用户" />
</LinearLayout> </LinearLayout>
<View <View
android:layout_width="match_parent" android:layout_width="match_parent"

@ -43,16 +43,15 @@
<TextView <TextView
android:text="详情" android:text="详情"
android:id="@+id/textView30" android:id="@+id/textView30"
android:layout_width="wrap_content" android:layout_width="320dp"
android:layout_height="wrap_content" android:layout_height="match_parent"
android:layout_weight="3"
android:gravity="center" android:gravity="center"
android:textSize="20dp" /> android:textSize="19dp" />
<ImageView <ImageView
android:id="@+id/detail_to_search" android:id="@+id/detail_to_search"
android:layout_width="30dp" android:layout_width="28dp"
android:layout_height="30dp" android:layout_height="29dp"
android:layout_marginRight="15dp" android:layout_marginRight="15dp"
android:src="@drawable/search_v2" /> android:src="@drawable/search_v2" />
@ -98,6 +97,7 @@
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:text="急性白血病经验分享,第一帖" android:text="急性白血病经验分享,第一帖"
android:textSize="20dp" /> android:textSize="20dp" />

@ -4,6 +4,7 @@
xmlns:tools="http://schemas.android.com/tools" xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
android:background="@drawable/background"
tools:context=".Activity.ChatActivity" tools:context=".Activity.ChatActivity"
android:orientation="vertical"> android:orientation="vertical">
@ -11,13 +12,20 @@
<LinearLayout <LinearLayout
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:orientation="horizontal" android:background="@color/white">
android:layout_marginBottom="10dp"> <LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="15dp"
android:layout_marginBottom="15dp"
android:background="@color/white"
android:orientation="horizontal">
<ImageButton <ImageButton
android:id="@+id/bt_chat_to_chat_list" android:id="@+id/bt_chat_to_chat_list"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginLeft="8dp"
app:srcCompat="@mipmap/left_back" app:srcCompat="@mipmap/left_back"
android:background="@color/white"/> android:background="@color/white"/>
@ -30,33 +38,64 @@
android:textSize="18dp" android:textSize="18dp"
android:textColor="#000" android:textColor="#000"
android:text="匿名" /> android:text="匿名" />
<ImageView
android:layout_width="30dp"
android:layout_height="30dp"
android:layout_marginRight="15dp"
android:src="@drawable/replace"
/>
</LinearLayout>
</LinearLayout> </LinearLayout>
<View
android:layout_width="fill_parent"
android:layout_height="1px"
android:layout_gravity="bottom"
android:background="#878484" />
<androidx.recyclerview.widget.RecyclerView <androidx.recyclerview.widget.RecyclerView
android:id="@+id/msg_recycler_view" android:id="@+id/msg_recycler_view"
android:background="@color/white"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="0dp" android:layout_height="0dp"
android:layout_weight="1"/> android:layout_weight="1"/>
<LinearLayout <LinearLayout
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="60dp"
android:orientation="horizontal"> android:orientation="horizontal"
android:layout_gravity="bottom"
android:background="#FFFFFF">
<EditText <LinearLayout
android:id="@+id/edit_content" android:layout_width="100dp"
android:layout_width="wrap_content" android:layout_height="match_parent"
android:layout_height="wrap_content" android:background="@drawable/shape_round_corner"
android:layout_weight="1" android:layout_margin="10dp"
android:ems="10" android:layout_weight="1">
android:maxLines="2"
android:hint="type here" /> <EditText
android:id="@+id/edit_content"
android:layout_width="290dp"
android:layout_height="wrap_content"
android:layout_marginLeft="12dp"
android:layout_gravity="center"
android:background="#F1EEEE"
android:ems="10"
android:hint="type here"
android:maxLines="2" />
</LinearLayout>
<Button
android:id="@+id/bt_send_msg"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:layout_marginRight="5dp"
android:textColor="@color/white"
android:background="@drawable/chat_send"
android:text="Send" />
<Button
android:id="@+id/bt_send_msg"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="1"
android:text="Send" />
</LinearLayout> </LinearLayout>
</LinearLayout> </LinearLayout>

@ -9,6 +9,7 @@
<LinearLayout <LinearLayout
android:layout_marginTop="38dp" android:layout_marginTop="38dp"
android:layout_marginBottom="40dp"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content"> android:layout_height="wrap_content">
<ImageView <ImageView
@ -29,6 +30,7 @@
</LinearLayout> </LinearLayout>
<RelativeLayout <RelativeLayout
android:layout_marginLeft="30dp"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content"> android:layout_height="wrap_content">
@ -38,7 +40,7 @@
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginLeft="25dp" android:layout_marginLeft="25dp"
android:text="07" android:text="07"
android:textSize="39sp" /> android:textSize="50dp" />
<TextView <TextView
android:id="@+id/net" android:id="@+id/net"
@ -47,7 +49,7 @@
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:text=" : " android:text=" : "
android:textSize="29dp" /> android:textSize="40dp" />
<TextView <TextView
android:layout_toRightOf="@id/net" android:layout_toRightOf="@id/net"
@ -56,12 +58,13 @@
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:text="59" android:text="59"
android:textSize="29sp" /> android:textSize="40sp" />
<Button <Button
android:id="@+id/set_time" android:id="@+id/set_time"
android:text="设置时间" android:text="设置时间"
android:background="@drawable/button_shape" android:background="@drawable/button_login"
android:textColor="#fff" android:textColor="#fff"
android:layout_marginTop="10dp"
android:textSize="18sp" android:textSize="18sp"
android:layout_alignParentRight="true" android:layout_alignParentRight="true"
android:layout_marginRight="35dp" android:layout_marginRight="35dp"
@ -74,6 +77,8 @@
<LinearLayout <LinearLayout
android:layout_marginTop="38dp" android:layout_marginTop="38dp"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_marginLeft="20dp"
android:layout_marginRight="20dp"
android:layout_height="wrap_content"> android:layout_height="wrap_content">
<TextView <TextView
android:layout_width="wrap_content" android:layout_width="wrap_content"
@ -94,19 +99,21 @@
<LinearLayout <LinearLayout
android:layout_marginTop="38dp" android:layout_marginTop="38dp"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_marginLeft="20dp"
android:layout_marginRight="20dp"
android:layout_height="wrap_content"> android:layout_height="wrap_content">
<TextView <TextView
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginLeft="5dp" android:layout_marginLeft="5dp"
android:text="剂量" android:text=" 剂量"
android:textSize="20sp" /> android:textSize="20sp" />
<EditText <EditText
android:id="@+id/content_dosage" android:id="@+id/content_dosage"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginLeft="15dp" android:layout_marginLeft="35dp"
android:textSize="18dp" android:textSize="18dp"
android:textStyle="bold" /> android:textStyle="bold" />
@ -117,7 +124,7 @@
android:textSize="20sp" android:textSize="20sp"
android:textColor="#fff" android:textColor="#fff"
android:textStyle="bold" android:textStyle="bold"
android:background="@drawable/button_shape" android:background="@drawable/button_login"
android:layout_marginTop="35dp" android:layout_marginTop="35dp"
android:layout_gravity="center" android:layout_gravity="center"
android:layout_marginLeft="35dp" android:layout_marginLeft="35dp"
@ -134,7 +141,7 @@
android:textSize="20sp" android:textSize="20sp"
android:textColor="#fff" android:textColor="#fff"
android:textStyle="bold" android:textStyle="bold"
android:background="@drawable/button_shape" android:background="@drawable/button_login"
android:layout_gravity="center" android:layout_gravity="center"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" /> android:layout_height="wrap_content" />

@ -9,30 +9,48 @@
<LinearLayout <LinearLayout
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="50dp" android:layout_height="wrap_content"
android:orientation="horizontal"> android:background="@color/white">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="15dp"
android:layout_marginBottom="15dp"
android:background="@color/white"
android:orientation="horizontal">
<ImageView <ImageView
android:id="@+id/back_concerned" android:id="@+id/back_concerned"
android:layout_width="30dp" android:layout_width="30dp"
android:layout_height="30dp" android:layout_height="30dp"
android:layout_margin="15dp" android:layout_marginLeft="15dp"
android:src="@mipmap/left_back" android:src="@drawable/back"
/> />
<TextView <TextView
android:id="@+id/text_concern_question" android:id="@+id/text_concern_question"
android:layout_width="wrap_content" android:layout_width="320dp"
android:layout_height="wrap_content" android:layout_height="match_parent"
android:layout_marginLeft="100dp" android:gravity="center"
android:textSize="20dp" android:textSize="20dp"
android:layout_gravity="center"
android:text="关注的问题" /> android:text="关注的问题" />
<ImageView
android:layout_width="30dp"
android:layout_height="30dp"
android:layout_marginRight="15dp"
android:src="@drawable/replace"
/>
</LinearLayout>
</LinearLayout> </LinearLayout>
<androidx.recyclerview.widget.RecyclerView <androidx.recyclerview.widget.RecyclerView
android:layout_marginTop="10dp"
android:id="@+id/questionList" android:id="@+id/questionList"
android:background="@color/light_grey" android:background="@color/white"
android:layout_gravity="center"
android:paddingLeft="40dp"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" /> android:layout_height="match_parent" />
</LinearLayout> </LinearLayout>

@ -10,31 +10,40 @@
<LinearLayout <LinearLayout
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:orientation="horizontal"> android:background="@color/white">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="15dp"
android:layout_marginBottom="15dp"
android:background="@color/white"
android:orientation="horizontal">
<ImageView <ImageView
android:layout_width="30dp" android:layout_width="30dp"
android:layout_height="30dp" android:layout_height="30dp"
android:layout_margin="15dp" android:layout_marginLeft="15dp"
android:src="@drawable/back"
android:id="@+id/back_my" android:id="@+id/back_my"
android:src="@mipmap/img_go_answer_return" /> />
<TextView <TextView
android:id="@+id/textView30" android:id="@+id/textView30"
android:layout_width="wrap_content" android:layout_width="320dp"
android:layout_height="wrap_content" android:layout_height="match_parent"
android:layout_weight="1"
android:textSize="18dp"
android:layout_margin="15dp"
android:gravity="center" android:gravity="center"
android:textSize="20dp"
android:text="大事记" /> android:text="大事记" />
<ImageView <ImageView
android:layout_width="30dp" android:layout_width="30dp"
android:layout_height="30dp" android:layout_height="30dp"
android:layout_margin="15dp" android:layout_marginRight="15dp"
android:src="@mipmap/img_add" android:src="@drawable/add_fill_v2"
android:id="@+id/add_event" android:id="@+id/add_event"
/> />
</LinearLayout>
</LinearLayout> </LinearLayout>
<LinearLayout <LinearLayout

@ -12,31 +12,50 @@
<LinearLayout <LinearLayout
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:padding="20dp" android:background="@color/white">
android:orientation="horizontal">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="15dp"
android:layout_marginBottom="15dp"
android:background="@color/white"
android:orientation="horizontal">
<ImageButton <ImageButton
android:layout_width="wrap_content" android:layout_width="30dp"
android:layout_height="18dp" android:layout_height="30dp"
android:layout_marginLeft="15dp"
android:background="@mipmap/img_go_answer_return" android:background="@mipmap/img_go_answer_return"
android:layout_marginRight="100dp"
/> />
<TextView <TextView
android:id="@+id/textView" android:id="@+id/textView"
android:layout_width="wrap_content" android:layout_width="320dp"
android:layout_height="wrap_content" android:layout_height="match_parent"
android:layout_weight="1" android:gravity="center"
android:textSize="20dp"
android:text="小白帮回答" android:text="小白帮回答"
android:textColor="#000"/> />
</LinearLayout>
</LinearLayout> </LinearLayout>
<LinearLayout
android:layout_marginTop="10dp"
android:background="@color/white"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:paddingBottom="10dp"
android:layout_marginBottom="10dp"
android:paddingTop="10dp"
android:orientation="vertical">
<TextView <TextView
android:id="@+id/text_answer_title" android:id="@+id/text_answer_title"
android:layout_marginTop="10dp"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginLeft="20dp" android:layout_marginLeft="20dp"
android:layout_marginBottom="10dp"
android:text="白血病的早期症状有什么?" android:text="白血病的早期症状有什么?"
android:textColor="#000" android:textColor="#000"
android:textSize="18dp" /> android:textSize="18dp" />
@ -53,6 +72,7 @@
android:id="@+id/textView4" android:id="@+id/textView4"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginBottom="10dp"
android:text="展开" android:text="展开"
android:textColor="@color/hair_grey"/> android:textColor="@color/hair_grey"/>
@ -67,6 +87,7 @@
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:paddingLeft="20dp" android:paddingLeft="20dp"
android:layout_marginBottom="10dp"
android:orientation="horizontal"> android:orientation="horizontal">
<TextView <TextView
@ -134,6 +155,7 @@
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
android:orientation="vertical" android:orientation="vertical"
android:layout_marginBottom="10dp"
android:layout_weight="1"> android:layout_weight="1">
<ImageView <ImageView
@ -150,14 +172,24 @@
android:gravity="center_horizontal" /> android:gravity="center_horizontal" />
</LinearLayout> </LinearLayout>
</LinearLayout> </LinearLayout>
</LinearLayout>
<View
android:layout_marginTop="10dp"
android:layout_marginBottom="10dp" <LinearLayout
android:id="@+id/view"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="1dp" android:layout_height="match_parent"
android:background="@color/light_grey"/> android:orientation="vertical"
android:background="@color/white">
<View
android:layout_marginBottom="10dp"
android:id="@+id/view"
android:layout_width="match_parent"
android:layout_height="1dp"
android:background="@color/light_grey"/>
<TextView <TextView
android:layout_marginLeft="20dp" android:layout_marginLeft="20dp"
@ -166,17 +198,24 @@
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:text="回答0" /> android:text="回答0" />
<View <View
android:layout_marginTop="10dp" android:layout_marginTop="10dp"
android:id="@+id/view2" android:id="@+id/view2"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="1dp" android:layout_height="1dp"
android:background="@color/light_grey"/> android:background="@color/light_grey"/>
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/list_answer"
android:layout_width="match_parent"
android:layout_height="match_parent" />
</LinearLayout>
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/list_answer"
android:layout_width="match_parent"
android:layout_height="match_parent" />
</LinearLayout> </LinearLayout>

@ -13,33 +13,39 @@
<LinearLayout <LinearLayout
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="80dp" android:layout_height="wrap_content"
android:orientation="horizontal"> android:background="@color/white">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="15dp"
android:layout_marginBottom="15dp"
android:background="@color/white"
android:orientation="horizontal">
<ImageView <ImageView
android:id="@+id/back_to_index" android:id="@+id/back_to_index"
android:layout_width="40dp" android:layout_width="30dp"
android:layout_height="34dp" android:layout_height="30dp"
android:layout_marginTop="23dp" android:layout_marginLeft="15dp"
android:src="@drawable/back" /> android:src="@drawable/back" />
<TextView <TextView
android:id="@+id/head_rmd" android:id="@+id/head_rmd"
android:layout_width="wrap_content" android:layout_width="320dp"
android:layout_height="wrap_content" android:layout_height="match_parent"
android:layout_weight="1" android:gravity="center"
android:textSize="25dp" android:textSize="20dp"
android:layout_marginTop="23dp"
android:gravity="center_horizontal"
android:text="服药提醒" /> android:text="服药提醒" />
<ImageView <ImageView
android:id="@+id/add_md" android:id="@+id/add_md"
android:layout_width="34dp" android:layout_width="30dp"
android:layout_height="40dp" android:layout_height="30dp"
android:layout_marginTop="23dp" android:layout_marginRight="15dp"
android:src="@drawable/add" /> android:src="@drawable/add_fill_v2" />
</LinearLayout>
</LinearLayout> </LinearLayout>
<View <View

@ -6,139 +6,238 @@
android:layout_height="match_parent" android:layout_height="match_parent"
android:orientation="vertical" android:orientation="vertical"
tools:context=".Activity.MyInfoActivity" tools:context=".Activity.MyInfoActivity"
android:padding="20dp"> android:background="@drawable/background"
>
<LinearLayout <LinearLayout
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:background="@color/white">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="15dp"
android:layout_marginBottom="15dp"
android:background="@color/white"
android:orientation="horizontal">
<ImageView
android:id="@+id/my_info_back"
android:layout_width="30dp"
android:layout_height="30dp"
android:layout_marginLeft="15dp"
android:src="@drawable/back"
/>
<TextView
android:id="@+id/textView65"
android:layout_width="320dp"
android:layout_height="match_parent"
android:gravity="center"
android:textSize="20dp"
android:text="个人信息" />
<ImageView
android:layout_width="30dp"
android:layout_height="30dp"
android:layout_marginRight="15dp"
android:src="@drawable/replace"
/>
</LinearLayout>
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="50dp"
android:background="@color/white"
android:layout_marginTop="10dp"
android:orientation="horizontal"> android:orientation="horizontal">
<TextView <TextView
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_weight="1" android:layout_weight="1"
android:text="ID:" /> android:layout_gravity="center"
android:paddingLeft="34dp"
android:layout_margin="10dp"
android:textSize="18dp"
android:text="ID" />
<TextView <TextView
android:id="@+id/my_info_edit_id" android:id="@+id/my_info_edit_id"
android:layout_width="wrap_content" android:layout_width="191dp"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_gravity="center"
android:layout_margin="10dp"
android:layout_weight="1" android:layout_weight="1"
android:ems="10" android:ems="10"
android:text="Name" /> android:text="Name"
android:textSize="18dp" />
</LinearLayout> </LinearLayout>
<LinearLayout <LinearLayout
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="50dp"
android:background="@color/white"
android:layout_marginTop="10dp"
android:orientation="horizontal"> android:orientation="horizontal">
<TextView <TextView
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_weight="1" android:layout_weight="1"
android:text="用户名:" /> android:layout_gravity="center"
android:paddingLeft="34dp"
android:layout_margin="10dp"
android:textSize="18dp"
android:text="用户名" />
<EditText <EditText
android:id="@+id/my_info_edit_username" android:id="@+id/my_info_edit_username"
android:layout_width="wrap_content" android:layout_width="118dp"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_weight="1" android:layout_gravity="center"
android:ems="10" android:layout_marginBottom="7dp"
android:text="Name" /> android:layout_weight="4"
android:background="@color/white"
android:paddingTop="20dp"
android:text="Name"
android:textSize="18dp" />
</LinearLayout> </LinearLayout>
<LinearLayout <LinearLayout
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="50dp"
android:background="@color/white"
android:layout_marginTop="10dp"
android:orientation="horizontal"> android:orientation="horizontal">
<TextView <TextView
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_weight="1" android:layout_weight="1"
android:text="密码:" /> android:layout_gravity="center"
android:paddingLeft="34dp"
android:layout_margin="10dp"
android:textSize="18dp"
android:text="密码" />
<EditText <EditText
android:id="@+id/my_info_edit_password" android:id="@+id/my_info_edit_password"
android:layout_width="wrap_content" android:layout_width="40dp"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_weight="1" android:layout_gravity="center"
android:ems="10" android:layout_marginBottom="7dp"
android:inputType="textPersonName" android:layout_weight="4"
android:text="Name" /> android:background="@color/white"
android:inputType="textPassword"
android:paddingTop="20dp"
android:text="Name"
android:textSize="18dp" />
</LinearLayout> </LinearLayout>
<LinearLayout <LinearLayout
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="50dp"
android:background="@color/white"
android:layout_marginTop="10dp"
android:orientation="horizontal"> android:orientation="horizontal">
<TextView <TextView
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_weight="1" android:layout_weight="1"
android:layout_gravity="center"
android:paddingLeft="34dp"
android:layout_margin="10dp"
android:textSize="18dp"
android:text="确认密码" /> android:text="确认密码" />
<EditText <EditText
android:id="@+id/my_info_edit_confirm_password" android:id="@+id/my_info_edit_confirm_password"
android:layout_width="wrap_content" android:layout_width="194dp"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_weight="1" android:layout_gravity="center"
android:ems="10" android:layout_marginBottom="7dp"
android:text="Name" /> android:layout_weight="4"
android:background="@color/white"
android:paddingTop="20dp"
android:text="Name"
android:inputType="textPassword"
android:textSize="18dp" />
</LinearLayout> </LinearLayout>
<LinearLayout <LinearLayout
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="50dp"
android:background="@color/white"
android:layout_marginTop="10dp"
android:orientation="horizontal"> android:orientation="horizontal">
<TextView <TextView
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_weight="1" android:layout_weight="1"
android:text="手机号:" /> android:layout_gravity="center"
android:paddingLeft="34dp"
android:layout_margin="10dp"
android:textSize="18dp"
android:text="手机号" />
<EditText <EditText
android:id="@+id/my_info_phone" android:id="@+id/my_info_phone"
android:layout_width="wrap_content" android:layout_width="122dp"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_weight="1" android:layout_gravity="center"
android:ems="10" android:layout_marginBottom="7dp"
android:text="Name" /> android:layout_weight="4"
android:background="@color/white"
android:paddingTop="20dp"
android:text="Name"
android:inputType="phone"
android:textSize="18dp" />
</LinearLayout> </LinearLayout>
<LinearLayout <LinearLayout
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="50dp"
android:background="@color/white"
android:layout_marginTop="10dp"
android:orientation="horizontal"> android:orientation="horizontal">
<TextView <TextView
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_weight="1" android:layout_weight="1"
android:text="性别:" /> android:layout_gravity="center"
android:paddingLeft="34dp"
android:layout_margin="10dp"
android:textSize="18dp"
android:text="性别" />
<Spinner <Spinner
android:id="@+id/my_info_sex" android:id="@+id/my_info_sex"
android:layout_width="98dp" android:layout_width="262dp"
android:layout_height="49dp" android:layout_height="49dp"
android:layout_gravity="top" android:layout_gravity="top"
android:layout_marginTop="20dp"
android:layout_marginBottom="20dp"
android:layout_marginRight="5dp" android:layout_marginRight="5dp"
android:spinnerMode="dialog" android:layout_marginBottom="20dp"
android:entries="@array/sex" /> android:entries="@array/sex"
android:spinnerMode="dialog" />
</LinearLayout> </LinearLayout>
<Button <Button
android:layout_marginTop="30dp"
android:id="@+id/my_info_commit" android:id="@+id/my_info_commit"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_gravity="center" android:layout_gravity="center"
android:textColor="@color/white"
android:background="@drawable/button_login"
android:text="保存" /> android:text="保存" />
</LinearLayout> </LinearLayout>

@ -9,32 +9,47 @@
<LinearLayout <LinearLayout
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="50dp" android:layout_height="wrap_content"
android:orientation="horizontal"> android:background="@color/white">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="15dp"
android:layout_marginBottom="15dp"
android:background="@color/white"
android:orientation="horizontal">
<ImageView <ImageView
android:id="@+id/my_question_back" android:id="@+id/my_question_back"
android:layout_width="30dp" android:layout_width="30dp"
android:layout_height="30dp" android:layout_height="30dp"
android:layout_margin="12dp" android:layout_marginLeft="15dp"
android:src="@mipmap/left_back" android:src="@drawable/back"
/> />
<TextView <TextView
android:id="@+id/text_concern_question" android:id="@+id/text_concern_question"
android:layout_width="wrap_content" android:layout_width="320dp"
android:layout_height="wrap_content" android:layout_height="match_parent"
android:layout_marginLeft="110dp" android:gravity="center"
android:textSize="20dp" android:textSize="20dp"
android:layout_gravity="center"
android:text="我的提问" /> android:text="我的提问" />
<ImageView
android:layout_width="30dp"
android:layout_height="30dp"
android:layout_marginRight="15dp"
android:src="@drawable/replace"
/>
</LinearLayout>
</LinearLayout> </LinearLayout>
<LinearLayout <LinearLayout
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
android:orientation="vertical" android:orientation="vertical"
android:background="@color/light_grey"> android:background="@drawable/background">
<androidx.recyclerview.widget.RecyclerView <androidx.recyclerview.widget.RecyclerView
android:id="@+id/my_question_list" android:id="@+id/my_question_list"

@ -21,40 +21,52 @@
<LinearLayout <LinearLayout
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:background="#FFFFFF" android:background="@color/white"
android:orientation="vertical" android:orientation="vertical">
android:layout_marginBottom="10dp">
<LinearLayout <LinearLayout
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginTop="20dp" android:layout_marginTop="15dp"
android:layout_marginBottom="15dp"
android:background="@color/white"
android:orientation="horizontal"> android:orientation="horizontal">
<ImageView <ImageView
android:id="@+id/detail_to" android:id="@+id/detail_to"
android:layout_width="47dp" android:layout_width="30dp"
android:layout_height="34dp" android:layout_height="30dp"
android:layout_gravity="center" android:layout_marginLeft="15dp"
android:src="@drawable/back" /> android:src="@drawable/back" />
<TextView <TextView
android:id="@+id/textView30" android:id="@+id/textView30"
android:layout_width="306dp" android:layout_width="320dp"
android:layout_height="match_parent" android:layout_height="match_parent"
android:gravity="center" android:gravity="center"
android:text="详情" android:text="详情"
android:textSize="19dp" android:textSize="20dp"
android:textStyle="bold" /> />
<ImageView <ImageView
android:id="@+id/detail_to_search" android:id="@+id/detail_to_search"
android:layout_width="66dp" android:layout_width="28dp"
android:layout_height="match_parent" android:layout_height="29dp"
app:srcCompat="@android:drawable/ic_menu_search" /> android:layout_marginRight="15dp"
android:src="@drawable/search_v2" />
</LinearLayout> </LinearLayout>
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@color/white"
android:layout_marginTop="10dp"
android:orientation="vertical">
<LinearLayout <LinearLayout
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
@ -64,14 +76,12 @@
android:id="@+id/detail_theme" android:id="@+id/detail_theme"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:text="急性白血病经验分享:第一帖"
android:maxLines="2"
android:ellipsize="end" android:ellipsize="end"
android:maxLines="2"
android:text="急性白血病经验分享:第一帖"
android:textSize="20dp" /> android:textSize="20dp" />
</LinearLayout> </LinearLayout>
</LinearLayout> </LinearLayout>
<LinearLayout <LinearLayout
@ -148,7 +158,7 @@
<LinearLayout <LinearLayout
android:id="@+id/detail_like" android:id="@+id/detail_like"
android:layout_width="70dp" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginRight="20dp" android:layout_marginRight="20dp"
android:background="@drawable/search_background" android:background="@drawable/search_background"
@ -156,6 +166,7 @@
android:orientation="horizontal"> android:orientation="horizontal">
<ImageView <ImageView
android:layout_marginLeft="10dp"
android:layout_width="20dp" android:layout_width="20dp"
android:layout_height="20dp" android:layout_height="20dp"
app:srcCompat="@drawable/view" /> app:srcCompat="@drawable/view" />
@ -165,44 +176,12 @@
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginLeft="10dp" android:layout_marginLeft="10dp"
android:layout_marginRight="10dp"
android:text="0" /> android:text="0" />
<TextView
android:id="@+id/textView41"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="5dp" />
<!-- android:text="赞" --> <!-- android:text="赞" -->
</LinearLayout> </LinearLayout>
<LinearLayout
android:id="@+id/detail_col"
android:layout_width="77dp"
android:layout_height="wrap_content"
android:background="@drawable/search_background"
android:gravity="center"
android:orientation="horizontal">
<ImageView
android:id="@+id/imageView15"
android:layout_width="20dp"
android:layout_height="20dp"
app:srcCompat="@drawable/collect" />
<TextView
android:id="@+id/detail_col_num"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="10dp"
android:text="0" />
<TextView
android:id="@+id/textView43"
android:layout_width="wrap_content"
android:layout_height="wrap_content" />
<!-- android:text="收藏" -->
/>
</LinearLayout>
</LinearLayout> </LinearLayout>
</LinearLayout> </LinearLayout>

@ -19,37 +19,39 @@
<LinearLayout <LinearLayout
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="100dp" android:layout_height="wrap_content"
android:background="#FFFFFF" android:background="@color/white"
android:orientation="vertical" android:orientation="vertical">
android:layout_marginBottom="10dp">
<LinearLayout <LinearLayout
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginTop="20dp" android:layout_marginTop="15dp"
android:layout_marginBottom="15dp"
android:background="@color/white"
android:orientation="horizontal"> android:orientation="horizontal">
<ImageView <ImageView
android:id="@+id/question_back" android:id="@+id/question_back"
android:layout_width="47dp" android:layout_width="30dp"
android:layout_height="34dp" android:layout_height="30dp"
android:layout_gravity="center" android:layout_marginLeft="15dp"
android:src="@drawable/back" /> android:src="@drawable/back" />
<TextView <TextView
android:layout_width="306dp" android:layout_width="320dp"
android:layout_height="match_parent" android:layout_height="match_parent"
android:gravity="center" android:gravity="center"
android:text="问题详情" android:text="详情"
android:textSize="19dp" android:textSize="20dp"
android:textStyle="bold" /> />
<ImageView <ImageView
android:id="@+id/detail_to_search" android:id="@+id/detail_to_search"
android:layout_width="66dp" android:layout_width="28dp"
android:layout_height="match_parent" android:layout_height="29dp"
app:srcCompat="@android:drawable/ic_menu_search" /> android:layout_marginRight="15dp"
android:src="@drawable/search_v2" />
</LinearLayout> </LinearLayout>

@ -29,11 +29,10 @@
<TextView <TextView
android:id="@+id/textView65" android:id="@+id/textView65"
android:layout_width="wrap_content" android:layout_width="320dp"
android:layout_height="wrap_content" android:layout_height="match_parent"
android:layout_weight="3"
android:gravity="center" android:gravity="center"
android:textSize="25dp" android:textSize="20dp"
android:text="注册" /> android:text="注册" />
<ImageView <ImageView

@ -5,36 +5,49 @@
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
android:orientation="vertical" android:orientation="vertical"
android:background="@drawable/background"
tools:context="com.example.leudaemialikeme.Activity.SafetyActivity"> tools:context="com.example.leudaemialikeme.Activity.SafetyActivity">
<LinearLayout <LinearLayout
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:orientation="horizontal"> android:background="@color/white">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="15dp"
android:layout_marginBottom="15dp"
android:background="@color/white"
android:orientation="horizontal">
<ImageView <ImageView
android:id="@+id/safety_back"
android:layout_width="30dp" android:layout_width="30dp"
android:layout_height="30dp" android:layout_height="30dp"
android:layout_margin="15dp" android:layout_marginLeft="15dp"
android:src="@mipmap/img_go_answer_return" android:src="@drawable/back"
/> />
<TextView <TextView
android:id="@+id/textView13" android:id="@+id/textView13"
android:layout_width="wrap_content" android:layout_width="320dp"
android:layout_height="wrap_content" android:layout_height="match_parent"
android:layout_weight="3"
android:textSize="16dp"
android:gravity="center" android:gravity="center"
android:layout_margin="15dp" android:textSize="20dp"
android:text="账号与安全" /> android:text="账号与安全" />
<ImageView
android:layout_width="30dp"
android:layout_height="30dp"
android:layout_marginRight="15dp"
android:src="@drawable/replace"
/>
</LinearLayout>
</LinearLayout> </LinearLayout>
<LinearLayout <LinearLayout
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
android:background="@color/light_grey"
android:orientation="vertical"> android:orientation="vertical">
<LinearLayout <LinearLayout

@ -89,12 +89,6 @@
android:layout_marginLeft="15dp" android:layout_marginLeft="15dp"
android:gravity="start"/> android:gravity="start"/>
<ImageButton
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@mipmap/img_upload_img"
android:layout_margin="10dp"
/>
</LinearLayout> </LinearLayout>
</LinearLayout> </LinearLayout>

@ -0,0 +1,18 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@color/white"
tools:context=".Activity.SplashActivity">
<ImageView
android:layout_width="wrap_content"
android:layout_gravity="center"
android:layout_height="wrap_content"
android:src="@drawable/splash_background"
android:layout_alignParentTop="true"
android:layout_alignParentStart="true"
android:layout_alignParentLeft="true" />
</LinearLayout>

@ -22,34 +22,32 @@
<TextView <TextView
android:id="@+id/blog_title" android:id="@+id/blog_title"
android:textStyle="bold"
android:text="儿童急性B淋巴细胞白血病,除了传统疗法还有哪些前沿治疗方法呢?"
android:maxEms="40"
android:maxLines="2"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:text="儿童急性B淋巴细胞白血病,除了传统疗法还有哪些前沿治疗方法呢?" android:ellipsize="end"
android:textSize="15dp" android:textSize="15dp" />
android:textStyle="bold" />
<LinearLayout <LinearLayout
android:layout_width="wrap_content" android:layout_width="312dp"
android:layout_height="71dp" android:layout_height="71dp"
android:orientation="horizontal"> android:orientation="horizontal">
<TextView <TextView
android:id="@+id/blog_info" android:id="@+id/blog_info"
android:layout_width="200dp" android:layout_width="match_parent"
android:layout_height="56dp" android:layout_height="56dp"
android:layout_marginTop="14dp" android:layout_marginTop="14dp"
android:ellipsize="end"
android:maxEms="40"
android:maxLines="3"
android:textSize="11dp"
android:text="急性淋巴细胞白血病ALL是儿童最常见的恶性肿瘤其中约85%为 android:text="急性淋巴细胞白血病ALL是儿童最常见的恶性肿瘤其中约85%为
" " />
android:textSize="11dp" />
<ImageView
android:id="@+id/recNews_image"
android:layout_width="100dp"
android:layout_height="wrap_content"
android:layout_marginLeft="5dp"
app:srcCompat="@drawable/rec_news1" />
</LinearLayout> </LinearLayout>

@ -4,6 +4,7 @@
xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools" xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent" android:layout_width="match_parent"
android:background="@drawable/background"
android:layout_height="wrap_content"> android:layout_height="wrap_content">
<LinearLayout <LinearLayout
@ -12,7 +13,7 @@
android:layout_height="150dp" android:layout_height="150dp"
android:layout_gravity="center" android:layout_gravity="center"
android:layout_marginBottom="6dp" android:layout_marginBottom="6dp"
android:background="@drawable/background" android:background="@color/white"
android:elevation="10dp" android:elevation="10dp"
android:layout_marginTop="10dp" android:layout_marginTop="10dp"
android:orientation="vertical" android:orientation="vertical"
@ -22,34 +23,32 @@
<TextView <TextView
android:id="@+id/News_title" android:id="@+id/News_title"
android:maxEms="40"
android:maxLines="2"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:text="儿童急性B淋巴细胞白血病,除了传统疗法还有哪些前沿治疗方法呢?" android:ellipsize="end"
android:textSize="15dp" android:textSize="15dp"
android:text="儿童急性B淋巴细胞白血病,除了传统疗法还有哪些前沿治疗方法呢?"
android:textStyle="bold" /> android:textStyle="bold" />
<LinearLayout <LinearLayout
android:layout_width="wrap_content" android:layout_width="312dp"
android:layout_height="71dp" android:layout_height="71dp"
android:orientation="horizontal"> android:orientation="horizontal">
<TextView <TextView
android:id="@+id/News_info" android:id="@+id/News_info"
android:layout_width="200dp" android:layout_width="match_parent"
android:layout_height="56dp" android:layout_height="56dp"
android:layout_marginTop="14dp" android:layout_marginTop="14dp"
android:ellipsize="end"
android:maxEms="40"
android:maxLines="3"
android:textSize="11dp"
android:text="急性淋巴细胞白血病ALL是儿童最常见的恶性肿瘤其中约85%为 android:text="急性淋巴细胞白血病ALL是儿童最常见的恶性肿瘤其中约85%为
" " />
android:textSize="11dp" />
<ImageView
android:id="@+id/recNews_image"
android:layout_width="100dp"
android:layout_height="wrap_content"
android:layout_marginLeft="5dp"
app:srcCompat="@drawable/rec_news1" />
</LinearLayout> </LinearLayout>

@ -7,42 +7,34 @@
<TextView <TextView
android:id="@+id/event_day" android:id="@+id/event_day"
android:layout_width="wrap_content" android:layout_width="22dp"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_weight="1"
android:textSize="28dp"
android:layout_marginLeft="15dp" android:layout_marginLeft="15dp"
android:layout_marginTop="30dp" android:layout_marginTop="40dp"
/>
<TextView
android:id="@+id/a"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="1" android:layout_weight="1"
android:textSize="20dp"
android:text="号" android:textSize="38dp" />
android:layout_marginTop="30dp"
/>
<TextView <TextView
android:id="@+id/event_month" android:id="@+id/event_month"
android:layout_width="10dp" android:layout_width="10dp"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:textSize="18dp" android:textSize="20dp"
android:layout_marginTop="40dp" android:layout_marginTop="50dp"
android:layout_marginLeft="-20dp" android:layout_marginLeft="2dp"
android:layout_weight="1" android:layout_weight="1"
/> />
<TextView <TextView
android:id="@+id/aa" android:id="@+id/aa"
android:layout_width="10dp" android:layout_width="3dp"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:textSize="18dp"
android:layout_marginTop="40dp"
android:layout_marginLeft="-10dp" android:layout_marginLeft="-10dp"
android:text="月" android:layout_marginTop="50dp"
android:layout_weight="1" android:layout_weight="1"
/> android:text="月"
android:textSize="20dp" />
<LinearLayout <LinearLayout
android:layout_width="100dp" android:layout_width="100dp"
@ -151,52 +143,51 @@
<LinearLayout <LinearLayout
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
android:paddingLeft="5dp"
android:orientation="horizontal"> android:orientation="horizontal">
<TextView <TextView
android:id="@+id/textView59" android:id="@+id/textView59"
android:layout_width="wrap_content" android:layout_width="76dp"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_weight="1"
android:textSize="16dp"
android:layout_marginLeft="5dp" android:layout_marginLeft="5dp"
android:text="事件提醒时间:" /> android:layout_weight="1"
android:text="事件提醒时间:"
android:textSize="16dp" />
<TextView <TextView
android:id="@+id/textView60" android:id="@+id/event_time"
android:layout_width="wrap_content" android:layout_width="120dp"
android:layout_height="wrap_content" android:layout_height="match_parent"
android:layout_weight="1"
android:textSize="16dp" android:layout_gravity="right"
android:layout_marginLeft="5dp" android:layout_weight="1" />
android:text="创建时间:" />
</LinearLayout> </LinearLayout>
<LinearLayout <LinearLayout
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
android:layout_marginTop="5dp" android:layout_marginTop="5dp"
android:paddingLeft="5dp"
android:orientation="horizontal"> android:orientation="horizontal">
<TextView <TextView
android:id="@+id/event_time" android:id="@+id/textView60"
android:layout_width="wrap_content" android:layout_width="9dp"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_gravity="center" android:layout_marginLeft="5dp"
android:layout_marginLeft="10dp"
android:layout_marginTop="5dp"
android:layout_marginBottom="10dp"
android:layout_weight="1" android:layout_weight="1"
android:textSize="12dp" /> android:text="创建时间:"
android:textSize="16dp" />
<TextView <TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="1"
android:id="@+id/event_create_time" android:id="@+id/event_create_time"
android:layout_marginBottom="10dp" android:layout_width="120dp"
android:layout_height="wrap_content"
android:layout_gravity="right" android:layout_gravity="right"
/> android:layout_marginTop="1dp"
android:layout_weight="1" />
</LinearLayout> </LinearLayout>
</LinearLayout> </LinearLayout>

@ -15,7 +15,7 @@
<androidx.recyclerview.widget.RecyclerView <androidx.recyclerview.widget.RecyclerView
android:id="@+id/blogCollectList" android:id="@+id/blogCollectList"
android:background="@color/light_grey" android:background="@drawable/background"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" /> android:layout_height="match_parent" />
</LinearLayout> </LinearLayout>

@ -2,6 +2,7 @@
xmlns:tools="http://schemas.android.com/tools" xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
tools:context="com.example.leudaemialikeme.Fragment.BlogHistoryFragment"> tools:context="com.example.leudaemialikeme.Fragment.BlogHistoryFragment">
<androidx.swiperefreshlayout.widget.SwipeRefreshLayout <androidx.swiperefreshlayout.widget.SwipeRefreshLayout
@ -15,7 +16,7 @@
<androidx.recyclerview.widget.RecyclerView <androidx.recyclerview.widget.RecyclerView
android:id="@+id/blogHistoryList" android:id="@+id/blogHistoryList"
android:background="@color/light_grey" android:background="@drawable/background"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" /> android:layout_height="match_parent" />
</LinearLayout> </LinearLayout>

@ -3,6 +3,7 @@
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
android:orientation="vertical" android:orientation="vertical"
android:background="@drawable/background"
tools:context="com.example.leudaemialikeme.Fragment.CollectFragment"> tools:context="com.example.leudaemialikeme.Fragment.CollectFragment">
<LinearLayout <LinearLayout
@ -13,6 +14,7 @@
<LinearLayout <LinearLayout
android:layout_width="265dp" android:layout_width="265dp"
android:layout_height="match_parent" android:layout_height="match_parent"
android:background="@color/white"
android:layout_weight="20"> android:layout_weight="20">
<ImageView <ImageView
android:id="@+id/back_collect" android:id="@+id/back_collect"
@ -35,28 +37,29 @@
</LinearLayout> </LinearLayout>
<LinearLayout <LinearLayout
android:layout_width="match_parent" android:layout_width="0dp"
android:layout_height="wrap_content" android:layout_height="0dp"
android:layout_margin="10dp" android:layout_margin="5dp"
android:orientation="vertical"> android:orientation="vertical">
<RelativeLayout <RelativeLayout
android:layout_width="match_parent" android:layout_width="0dp"
android:layout_height="wrap_content" android:layout_height="0dp"
android:layout_marginTop="10dp"> android:layout_marginTop="10dp">
<!-- 导航标签,包含一个单选按钮组--> <!-- 导航标签,包含一个单选按钮组-->
<!-- 任意数量不能显示时的缩略符号 --> <!-- 任意数量不能显示时的缩略符号 -->
<HorizontalScrollView <HorizontalScrollView
android:id="@+id/hvChannelCollect" android:id="@+id/hvChannelCollect"
android:layout_width="match_parent" android:layout_width="0dp"
android:layout_height="wrap_content" android:layout_height="0dp"
android:layout_toLeftOf="@+id/ivShowChannel" android:layout_toLeftOf="@+id/ivShowChannel"
android:scrollbars="none"> android:scrollbars="none">
<RadioGroup <RadioGroup
android:id="@+id/rgChannelCollect" android:id="@+id/rgChannelCollect"
android:layout_width="wrap_content" android:layout_width="0dp"
android:layout_height="wrap_content" android:layout_gravity="center"
android:layout_height="0dp"
android:orientation="horizontal" /> android:orientation="horizontal" />
</HorizontalScrollView> </HorizontalScrollView>
</RelativeLayout> </RelativeLayout>

@ -3,6 +3,7 @@
xmlns:tools="http://schemas.android.com/tools" xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
android:background="@drawable/background"
tools:context="com.example.leudaemialikeme.Fragment.PrivateMsgFragment"> tools:context="com.example.leudaemialikeme.Fragment.PrivateMsgFragment">
<!-- TODO: Update blank fragment layout --> <!-- TODO: Update blank fragment layout -->
@ -18,12 +19,19 @@
<LinearLayout <LinearLayout
android:background="@color/white"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content"> android:layout_height="wrap_content"
android:paddingTop="13dp"
android:paddingBottom="13dp"
>
<LinearLayout <LinearLayout
android:layout_width="60dp"
android:layout_height="match_parent" android:layout_width="90dp"
android:layout_height="wrap_content"
android:orientation="vertical"> android:orientation="vertical">
<ImageView <ImageView
@ -35,36 +43,45 @@
</LinearLayout> </LinearLayout>
<LinearLayout <LinearLayout
android:layout_width="350dp" android:layout_width="wrap_content"
android:layout_height="match_parent" android:layout_height="wrap_content"
android:orientation="vertical"> android:orientation="vertical"
android:paddingBottom="10dp">
<TextView <TextView
android:id="@+id/textView29" android:id="@+id/textView29"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginBottom="10dp"
android:text="未关注用户" /> android:text="未关注用户" />
<TextView
android:id="@+id/textView67"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="回复@用户yd5656" />
<TextView <TextView
android:id="@+id/textView30" android:id="@+id/textView30"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:text="你好,请问可以加一个好友吗" /> android:text="你好,请问可以加一个好友吗" />
</LinearLayout> </LinearLayout>
</LinearLayout> </LinearLayout>
<View
android:layout_width="match_parent"
android:layout_height="1dp"
android:layout_gravity="bottom"
android:background="@color/grey" />
<LinearLayout <LinearLayout
android:background="@color/white"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="50dp"> android:layout_height="wrap_content"
android:paddingTop="10dp"
android:paddingBottom="13dp">
<LinearLayout <LinearLayout
android:layout_width="60dp" android:layout_width="90dp"
android:layout_height="match_parent" android:layout_height="wrap_content"
android:orientation="vertical"> android:orientation="vertical">
<ImageView <ImageView
@ -76,14 +93,16 @@
</LinearLayout> </LinearLayout>
<LinearLayout <LinearLayout
android:layout_width="353dp" android:layout_width="wrap_content"
android:layout_height="match_parent" android:layout_height="wrap_content"
android:orientation="vertical"> android:orientation="vertical"
android:paddingBottom="10dp">
<TextView <TextView
android:id="@+id/textView20" android:id="@+id/textView20"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginBottom="10dp"
android:text="小白快跑" /> android:text="小白快跑" />
<TextView <TextView
@ -94,6 +113,12 @@
</LinearLayout> </LinearLayout>
</LinearLayout> </LinearLayout>
<View
android:layout_width="match_parent"
android:layout_height="1dp"
android:layout_gravity="bottom"
android:background="@color/grey" />
</LinearLayout> </LinearLayout>
</FrameLayout> </FrameLayout>

@ -58,6 +58,8 @@
<LinearLayout <LinearLayout
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:paddingLeft="16.5dp"
android:paddingRight="16.5dp"
android:orientation="vertical"> android:orientation="vertical">
<RelativeLayout <RelativeLayout
@ -82,11 +84,11 @@
<ImageView <ImageView
android:id="@+id/ivShowChannel" android:id="@+id/ivShowChannel"
android:layout_width="40dp" android:layout_width="0dp"
android:layout_height="40dp" android:layout_height="0dp"
android:layout_alignParentRight="true" android:layout_alignParentRight="true"
android:scaleType="fitXY" android:scaleType="fitXY"
android:src="@mipmap/channel_down_narrow" /> />
</RelativeLayout> </RelativeLayout>
</LinearLayout> </LinearLayout>

@ -3,6 +3,7 @@
xmlns:tools="http://schemas.android.com/tools" xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
android:background="@drawable/background"
tools:context="com.example.leudaemialikeme.Fragment.PrivateMsgFragment"> tools:context="com.example.leudaemialikeme.Fragment.PrivateMsgFragment">
<!-- TODO: Update blank fragment layout --> <!-- TODO: Update blank fragment layout -->
@ -18,8 +19,10 @@
<LinearLayout <LinearLayout
android:background="@color/white"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="56dp" android:layout_height="56dp"
android:layout_marginBottom="10dp"
android:orientation="horizontal"> android:orientation="horizontal">
<LinearLayout <LinearLayout
@ -49,7 +52,10 @@
<LinearLayout <LinearLayout
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content"> android:layout_height="wrap_content"
android:paddingTop="10dp"
android:paddingBottom="10dp"
android:background="@color/white">
<LinearLayout <LinearLayout
android:layout_width="60dp" android:layout_width="60dp"
@ -71,6 +77,7 @@
<TextView <TextView
android:id="@+id/textView29" android:id="@+id/textView29"
android:layout_marginBottom="7dp"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:text="记者陈青青" /> android:text="记者陈青青" />
@ -83,9 +90,18 @@
</LinearLayout> </LinearLayout>
</LinearLayout> </LinearLayout>
<View
android:layout_width="match_parent"
android:layout_height="1dp"
android:layout_gravity="bottom"
android:background="@color/grey" />
<LinearLayout <LinearLayout
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="50dp"> android:paddingTop="10dp"
android:paddingBottom="10dp"
android:background="@color/white"
android:layout_height="wrap_content">
<LinearLayout <LinearLayout
android:layout_width="60dp" android:layout_width="60dp"
@ -106,6 +122,7 @@
android:orientation="vertical"> android:orientation="vertical">
<TextView <TextView
android:id="@+id/textView20" android:id="@+id/textView20"
android:layout_marginBottom="7dp"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:text="小白帮_新人助手" /> android:text="小白帮_新人助手" />
@ -118,9 +135,19 @@
</LinearLayout> </LinearLayout>
</LinearLayout> </LinearLayout>
<View
android:layout_width="match_parent"
android:layout_height="1dp"
android:layout_gravity="bottom"
android:background="@color/grey" />
<LinearLayout <LinearLayout
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="50dp"> android:layout_height="wrap_content"
android:paddingTop="10dp"
android:paddingBottom="10dp"
android:background="@color/white"
>
<LinearLayout <LinearLayout
android:layout_width="60dp" android:layout_width="60dp"
@ -143,6 +170,7 @@
android:id="@+id/user3" android:id="@+id/user3"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginBottom="7dp"
android:text="严蔚医生" /> android:text="严蔚医生" />
<TextView <TextView
@ -152,6 +180,13 @@
android:text="你好,我能给你提供什么帮助吗?" /> android:text="你好,我能给你提供什么帮助吗?" />
</LinearLayout> </LinearLayout>
</LinearLayout> </LinearLayout>
<View
android:layout_width="match_parent"
android:layout_height="1dp"
android:layout_gravity="bottom"
android:background="@color/grey" />
</LinearLayout> </LinearLayout>
</FrameLayout> </FrameLayout>

@ -4,11 +4,13 @@
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
android:orientation="vertical" android:orientation="vertical"
android:background="@drawable/background"
tools:context="com.example.leudaemialikeme.Fragment.HistoryFragment"> tools:context="com.example.leudaemialikeme.Fragment.HistoryFragment">
<LinearLayout <LinearLayout
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="50dp" android:layout_height="50dp"
android:background="@color/white"
android:orientation="horizontal"> android:orientation="horizontal">
<LinearLayout <LinearLayout
@ -37,14 +39,15 @@
<LinearLayout <LinearLayout
android:layout_width="match_parent" android:layout_width="match_parent"
android:background="@color/white"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_margin="10dp" android:paddingLeft="10dp"
android:layout_marginTop="10dp"
android:orientation="vertical"> android:orientation="vertical">
<RelativeLayout <RelativeLayout
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content">
android:layout_marginTop="10dp">
<!-- 导航标签,包含一个单选按钮组--> <!-- 导航标签,包含一个单选按钮组-->
<!-- 任意数量不能显示时的缩略符号 --> <!-- 任意数量不能显示时的缩略符号 -->
<HorizontalScrollView <HorizontalScrollView
@ -67,6 +70,7 @@
android:id="@+id/vpNewsListHistory" android:id="@+id/vpNewsListHistory"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="0dp" android:layout_height="0dp"
android:layout_gravity="center"
android:layout_weight="1" android:layout_weight="1"
/> />

@ -4,23 +4,29 @@
xmlns:tools="http://schemas.android.com/tools" xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
android:background="@drawable/background"
android:orientation="vertical" android:orientation="vertical"
tools:context=".Fragment.MessageFragment"> tools:context=".Fragment.MessageFragment">
<LinearLayout <LinearLayout
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="50dp" android:layout_height="wrap_content"
android:orientation="horizontal"> android:background="@color/white">
<LinearLayout <LinearLayout
android:layout_width="265dp" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="wrap_content"
android:layout_weight="20"> android:layout_marginTop="10dp"
android:background="@color/white"
android:orientation="horizontal">
<ImageButton <ImageButton
android:id="@+id/imageButton2" android:id="@+id/imageButton2"
android:layout_width="wrap_content" android:layout_width="40dp"
android:layout_height="wrap_content" android:layout_gravity="center"
android:src="@mipmap/img_read_already" /> android:layout_height="40dp"
android:layout_marginLeft="15dp"
android:background="@drawable/read_already" />
<TextView <TextView
android:id="@+id/textView5" android:id="@+id/textView5"
@ -34,9 +40,12 @@
<ImageButton <ImageButton
android:id="@+id/imageButton" android:id="@+id/imageButton"
android:layout_width="wrap_content" android:layout_width="40dp"
android:layout_height="wrap_content" android:layout_gravity="center"
android:src="@mipmap/img_read_already" /> android:layout_height="40dp"
android:layout_marginRight="15dp"
android:background="@drawable/read_already"
/>
</LinearLayout> </LinearLayout>
</LinearLayout> </LinearLayout>
@ -56,6 +65,7 @@
android:id="@+id/hvChannel0" android:id="@+id/hvChannel0"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:background="@color/white"
android:layout_toLeftOf="@+id/ivShowChannel" android:layout_toLeftOf="@+id/ivShowChannel"
android:scrollbars="none"> android:scrollbars="none">
@ -68,12 +78,14 @@
<ImageView <ImageView
android:id="@+id/ivShowChannel" android:id="@+id/ivShowChannel"
android:layout_width="40dp" android:layout_width="wrap_content"
android:layout_height="40dp" android:layout_height="wrap_content"
android:background="@color/white"
android:layout_alignParentRight="true" android:layout_alignParentRight="true"
android:layout_marginRight="1dp" android:layout_marginRight="1dp"
android:layout_marginLeft="1dp"
android:scaleType="fitXY" android:scaleType="fitXY"
android:src="@mipmap/channel_down_narrow" /> />
</RelativeLayout> </RelativeLayout>
</LinearLayout> </LinearLayout>

@ -4,6 +4,7 @@
xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools" xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent" android:layout_width="match_parent"
android:background="@drawable/background"
android:layout_height="match_parent" android:layout_height="match_parent"
tools:context=".Fragment.MyFragment"> tools:context=".Fragment.MyFragment">
@ -104,15 +105,16 @@
<LinearLayout <LinearLayout
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="70dp" android:layout_height="90dp"
android:layout_margin="15dp" android:layout_margin="15dp"
android:background="@drawable/shape_round_corner" android:background="@drawable/shape_round_corner_my"
android:orientation="horizontal"> android:orientation="horizontal">
<LinearLayout <LinearLayout
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="60dp" android:layout_height="60dp"
android:layout_marginTop="5dp" android:layout_marginTop="5dp"
android:layout_marginLeft="15dp"
android:layout_weight="1" android:layout_weight="1"
android:id="@+id/collect" android:id="@+id/collect"
android:orientation="vertical"> android:orientation="vertical">
@ -129,7 +131,7 @@
android:id="@+id/textView17" android:id="@+id/textView17"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="10dp" android:layout_height="10dp"
android:layout_marginLeft="10dp" android:layout_gravity="center"
android:layout_weight="1" android:layout_weight="1"
android:gravity="center" android:gravity="center"
android:text="我的收藏" android:text="我的收藏"
@ -156,7 +158,7 @@
android:id="@+id/textView18" android:id="@+id/textView18"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="10dp" android:layout_height="10dp"
android:layout_marginLeft="10dp" android:layout_gravity="center"
android:layout_weight="1" android:layout_weight="1"
android:gravity="center" android:gravity="center"
android:text="浏览历史" android:text="浏览历史"
@ -173,7 +175,7 @@
android:orientation="vertical"> android:orientation="vertical">
<ImageView <ImageView
android:layout_width="match_parent" android:layout_width="wrap_content"
android:layout_height="30dp" android:layout_height="30dp"
android:layout_gravity="center" android:layout_gravity="center"
android:layout_margin="5dp" android:layout_margin="5dp"
@ -184,7 +186,8 @@
android:id="@+id/textView19" android:id="@+id/textView19"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="10dp" android:layout_height="10dp"
android:layout_marginLeft="10dp" android:layout_gravity="center"
android:layout_marginLeft="1dp"
android:layout_weight="1" android:layout_weight="1"
android:gravity="center" android:gravity="center"
android:text="关注的问题" android:text="关注的问题"
@ -212,7 +215,7 @@
android:id="@+id/textView20" android:id="@+id/textView20"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="10dp" android:layout_height="10dp"
android:layout_marginLeft="10dp" android:layout_marginLeft="33dp"
android:layout_weight="1" android:layout_weight="1"
android:gravity="center" android:gravity="center"
android:text="我的提问" android:text="我的提问"
@ -231,46 +234,53 @@
android:orientation="horizontal"> android:orientation="horizontal">
<LinearLayout <LinearLayout
android:layout_width="wrap_content" android:id="@+id/my_remind_linear"
android:layout_width="93dp"
android:layout_height="70dp" android:layout_height="70dp"
android:layout_marginRight="20dp" android:layout_marginRight="20dp"
android:background="@drawable/shape_round_corner" android:layout_weight="1"
android:orientation="horizontal" android:background="@drawable/shape_round_corner_my"
android:id="@+id/my_remind_linear" android:orientation="horizontal">
android:layout_weight="1">
<TextView <TextView
android:id="@+id/textView21" android:id="@+id/textView21"
android:layout_width="20dp" android:layout_width="2dp"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_margin="15dp" android:layout_marginLeft="10dp"
android:layout_marginTop="10dp"
android:layout_marginBottom="10dp"
android:layout_weight="1" android:layout_weight="1"
android:text="服药提醒" android:layout_gravity="center"
android:paddingLeft="20dp"
android:paddingTop="2dp"
android:singleLine="false"
android:text="服药\n提醒"
android:textSize="16dp" /> android:textSize="16dp" />
<ImageView <ImageView
android:id="@+id/my_remind"
android:layout_width="40dp" android:layout_width="40dp"
android:layout_height="50dp" android:layout_height="50dp"
android:layout_margin="10dp" android:layout_marginTop="10dp"
android:layout_marginBottom="10dp"
android:layout_weight="1" android:layout_weight="1"
android:id="@+id/my_remind"
android:src="@mipmap/img_remind" /> android:src="@mipmap/img_remind" />
</LinearLayout> </LinearLayout>
<LinearLayout <LinearLayout
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="70dp" android:layout_height="70dp"
android:background="@drawable/shape_round_corner" android:background="@drawable/shape_round_corner_my"
android:orientation="horizontal" android:orientation="horizontal"
android:id="@+id/my_note_linear" android:id="@+id/my_note_linear"
android:layout_weight="1"> android:layout_weight="1">
<TextView <TextView
android:id="@+id/textView22" android:id="@+id/textView22"
android:layout_width="50dp" android:layout_width="15dp"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_gravity="center" android:layout_gravity="center"
android:layout_margin="15dp" android:layout_marginLeft="20dp"
android:layout_weight="1" android:layout_weight="1"
android:text="大事记" android:text="大事记"
android:textSize="18dp" /> android:textSize="18dp" />
@ -279,7 +289,7 @@
android:layout_width="40dp" android:layout_width="40dp"
android:layout_height="50dp" android:layout_height="50dp"
android:layout_marginTop="10dp" android:layout_marginTop="10dp"
android:layout_marginRight="20dp"
android:layout_weight="1" android:layout_weight="1"
android:id="@+id/my_note" android:id="@+id/my_note"
android:src="@mipmap/img_note" /> android:src="@mipmap/img_note" />
@ -288,10 +298,10 @@
<LinearLayout <LinearLayout
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="30dp" android:layout_height="60dp"
android:layout_marginBottom="10dp" android:layout_marginBottom="10dp"
android:id="@+id/safety" android:id="@+id/safety"
android:background="@drawable/shape_round_corner" android:background="@drawable/shape_round_corner_my"
android:orientation="horizontal"> android:orientation="horizontal">
<ImageView <ImageView
@ -323,10 +333,9 @@
<LinearLayout <LinearLayout
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="30dp" android:layout_height="60dp"
android:layout_marginTop="10dp"
android:layout_marginBottom="10dp" android:layout_marginBottom="10dp"
android:background="@drawable/shape_round_corner" android:background="@drawable/shape_round_corner_my"
android:orientation="horizontal"> android:orientation="horizontal">
<ImageView <ImageView
@ -368,11 +377,10 @@
<LinearLayout <LinearLayout
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="30dp" android:layout_height="60dp"
android:layout_marginTop="10dp"
android:layout_marginBottom="10dp" android:layout_marginBottom="10dp"
android:id="@+id/aboutUS" android:id="@+id/aboutUS"
android:background="@drawable/shape_round_corner" android:background="@drawable/shape_round_corner_my"
android:orientation="horizontal"> android:orientation="horizontal">
<ImageView <ImageView

@ -16,7 +16,7 @@
<androidx.recyclerview.widget.RecyclerView <androidx.recyclerview.widget.RecyclerView
android:id="@+id/newsCollectList" android:id="@+id/newsCollectList"
android:background="@color/light_grey" android:background="@drawable/background"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" /> android:layout_height="match_parent" />
</LinearLayout> </LinearLayout>

@ -2,6 +2,7 @@
xmlns:tools="http://schemas.android.com/tools" xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
android:background="@color/white"
tools:context="com.example.leudaemialikeme.Fragment.NewsHistoryFragment"> tools:context="com.example.leudaemialikeme.Fragment.NewsHistoryFragment">
<androidx.swiperefreshlayout.widget.SwipeRefreshLayout <androidx.swiperefreshlayout.widget.SwipeRefreshLayout
@ -15,7 +16,6 @@
<androidx.recyclerview.widget.RecyclerView <androidx.recyclerview.widget.RecyclerView
android:id="@+id/newsHistoryList" android:id="@+id/newsHistoryList"
android:background="@color/light_grey"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" /> android:layout_height="match_parent" />
</LinearLayout> </LinearLayout>

@ -5,113 +5,122 @@
android:layout_height="match_parent" android:layout_height="match_parent"
tools:context="com.example.leudaemialikeme.Fragment.PrivateMsgFragment"> tools:context="com.example.leudaemialikeme.Fragment.PrivateMsgFragment">
<!-- TODO: Update blank fragment layout -->
<TextView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:text="" />
<LinearLayout <LinearLayout
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
android:orientation="vertical"> android:orientation="vertical">
<LinearLayout <LinearLayout
android:background="@color/white"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="60dp" android:layout_height="wrap_content"
android:layout_margin="10dp" android:paddingTop="13dp"
android:orientation="horizontal"> android:paddingBottom="13dp"
<ImageView
android:layout_width="60dp" >
android:layout_height="60dp"
android:layout_weight="1"
android:src="@drawable/user1"
/>
<LinearLayout <LinearLayout
android:layout_width="150dp"
android:layout_height="60dp" android:layout_width="90dp"
android:layout_weight="1" android:layout_height="wrap_content"
android:orientation="vertical"> android:orientation="vertical">
<ImageView
android:id="@+id/nice_image_user"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_margin="10dp"
android:src="@drawable/img_user" />
</LinearLayout>
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="vertical"
android:paddingBottom="10dp">
<TextView <TextView
android:id="@+id/textView34" android:id="@+id/nice_attention_user"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:textSize="18dp" android:layout_marginBottom="10dp"
android:text="扭蛋爱世界" /> android:text="未关注用户" />
<TextView <TextView
android:id="@+id/textView35" android:id="@+id/user_nice_content"
android:layout_width="match_parent" android:layout_width="match_parent"
android:textSize="16dp"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:text="9-11 9:15 来自华为" /> android:text="收藏了你的帖子" />
</LinearLayout> </LinearLayout>
<Button
android:id="@+id/button5"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="1"
android:text="回复" />
</LinearLayout> </LinearLayout>
<TextView <View
android:id="@+id/textView36" android:layout_marginLeft="30dp"
android:layout_marginRight="30dp"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="1dp"
android:textSize="16dp" android:layout_gravity="bottom"
android:layout_marginLeft="20dp" android:background="@color/grey" />
android:text="赞了这条评论" />
<LinearLayout <LinearLayout
android:background="@color/white"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="150dp" android:layout_height="wrap_content"
android:background="@color/grey" android:paddingTop="10dp"
android:orientation="vertical"> android:paddingBottom="13dp">
<TextView <LinearLayout
android:id="@+id/textView37" android:layout_width="90dp"
android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:textSize="16dp" android:orientation="vertical">
android:layout_marginLeft="20dp"
android:layout_marginTop="10dp"
android:text="to用户123小白加油" />
<LinearLayout
android:layout_width="match_parent"
android:layout_height="100dp"
android:background="@color/white"
android:orientation="horizontal">
<ImageView <ImageView
android:layout_width="100dp" android:id="@+id/imageView12"
android:layout_height="100dp" android:layout_width="match_parent"
android:layout_marginLeft="20dp" android:layout_height="wrap_content"
android:src="@drawable/rec_news3" android:layout_margin="10dp"
/> android:src="@drawable/img_helper" />
</LinearLayout>
<LinearLayout <LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="vertical"
android:paddingBottom="10dp">
<TextView
android:id="@+id/textView20"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="10dp"
android:text="小白快跑" />
<TextView
android:id="@+id/textView31"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="wrap_content"
android:orientation="vertical"> android:text="收藏了你的帖子" />
<TextView
android:id="@+id/textView38"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:textSize="18dp"
android:layout_marginTop="10dp"
android:layout_marginLeft="10dp"
android:text="to用户124" />
<TextView
android:id="@+id/textView39"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:textSize="14dp"
android:layout_marginTop="10dp"
android:layout_marginLeft="10dp"
android:text="化疗真的很难受,想吃什么都有限制" />
</LinearLayout>
</LinearLayout> </LinearLayout>
</LinearLayout>
</LinearLayout>
<View
android:layout_marginLeft="30dp"
android:layout_marginRight="30dp"
android:layout_width="match_parent"
android:layout_height="1dp"
android:layout_gravity="bottom"
android:background="@color/grey" />
</LinearLayout> </LinearLayout>
</FrameLayout> </FrameLayout>

@ -15,7 +15,8 @@
<androidx.recyclerview.widget.RecyclerView <androidx.recyclerview.widget.RecyclerView
android:id="@+id/questionHistoryList" android:id="@+id/questionHistoryList"
android:background="@color/light_grey" android:background="@color/white"
android:paddingLeft="40dp"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" /> android:layout_height="match_parent" />
</LinearLayout> </LinearLayout>

@ -26,13 +26,13 @@
android:textStyle="bold" /> android:textStyle="bold" />
<LinearLayout <LinearLayout
android:layout_width="wrap_content" android:layout_width="396dp"
android:layout_height="71dp" android:layout_height="71dp"
android:orientation="horizontal"> android:orientation="horizontal">
<TextView <TextView
android:id="@+id/recNews_intro" android:id="@+id/recNews_intro"
android:layout_width="209dp" android:layout_width="wrap_content"
android:layout_height="56dp" android:layout_height="56dp"
android:layout_marginLeft="5dp" android:layout_marginLeft="5dp"
android:layout_marginTop="14dp" android:layout_marginTop="14dp"
@ -41,12 +41,6 @@
" "
android:textSize="12dp" /> android:textSize="12dp" />
<ImageView
android:id="@+id/recNews_image"
android:layout_width="128dp"
android:layout_height="wrap_content"
app:srcCompat="@drawable/rec_news1" />
</LinearLayout> </LinearLayout>
<LinearLayout <LinearLayout

@ -19,6 +19,7 @@
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:gravity="center" android:gravity="center"
android:paddingTop="10dp"
android:layout_margin="10dp" android:layout_margin="10dp"
android:text="TextView" /> android:text="TextView" />
</LinearLayout> </LinearLayout>
@ -36,6 +37,7 @@
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:gravity="center" android:gravity="center"
android:paddingTop="10dp"
android:layout_margin="10dp" android:layout_margin="10dp"
android:text="TextView" /> android:text="TextView" />
</LinearLayout> </LinearLayout>

@ -3,9 +3,9 @@
xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_width="334dp" android:layout_width="334dp"
android:background="@drawable/background" android:background="@color/white"
android:elevation="10dp" android:elevation="10dp"
android:layout_marginTop="10dp" android:layout_marginBottom="10dp"
android:orientation="vertical" android:orientation="vertical"
android:padding="15dp"> android:padding="15dp">

@ -7,6 +7,7 @@
android:background="@drawable/background" android:background="@drawable/background"
android:elevation="10dp" android:elevation="10dp"
android:layout_marginTop="10dp" android:layout_marginTop="10dp"
android:layout_marginBottom="6dp"
android:orientation="vertical" android:orientation="vertical"
android:padding="11dp"> android:padding="11dp">
@ -27,16 +28,7 @@
android:ellipsize="end" android:ellipsize="end"
android:text="问题" android:text="问题"
/> />
android:layout_height="wrap_content"
android:id="@+id/news"
android:layout_width="334dp"
android:layout_marginLeft="15dp"
android:layout_marginBottom="6dp"
android:background="@drawable/background"
android:elevation="10dp"
android:layout_marginTop="10dp"
android:orientation="vertical"
android:padding="11dp">
<TextView <TextView
android:id="@+id/questionInfo" android:id="@+id/questionInfo"

Loading…
Cancel
Save