From 46cd597c0f1ec8a0517b7a8e38d1f8d783291222 Mon Sep 17 00:00:00 2001 From: Thomas Date: Tue, 30 Jun 2020 13:33:43 +0200 Subject: [PATCH] My videos --- app/src/main/AndroidManifest.xml | 5 ++ .../fedilab/fedilabtube/LoginActivity.java | 14 ++-- .../app/fedilab/fedilabtube/MainActivity.java | 18 +++-- .../fedilab/fedilabtube/MyVideosActivity.java | 54 +++++++++++++++ .../fedilab/fedilabtube/PeertubeActivity.java | 22 +++--- .../RetrievePeertubeChannelsAsyncTask.java | 2 +- .../fedilabtube/client/HttpsConnection.java | 3 - .../fedilabtube/client/PeertubeAPI.java | 4 +- .../helper/CacheDataSourceFactory.java | 4 +- .../ic_baseline_personal_video_24.xml | 10 +++ app/src/main/res/layout/activity_login.xml | 68 ++++++++++--------- .../res/layout/activity_peertube_upload.xml | 6 +- app/src/main/res/menu/main_menu.xml | 5 ++ 13 files changed, 146 insertions(+), 69 deletions(-) create mode 100644 app/src/main/java/app/fedilab/fedilabtube/MyVideosActivity.java create mode 100644 app/src/main/res/drawable/ic_baseline_personal_video_24.xml diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index dc0dd57..def0a18 100644 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -58,6 +58,11 @@ android:configChanges="orientation|screenSize" android:label="@string/app_name" android:windowSoftInputMode="stateAlwaysHidden" /> + + + diff --git a/app/src/main/res/layout/activity_login.xml b/app/src/main/res/layout/activity_login.xml index 4087787..dce906f 100644 --- a/app/src/main/res/layout/activity_login.xml +++ b/app/src/main/res/layout/activity_login.xml @@ -7,13 +7,14 @@ + android:layout_height="wrap_content"> + + android:layout_height="match_parent" + android:orientation="vertical"> + + android:layout_height="match_parent" + android:orientation="vertical"> + app:layout_constraintTop_toTopOf="parent" /> + + app:layout_constraintTop_toBottomOf="@id/instance"> + + android:layout_height="match_parent" + android:padding="10dp"> + + android:contentDescription="@string/profile_picture" + app:layout_constraintStart_toStartOf="parent" + app:layout_constraintTop_toTopOf="parent" /> + + android:layout_height="wrap_content" + android:layout_marginStart="20dp" + android:textSize="18sp" + app:layout_constraintStart_toEndOf="@+id/profile_picture" + app:layout_constraintTop_toTopOf="parent" /> + + app:layout_constraintStart_toEndOf="@+id/profile_picture" + app:layout_constraintTop_toTopOf="@+id/displayname" /> diff --git a/app/src/main/res/layout/activity_peertube_upload.xml b/app/src/main/res/layout/activity_peertube_upload.xml index 24c505d..fead287 100644 --- a/app/src/main/res/layout/activity_peertube_upload.xml +++ b/app/src/main/res/layout/activity_peertube_upload.xml @@ -83,12 +83,12 @@ android:id="@+id/video_title" android:layout_width="300dp" android:layout_height="wrap_content" + android:layout_gravity="center" android:layout_marginTop="20dp" android:hint="@string/title_video_peertube" + android:importantForAutofill="no" android:inputType="text" - android:singleLine="true" - android:layout_gravity="center" - android:importantForAutofill="no" /> + android:singleLine="true" />