前提・実現したいこと
android studioでandroid アプリを作成する。
実現で困っているのはアプリの内容は図書館の蔵書をキーワードで検索しそのキーワードに合致する本の情報を取得して表示させることです。
本のデータは作者名、タイトル、それぞれのカナ、配架、巻数、巻ソート、出版年代、蔵書棚の九つの種類に分類されたデータをexcelfileにまとめてあります。
外部のデータベースとWEBAPIを用いて実現しようと考えたのですがとっかかりが無さ過ぎてわからず断念しました。
javaは授業で学んだ程度なので書いてあれば読める程度で、アプリ開発も初めてなのでどのような切り口でやればいいのかも分からないので助言の方をお願いいたします。
使用しているのはandroid studioは3.2でpcはwindows10で開発を行っています。
検索するactivityとそのlayoutを以下に示します。
出来ればmanifest?などの他の変更部分も教えていただけるとありがたいです。
よろしくお願いいたします。
activity_sub.xml
<?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"
android:background="#fee"
tools:context=".MainActivity">
<Button android:id="@+id/return_button" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_margin="20dp" android:text="@string/home" android:textSize="30sp" app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintLeft_toLeftOf="parent" app:layout_constraintRight_toRightOf="parent" app:layout_constraintTop_toTopOf="parent" app:layout_constraintVertical_bias="0.906" />
</android.support.constraint.ConstraintLayout>
SubActivity.java
package com.example.manga;
import android.annotation.SuppressLint;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.widget.Button;
@SuppressLint("Registered")
public class SubActivity extends AppCompatActivity {
@Override protected void onCreate(Bundle savedInstanceState){ super.onCreate(savedInstanceState); setContentView(R.layout.activity_sub); Button returnButton=findViewById(R.id.return_button); returnButton.setOnClickListener(new View.OnClickListener(){ @Override public void onClick(View v){ finish(); } }); }
}
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。