Skip to content

Commit

Permalink
コメントの追加、ロゴを傾けた
Browse files Browse the repository at this point in the history
  • Loading branch information
hichioka committed Dec 4, 2017
1 parent ceff641 commit 9ab61cf
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,17 +35,20 @@ protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_pay);


//requestボタンを押したときの処理
Button requestButton = (Button) findViewById(R.id.request);
requestButton.setOnClickListener(new View.OnClickListener()

{
public void onClick(View v) {

//RequestActivity.classに画面遷移
Intent requestIntent = new Intent(getApplication(), RequestActivity.class);
startActivity(requestIntent);
}
});

//sendボタンを押したときの処理
Button sendButton = (Button) findViewById(R.id.send);
sendButton.setOnClickListener(new View.OnClickListener() {

Expand Down Expand Up @@ -94,18 +97,19 @@ public Dialog onCreateDialog(Bundle savedInstanceState) {

AlertDialog.Builder alert = new AlertDialog.Builder(getActivity());

//アラートのタイトル
//alert.setTitle("How would you like to send money?");
alert.setItems(menulist, new DialogInterface.OnClickListener() {
@Override
public void onClick(DialogInterface dialog, int idx) {

// アラートの選択肢
// アラートの選択肢を押したときの処理
if (idx == 0) {
//アラートを押したら画面遷移
//アラートを押したらShowQRActivity.classに画面遷移
Intent sendIntent = new Intent(getActivity().getApplication(), ShowQRActivity.class);
startActivity(sendIntent);
//}
} else {
} else {//アラートを押したらSendContactActivity.classに画面遷移
Intent scanIntent = new Intent(getActivity().getApplication(), SendContactActivity.class);
startActivity(scanIntent);
}
Expand Down
3 changes: 2 additions & 1 deletion app/src/main/res/layout/content_pay.xml
Original file line number Diff line number Diff line change
Expand Up @@ -67,5 +67,6 @@
app:layout_constraintRight_toRightOf="parent"
app:layout_constraintTop_toBottomOf="@+id/linearLayout2"
app:layout_constraintVertical_bias="1.0"
app:srcCompat="@drawable/logo" />
app:srcCompat="@drawable/logo"
android:rotation="25"/>
</android.support.constraint.ConstraintLayout>

0 comments on commit 9ab61cf

Please sign in to comment.