first commit

master
unknown 6 years ago
parent 9a4bbd9fbc
commit ecdd90e2cf

@ -1,6 +1,6 @@
package com.nice.mydiary.bean;
/*操作数据库所需要的方法类*/
public class DiaryBean {
private String date;
private String title;

@ -100,7 +100,6 @@ public class DiaryAdapter extends RecyclerView.Adapter<DiaryAdapter.DiaryViewHol
DiaryViewHolder(View view){
super(view);
mIvCircle = (ImageView) view.findViewById(R.id.main_iv_circle);
mTvDate = (TextView) view.findViewById(R.id.main_tv_date);
mTvTitle = (TextView) view.findViewById(R.id.main_tv_title);
mTvContent = (TextView) view.findViewById(R.id.main_tv_content);

@ -9,7 +9,7 @@ import android.view.View;
import android.view.ViewGroup;
/**
*
*
*
*/
public class StatusBarCompat
@ -25,6 +25,7 @@ public class StatusBarCompat
{
if (statusColor != INVALID_VAL)
{
//
activity.getWindow().setStatusBarColor(statusColor);
}
return;

@ -10,6 +10,7 @@ import android.graphics.PathEffect;
import android.util.AttributeSet;
import android.widget.EditText;
/*自定义的文本编辑器*/
@SuppressLint({ "ResourceAsColor", "DrawAllocation" })

@ -1,82 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/item_first"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:paddingRight="10dp"
android:background="@color/white"
>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="25dp"
android:orientation="horizontal"
android:paddingLeft="10.8dp"
android:background="#ffffff"
>
<ImageView
android:id="@+id/main_iv_circle"
android:paddingTop="2dp"
android:layout_width="22dp"
android:layout_height="22dp"
android:src="@drawable/circle_orange"
android:layout_gravity="center_vertical"
/>
<TextView
android:id="@+id/main_tv_date"
android:layout_width="0dp"
android:layout_weight="1"
android:layout_height="25dp"
android:gravity="center_vertical"
android:paddingLeft="4dp"
android:paddingTop="1dp"
android:text="2017年01月18日"
android:textSize="14sp"
/>
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
>
<LinearLayout
android:layout_width="23dp"
android:layout_height="match_parent"
android:background="@drawable/linear_style"
>
</LinearLayout>
<LinearLayout
android:id="@+id/item_ll_control"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
>
<TextView
android:paddingTop="5dp"
android:background="#ffffff"
android:id="@+id/main_tv_content"
android:layout_width="match_parent"
android:layout_height="50dp"
android:lineSpacingExtra="4dp"
android:paddingLeft="33dp"
android:paddingRight="15dp"
android:text="今天,你什么都没写下..."
android:textColor="@color/gray"
android:textSize="16sp"
/>
</LinearLayout>
</LinearLayout>
</LinearLayout>
Loading…
Cancel
Save