Skip to content

Commit ef61a7e

Browse files
committed
ui updated
1 parent 45db8de commit ef61a7e

File tree

3 files changed

+19
-4
lines changed

3 files changed

+19
-4
lines changed

app/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,6 @@ dependencies {
5050
implementation 'com.google.android.material:material:1.8.0'
5151
implementation 'com.google.code.gson:gson:2.9.0'
5252

53-
implementation project(':libDriveBackup')
54-
// implementation 'com.github.fcat97:driveBackupApi:1.0.4'
53+
// implementation project(':libDriveBackup')
54+
implementation 'com.github.fcat97:driveBackupApi:1.0.4'
5555
}

app/src/main/java/com/tos/drivebackup/MainActivity.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,7 @@ class MainActivity : ComponentActivity() {
9696
terminalOutputLiveData.observe(this) { terminal.text = it }
9797

9898
getCurrentEmail()
99+
printToTerminal("[Welcome to drive backup]:")
99100
}
100101

101102
private fun startSendFlow() {

app/src/main/res/layout/main_activity.xml

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,29 @@
33
android:layout_width="match_parent"
44
android:layout_height="match_parent"
55
xmlns:tools="http://schemas.android.com/tools"
6+
xmlns:app="http://schemas.android.com/apk/res-auto"
67
android:orientation="vertical">
78

9+
<com.google.android.material.appbar.AppBarLayout
10+
android:id="@+id/appbar"
11+
android:layout_width="match_parent"
12+
android:layout_height="wrap_content">
13+
<com.google.android.material.appbar.MaterialToolbar
14+
android:layout_width="match_parent"
15+
android:layout_height="wrap_content"
16+
android:background="?attr/colorPrimary"
17+
app:titleTextColor="@color/white"
18+
app:title="Drive Backup"/>
19+
</com.google.android.material.appbar.AppBarLayout>
20+
21+
822
<!-- Main content -->
923
<ScrollView
1024
android:id="@+id/buttonsScrollView"
1125
android:layout_width="match_parent"
1226
android:layout_height="0dp"
13-
android:layout_above="@id/scrollView"
14-
android:layout_alignParentTop="true">
27+
android:layout_below="@id/appbar"
28+
android:layout_above="@id/scrollView">
1529
<LinearLayout
1630
android:layout_width="match_parent"
1731
android:layout_height="wrap_content"

0 commit comments

Comments
 (0)