» android の記事

~ fix Mac terminal cannot use aapt ~

connie 2019.06.21 | android, Mac OSX | | No Comments

cd ~
touch .bash_profile
nano .bash_profile

AAPT_HOME=/Users/xxx/Library/Android/sdk/build-tools/28.0.3
export AAPT_HOME
export PATH=$PATH:$AAPT_HOME

~ android studio view 2 files side by side ~

connie 2019.06.03 | android | | No Comments

Android resource linking failed
xxx/res/layout/login_landscape.xml:2: error: attribute layout_constraintBottom_toBottomOf (aka xxx:layout_constraintBottom_toBottomOf) not found.

~ android button action example ~

connie 2019.05.30 | android | | No Comments
ImageButton registerBtn;

registerBtn = (ImageButton)findViewById(R.id.loginBtn) ;

registerBtn.setOnClickListener(new View.OnClickListener() {
public void onClick(View v) {
Log.d("test","connie");
}
});
<EditText
android:id="@+id/editText2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:ems="10"
android:inputType="textPersonName"
android:background="@drawable/text_field_bg"
android:padding="5dp"
android:hint="請輸入帳號(4-16英數)"/>

~ fix version conflict of google-services ~

connie 2019.05.29 | android | | No Comments
將所有com.google.android.gms變做統一version

~ android studio res drawable file ~

connie 2019.05.29 | android | | No Comments

File-based resource names must contain only lowercase a-z, 0-9, or underscore

~ android disable back button in activity ~

connie 2015.11.03 | android | | No Comments

commnet all the things in
public void onBackPressed(){

}

~ android studio include library ~

connie 2015.10.30 | android | | No Comments

add new andorid library
Gradle
build.gradle(module:app)

compile project(':libraryname');

 

sync

« Previous Page | HOME |

Smiley face

June 2019
S M T W T F S
« May    
 1
2345678
9101112131415
16171819202122
23242526272829
30