摘要: 缓存基础类 import android.content.Context; import android.content.SharedPreferences; public class CacheParam { / 得到缓存的值 / public static boolean getkey(Cont 阅读全文
posted @ 2019-02-11 23:02 一叶孤城 阅读(868) 评论(0) 推荐(0)
摘要: 布局代码 <! android:background="@drawable/btnselector" 后台代码 import android.app.Activity; import android.content.Intent; import android.os.Bundle; import a 阅读全文
posted @ 2019-02-11 22:59 一叶孤城 阅读(912) 评论(0) 推荐(0)
摘要: 后台代码 Spinner spxl = (Spinner) findViewById(R.id.SpinnerXL); Spinner sptk = (Spinner) findViewById(R.id.SpinnerTK); Spinner sptktitle = (Spinner) findV 阅读全文
posted @ 2019-02-11 22:53 一叶孤城 阅读(154) 评论(0) 推荐(0)
摘要: 1、消息框 btn01.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { AlertDialog.Builder ab = new AlertDialog.Builder(B 阅读全文
posted @ 2019-02-11 22:46 一叶孤城 阅读(296) 评论(0) 推荐(0)
摘要: 1、创建弹框的公共类 import android.app.AlertDialog; import android.content.Context; public class DialogBase { public static void showmessage(Context context, S 阅读全文
posted @ 2019-02-11 22:36 一叶孤城 阅读(264) 评论(0) 推荐(0)