Skip to content

Instantly share code, notes, and snippets.

@Muraveiko
Muraveiko / ImgSizeEdit.java
Last active March 21, 2024 15:26
Custom size edit
import android.print.PrintAttributes;
import android.view.View;
import android.widget.AdapterView;
import android.widget.Spinner;
import androidx.lifecycle.LifecycleOwner;
import androidx.lifecycle.MutableLiveData;
import com.google.android.material.textfield.TextInputEditText;
import com.google.android.material.textview.MaterialTextView;
VID-1f3a-PID-efe8 ― устанавливается программой LiveSuit для прошивки устройства. он всегда будет показываться с восклицательным знаком!
оставляем его в покое ― пусть висит с восклицательным.
@Muraveiko
Muraveiko / AndroidManifest.xml
Created January 21, 2018 21:32 — forked from zaki50/AndroidManifest.xml
ためしに PrintService を作ってみた
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="org.zakky.myprintservice"
android:versionCode="1"
android:versionName="1.0" >
<uses-sdk
android:minSdkVersion="19"
android:targetSdkVersion="19" />
@Muraveiko
Muraveiko / AndroidManifest.xml
Created January 21, 2018 21:32 — forked from zaki50/AndroidManifest.xml
ためしに PrintService を作ってみた
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="org.zakky.myprintservice"
android:versionCode="1"
android:versionName="1.0" >
<uses-sdk
android:minSdkVersion="19"
android:targetSdkVersion="19" />
@Muraveiko
Muraveiko / Migration_new_table
Last active August 11, 2017 13:12
new table template
<?php defined('BASEPATH') OR exit('No direct script access allowed');
class Migration_ extends CI_Migration {
protected $tableName = '';
public function up() {
$this->dbforge->add_field(array(
'id' => array(
'type' => 'int',
// -------------------------------------------------------------------
// GET & SET
// ------------------------------------------------------------------
// -------------------------------------------------------------------
// GET & SET
// ------------------------------------------------------------------