» 2019 » May の記事

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


<?xml version="1.0" encoding="utf-8"?>
<android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".MainActivity">

<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_marginStart="8dp"
android:layout_marginLeft="8dp"
android:layout_marginTop="8dp"
android:layout_marginEnd="8dp"
android:layout_marginRight="8dp"
android:layout_marginBottom="8dp"
android:orientation="horizontal"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent">

<TableLayout
android:layout_width="300dp"
android:layout_height="match_parent"
android:gravity="center">

<TableRow
android:layout_width="match_parent"
android:layout_height="match_parent">

<Button
android:id="@+id/button10"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Button1" />
</TableRow>

<TableRow
android:layout_width="match_parent"
android:layout_height="match_parent">

<Button
android:id="@+id/button11"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Button3" />
</TableRow>

</TableLayout>

<TableLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:gravity="center">

<TableRow
android:layout_width="match_parent"
android:layout_height="match_parent">

<Button
android:id="@+id/button13"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Button4" />
</TableRow>

<TableRow
android:layout_width="match_parent"
android:layout_height="match_parent" />

<TableRow
android:layout_width="match_parent"
android:layout_height="match_parent" />

<TableRow
android:layout_width="match_parent"
android:layout_height="match_parent" />
</TableLayout>
</LinearLayout>
</android.support.constraint.ConstraintLayout>

~ Sourcetree add remote branch ~

connie 2019.05.28 | git | | No Comments

-commit
-create a new local branch
-push to remotes
-select the new local branch and tick it
-then u will push to new branch on remote server
-and delete the local branch

~ git useful command ~

connie 2019.05.17 | git | | No Comments
#create git
git --bare init

#List branch
git branch

#create Branch
git branch new-branch

#del branch
git branch -D new-branch

~ 掃ipa內的framework ~

connie 2019.05.16 | ios, xcode | | No Comments

xxx.ipa => xxx.zip
unzip
otool -L xxx.app/xxx

~ ios 出invalidProductIdentifiers ~

connie 2019.05.15 | xcode | | No Comments

1)有無手機上網
2)bundle id 岩唔岩
3)in-app purchase 有無填
4)in-app purchase item 有無tick Cleared for Sale
5)itune connect account <agreement, tax, banking> paid apps agreement 是否在active狀態

« Previous Page | HOME |

Smiley face

May 2019
S M T W T F S
 1234
567891011
12131415161718
19202122232425
262728293031