Add ScrollViews to DeepLink view (#923)

### Describe what your pull request does and which issue you’re targeting
<!-- Create a new issue, if it doesn't exist yet -->
Closes #921
<br><br>

<!-- Make sure you are targeting the "main" branch, pull requests on release branches are only allowed for bug fixes. -->

- [X] I carefully read the [contribution guidelines](https://codeberg.org/GitNex/GitNex/src/branch/main/CONTRIBUTING.md).
- [X] I'm following the code standards as defined [here](https://codeberg.org/gitnex/GitNex/wiki/Code-Standards).
- [X] By submitting this pull request, I permit GitNex to license my work under the [GNU General Public License v3](https://codeberg.org/GitNex/GitNex/src/branch/main/LICENSE).

Co-authored-by: qwerty287 <ndev@web.de>
Reviewed-on: https://codeberg.org/gitnex/GitNex/pulls/923
Reviewed-by: M M Arif <mmarif@noreply.codeberg.org>
Reviewed-by: opyale <opyale@noreply.codeberg.org>
Co-authored-by: qwerty287 <qwerty287@noreply.codeberg.org>
Co-committed-by: qwerty287 <qwerty287@noreply.codeberg.org>
This commit is contained in:
qwerty287 2021-05-30 20:57:02 +02:00 committed by opyale
parent 881aad5f2d
commit d458d60122

View File

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<RelativeLayout android:layout_width="match_parent" <LinearLayout android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:app="http://schemas.android.com/apk/res-auto"
android:background="?attr/primaryBackgroundColor" android:background="?attr/primaryBackgroundColor"
@ -12,121 +12,134 @@
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:indeterminate="true" android:indeterminate="true"
style="@style/Widget.MaterialComponents.LinearProgressIndicator" style="@style/Widget.MaterialComponents.LinearProgressIndicator"
android:layout_centerInParent="true"
app:indicatorColor="?attr/progressIndicatorColor" /> app:indicatorColor="?attr/progressIndicatorColor" />
<LinearLayout <ScrollView
android:id="@+id/addNewAccountFrame"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:paddingTop="32dp" android:orientation="horizontal">
android:paddingBottom="16dp"
android:paddingStart="16dp"
android:paddingEnd="16dp"
android:visibility="gone"
android:orientation="vertical">
<TextView <LinearLayout
android:id="@+id/addAccountText"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:text="@string/accountDoesNotExist" android:orientation="horizontal">
android:textColor="?attr/primaryTextColor"
android:textSize="16sp" />
<Button <LinearLayout
android:id="@+id/addNewAccount" android:id="@+id/addNewAccountFrame"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="60dp" android:layout_height="wrap_content"
android:text="@string/addNewAccountText" android:paddingTop="32dp"
android:textColor="@color/btnTextColor" android:paddingBottom="16dp"
android:textSize="16sp" android:paddingStart="16dp"
android:layout_marginTop="24dp" /> android:paddingEnd="16dp"
android:visibility="gone"
android:orientation="vertical">
<Button <TextView
android:id="@+id/openInBrowser" android:id="@+id/addAccountText"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="60dp" android:layout_height="wrap_content"
android:text="@string/openWebRepo" android:text="@string/accountDoesNotExist"
android:textColor="@color/btnTextColor" android:textColor="?attr/primaryTextColor"
android:textSize="16sp" android:textSize="16sp" />
android:layout_marginTop="8dp" />
<Button <Button
android:id="@+id/launchApp" android:id="@+id/addNewAccount"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="60dp" android:layout_height="60dp"
android:text="@string/launchApp" android:text="@string/addNewAccountText"
android:textColor="@color/btnTextColor" android:textColor="@color/btnTextColor"
android:textSize="16sp" android:textSize="16sp"
android:layout_marginTop="8dp" /> android:layout_marginTop="24dp" />
</LinearLayout> <Button
android:id="@+id/openInBrowser"
android:layout_width="match_parent"
android:layout_height="60dp"
android:text="@string/openWebRepo"
android:textColor="@color/btnTextColor"
android:textSize="16sp"
android:layout_marginTop="8dp" />
<LinearLayout <Button
android:id="@+id/noActionFrame" android:id="@+id/launchApp"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="60dp"
android:paddingTop="32dp" android:text="@string/launchApp"
android:paddingBottom="16dp" android:textColor="@color/btnTextColor"
android:paddingStart="16dp" android:textSize="16sp"
android:paddingEnd="16dp" android:layout_marginTop="8dp" />
android:visibility="gone"
android:orientation="vertical">
<TextView </LinearLayout>
android:id="@+id/noActionText"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/noActionText"
android:textColor="?attr/primaryTextColor"
android:textSize="16sp" />
<Button <LinearLayout
android:id="@+id/repository" android:id="@+id/noActionFrame"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="60dp" android:layout_height="wrap_content"
android:text="@string/navRepos" android:paddingTop="32dp"
android:textColor="@color/btnTextColor" android:paddingBottom="16dp"
android:textSize="16sp" android:paddingStart="16dp"
android:layout_marginTop="24dp" /> android:paddingEnd="16dp"
android:visibility="gone"
android:orientation="vertical">
<Button <TextView
android:id="@+id/organization" android:id="@+id/noActionText"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="60dp" android:layout_height="wrap_content"
android:text="@string/navOrg" android:text="@string/noActionText"
android:textColor="@color/btnTextColor" android:textColor="?attr/primaryTextColor"
android:textSize="16sp" android:textSize="16sp" />
android:layout_marginTop="8dp" />
<Button <Button
android:id="@+id/notification" android:id="@+id/repository"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="60dp" android:layout_height="60dp"
android:text="@string/pageTitleNotifications" android:text="@string/navRepos"
android:textColor="@color/btnTextColor" android:textColor="@color/btnTextColor"
android:textSize="16sp" android:textSize="16sp"
android:layout_marginTop="8dp" /> android:layout_marginTop="24dp" />
<Button <Button
android:id="@+id/explore" android:id="@+id/organization"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="60dp" android:layout_height="60dp"
android:text="@string/navExplore" android:text="@string/navOrg"
android:textColor="@color/btnTextColor" android:textColor="@color/btnTextColor"
android:textSize="16sp" android:textSize="16sp"
android:layout_marginTop="8dp" /> android:layout_marginTop="8dp" />
<Button <Button
android:id="@+id/launchApp2" android:id="@+id/notification"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="60dp" android:layout_height="60dp"
android:text="@string/launchApp" android:text="@string/pageTitleNotifications"
android:textColor="@color/btnTextColor" android:textColor="@color/btnTextColor"
android:textSize="16sp" android:textSize="16sp"
android:layout_marginTop="8dp" /> android:layout_marginTop="8dp" />
</LinearLayout> <Button
android:id="@+id/explore"
android:layout_width="match_parent"
android:layout_height="60dp"
android:text="@string/navExplore"
android:textColor="@color/btnTextColor"
android:textSize="16sp"
android:layout_marginTop="8dp" />
</RelativeLayout> <Button
android:id="@+id/launchApp2"
android:layout_width="match_parent"
android:layout_height="60dp"
android:text="@string/launchApp"
android:textColor="@color/btnTextColor"
android:textSize="16sp"
android:layout_marginTop="8dp" />
</LinearLayout>
</LinearLayout>
</ScrollView>
</LinearLayout>