自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(10)
  • 收藏
  • 关注

原创 AS add lo

<?xml version="1.0" encoding="utf-8"?><LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent"> <EditText andro.

2022-05-31 03:28:31 129

原创 AS add

public class MainActivity extends AppCompatActivity { final String TAG = "tag"; FloatingActionButton btn; TextView tv; ListView lv; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstan.

2022-05-30 23:54:27 122

原创 UserSettingsActivity

public class UserSettingsActivity extends BaseActivity{private Switch nightMode;private SharedPreferences sharedPreferences;private static boolean night_change;@Overrideprotected void onCreate(Bundle savedInstenseState) {s...

2022-05-30 22:36:07 141

原创 NoteDatabase

public class NoteDatabase extends SQLiteOpenHelper {public static final String TABLE_NAME="notes";public static final String CONTENT="content";//内容public static final String ID="_id";public static final String TIME="time";public st...

2022-05-30 22:35:38 173

原创 NoteActivity

public class NoteAdapter extends BaseAdapter implements Filterable {private Context mcontext;private List<Note> backList;//用来备份原始数据private List<Note>noteList;//这个数据是会改变的,所以要有个变量来备份一下原始数据private MyFilter mFilter;public N...

2022-05-30 22:35:07 97

原创 Note笔记

public class Note {private long id;private String content;//内容private String time;//创建时间private int tag;//笔记分类public Note(){}Note(String content, String time, int tag){this.content=content;this.time=time...

2022-05-30 22:33:51 172

原创 MainActivity

public class MainActivity extends BaseActivity implements AdapterView.OnItemClickListener, AdapterView.OnItemLongClickListener {private Toolbar myToolbar;private FloatingActionButton fab;private NoteDatabase dbHelper;private Context con...

2022-05-30 22:32:58 316

原创 EditActivity

public class EditActivity extends BaseActivity {private EditText et;private Context context = this;private Toolbar myToolbar;private String old_content = "";private String old_time = "";private int old_Tag = 1;private lon...

2022-05-30 22:32:06 188

原创 DBhelper

public class DBhelper {//增删改查SQLiteOpenHelper dbHandler;SQLiteDatabase db;private static final String[] colums={NoteDatabase.ID,NoteDatabase.CONTENT,NoteDatabase.TIME,NoteDatabase.MODE...

2022-05-30 22:31:09 707

原创 BaseActivity

public abstract class BaseActivity extends AppCompatActivity {public final String ACTION="NIGHT_SWITCH";protected BroadcastReceiver receiver;//接收器protected IntentFilter filter;//过滤protected void onCreate(Bundle savedInstanceState){...

2022-05-30 22:29:25 111 1

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除