摘要:
///////////////////////////////////////代码 package com.example.administrator.myapplication;import android.support.v7.app.AppCompatActivity;import andro 阅读全文
摘要:
/*计数器*/mEtExplain.addTextChangedListener(new TextWatcher() { public int myselectionStart; public int myselectionEnd; @Override public void beforeTextC 阅读全文
摘要:
//图片public class PhotoViewPager extends ViewPager { public PhotoViewPager(@NonNull Context context) { this(context, null); } public PhotoViewPager(@No 阅读全文
摘要:
public class MainActivity extends Activity implements OnClickListener { private Button submitButton; private Button confirmButton; private TextView te 阅读全文
摘要:
<ListView android:id="@+id/listView1" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_centerHorizontal="true" 阅读全文
摘要:
public void startCamera(View view){ Intent intent=new Intent(MediaStore.ACTION_IMAGE_CAPTURE); startActivityForResult(intent, 1); }//用于页面显示 @Overridep 阅读全文
摘要:
// 创建ViewHoler public class ViewHolder{ private final SparseArray<View> mViews; private int mPosition; private View mConvertView; private ViewHolder(C 阅读全文
摘要:
List<String> lists = new ArrayList<>();StringBuffer sb = new StringBuffer();try { List<MdChestCardBean> changeSelectorBeanList = new Gson().fromJson(r 阅读全文
摘要:
public class InputMethodUtil { private InputMethodUtil() { throw new UnsupportedOperationException("Cannot be instantiated"); } public static void cha 阅读全文
摘要:
String time = "2018-08-04 02:30:00";SimpleDateFormat df = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); Calendar calendar = Calendar.getInstance();try 阅读全文