This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
🌞 Morning 57 commits █▋░░░░░░░░░░░░░░░░░░░ 8.3% | |
🌆 Daytime 102 commits ███▏░░░░░░░░░░░░░░░░░ 14.9% | |
🌃 Evening 450 commits █████████████▊░░░░░░░ 65.7% | |
🌙 Night 76 commits ██▎░░░░░░░░░░░░░░░░░░ 11.1% |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private void afterQ() { | |
ContentValues values = new ContentValues(); | |
values.put(MediaStore.Images.Media.DISPLAY_NAME, fileName); | |
values.put(MediaStore.Images.Media.MIME_TYPE, "image/*"); | |
// 파일을 write중이라면 다른곳에서 데이터요구를 무시하겠다는 의미입니다. | |
values.put(MediaStore.Images.Media.IS_PENDING, 1); | |
ContentResolver contentResolver = getContentResolver(); | |
Uri collection = MediaStore.Images.Media.getContentUri(MediaStore.VOLUME_EXTERNAL_PRIMARY); | |
Uri item = contentResolver.insert(collection, values); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private void beforeQ() { | |
String strFolderPath = Environment.getExternalStorageDirectory().getAbsolutePath() + CAPTURE_PATH; | |
File folder = new File(strFolderPath); | |
if (!folder.exists()) { | |
folder.mkdirs(); | |
} | |
OutputStream out = null; | |
String strFilePath = strFolderPath + "/"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class CustomViewHolder : BaseViewHolder<CustomViewHolder>() { | |
private var tvTitle : TextView? = null | |
private var tvItem : TextView? = null | |
override fun onCreate() : CustomViewHolder = CustomViewHolder() | |
override fun onBind(view : View): CustomViewHolder { | |
tvTitle = view.tv_title | |
tvItem = view.tv_item | |
return this |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
override fun getView(position: Int, view: View?, parent: ViewGroup?): View? { | |
var convertView = view | |
var viewHolder : ListViewHolder | |
if (convertView == null) { | |
convertView = LayoutInflater.from(context).inflate(layoutResId, parent, false) | |
viewHolder = ListViewHolder() | |
viewHolder.tvItem = convertView.tv_item | |
convertView.tag = viewHolder | |
} | |
else { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Nullable | |
public View getView(int position, @Nullable View view, @Nullable ViewGroup parent) { | |
View convertView = view; | |
if (view == null) { | |
convertView = LayoutInflater.from(this.context).inflate(this.layoutResId, parent, false); | |
} | |
if (convertView != null) { | |
TextView var10000 = (TextView)convertView.findViewById(id.tv_item); | |
if (var10000 != null) { | |
var10000.setText((CharSequence)this.items.get(position)); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class ListViewAdapter( | |
private val layoutResId : Int, | |
private val items : List<String> | |
) : BaseAdapter() { | |
// .. 중략 | |
override fun getView(position: Int, view: View?, parent: ViewGroup?): View? { | |
var convertView = view | |
if(convertView == null) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class ListViewAdapter( | |
private val layoutResId: Int, | |
private val items: List<String> | |
) : BaseAdapter() { | |
// .. 중략 | |
override fun getView(position: Int, view: View?, parent: ViewGroup?): View? { | |
var convertView = view | |
convertView = LayoutInflater.from(parent?.context).inflate(layoutResId, parent, false) |