Skip to content

Commit

Permalink
summarization.xml modified
Browse files Browse the repository at this point in the history
  • Loading branch information
Harounnn committed Apr 25, 2024
1 parent 43e0333 commit 61c6229
Show file tree
Hide file tree
Showing 2 changed files with 87 additions and 0 deletions.
14 changes: 14 additions & 0 deletions app/src/main/java/com/example/readitai/Hub.java
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
package com.example.readitai;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;

import androidx.appcompat.app.AppCompatActivity;

Expand All @@ -10,5 +13,16 @@ public class Hub extends AppCompatActivity {
protected void onCreate(Bundle savedInstanceState){
super.onCreate(savedInstanceState);
setContentView(R.layout.hub);

Button button = (Button) findViewById(R.id.loginButton);
button.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
Intent intent = new Intent(Hub.this, MainActivity.class);
startActivity(intent);
}
});
}


}
73 changes: 73 additions & 0 deletions app/src/main/res/layout/summarization.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,77 @@
android:layout_width="match_parent"
android:layout_height="match_parent">

<androidx.appcompat.widget.Toolbar
android:layout_width="match_parent"
android:layout_height="?attr/actionBarSize"
android:layout_marginTop="0dp"
android:background="@color/darkGray"
android:id="@+id/toolbarsum">

<RelativeLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:gravity="center_vertical">

<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerHorizontal="true"
android:text="Read IT AI"
android:textStyle="bold"
android:textSize="20sp"
android:textColor="@color/blue">
</TextView>

</RelativeLayout>

</androidx.appcompat.widget.Toolbar>

<ImageView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@id/toolbarsum"
android:src="@drawable/ic_launcher_background"
android:id="@+id/imagesum"
android:background="@color/lightBlue">

</ImageView>

<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@id/imagesum"
android:text="Headline is heeeeere"
android:background="@color/darkGray"
android:textColor="@color/blue"
android:textAlignment="center"
android:id="@+id/headline"
android:textStyle="bold">

</TextView>
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@id/headline"
android:text="Summarization is heeeeere hhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh"
android:background="@color/darkGray"
android:textColor="@color/lightBlue"
android:textAlignment="center"
android:id="@+id/summary">

</TextView>
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@id/summary"
android:text="link"
android:autoLink="web"
android:linksClickable="true"
android:background="@color/darkGray"
android:textColor="@color/lightBlue"
android:textAlignment="center"
android:id="@+id/link">

</TextView>

</android.widget.RelativeLayout>

0 comments on commit 61c6229

Please sign in to comment.