Skip to content

Commit

Permalink
Almond updated to 1.0.8
Browse files Browse the repository at this point in the history
  • Loading branch information
saiaaaaaaa committed Apr 1, 2024
1 parent 389fa25 commit 3e9ac61
Show file tree
Hide file tree
Showing 6 changed files with 33 additions and 21 deletions.
Binary file modified customs-release.aar
Binary file not shown.
2 changes: 1 addition & 1 deletion customs/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ publishing {
maven(MavenPublication) {
groupId = 'com.github.saiaaaaaaa'
artifactId = 'Almond'
version = "1.0.7"
version = "1.0.8"
pom {
description = 'Almond'
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,18 @@

import android.app.Activity;
import android.view.View;
import android.view.WindowManager;

import java.util.Objects;

public class Fullscreen {
public static void enableFullscreen(Activity activity){
int UI_OPTIONS = View.SYSTEM_UI_FLAG_HIDE_NAVIGATION | View.SYSTEM_UI_FLAG_FULLSCREEN | View.SYSTEM_UI_FLAG_LAYOUT_STABLE | View.SYSTEM_UI_FLAG_IMMERSIVE_STICKY | View.SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION;
activity.getWindow().getDecorView().setSystemUiVisibility(UI_OPTIONS);
activity.getWindow().getDecorView().setSystemUiVisibility(WindowManager.LayoutParams.FLAG_FULLSCREEN | View.SYSTEM_UI_FLAG_HIDE_NAVIGATION);
Objects.requireNonNull(activity.getActionBar()).hide();
}

public static void disableFullscreen(Activity activity){
activity.getWindow().getDecorView().setSystemUiVisibility(View.VISIBLE);
Objects.requireNonNull(activity.getActionBar()).show();
}
}
36 changes: 20 additions & 16 deletions customs/src/main/res/layout/rounded_alert_dialog_layout.xml
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
xmlns:tools="http://schemas.android.com/tools"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:background="@drawable/rounded_alert_dialog_bg"
android:orientation="vertical">
android:background="@drawable/rounded_alert_dialog_bg">

<TextView
android:id="@+id/rounded_alert_dialog_title"
Expand All @@ -14,41 +13,46 @@
android:gravity="center_vertical"
android:paddingStart="24dp"
android:paddingEnd="24dp"
android:layout_marginTop="8dp"
android:text="@string/sample_text"
android:textAppearance="@style/TextAppearance.AppCompat.Widget.ActionBar.Title"
app:layout_constraintTop_toTopOf="parent"
tools:ignore="TextSizeCheck" />

<ScrollView
android:id="@+id/rounded_alert_dialog_view"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:overScrollMode="never">
android:overScrollMode="never"
app:layout_constraintBottom_toTopOf="@+id/constraintLayout"
app:layout_constraintTop_toBottomOf="@+id/rounded_alert_dialog_title"
app:layout_constraintVertical_bias="0.0">

</ScrollView>

<androidx.constraintlayout.widget.ConstraintLayout
android:id="@+id/constraintLayout"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:paddingBottom="16dp"
android:paddingStart="16dp"
android:paddingLeft="16dp"
android:paddingTop="12dp"
android:paddingEnd="16dp"
android:paddingRight="16dp"
android:paddingLeft="16dp"
android:paddingStart="16dp"
android:paddingTop="12dp">
android:paddingBottom="16dp"
app:layout_constraintBottom_toBottomOf="parent">

<androidx.appcompat.widget.AppCompatButton
android:id="@+id/rounded_alert_dialog_left_button"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginEnd="12dp"
android:layout_marginRight="12dp"
android:text="@string/sample_text"
android:padding="14dp"
android:visibility="gone"
android:background="@drawable/rounded_alert_dialog_button_bg"
android:padding="14dp"
android:text="@string/sample_text"
android:textAllCaps="false"
android:textColor="@color/white"
android:visibility="gone"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toStartOf="@+id/rounded_alert_dialog_right_button"
app:layout_constraintTop_toTopOf="parent" />
Expand All @@ -57,16 +61,16 @@
android:id="@+id/rounded_alert_dialog_right_button"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/sample_text"
android:padding="14dp"
android:visibility="gone"
android:background="@drawable/rounded_alert_dialog_button_bg"
android:padding="14dp"
android:text="@string/sample_text"
android:textAllCaps="false"
android:textColor="@color/white"
android:visibility="gone"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintTop_toTopOf="parent" />

</androidx.constraintlayout.widget.ConstraintLayout>

</LinearLayout>
</androidx.constraintlayout.widget.ConstraintLayout>
2 changes: 1 addition & 1 deletion jitpack.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ before_install:
- ./scripts/prepareJitpackEnvironment.sh
install:
- FILE="-Dfile=customs-release.aar"
- mvn install:install-file $FILE -DgroupId=com.github.saiaaaaaaa -DartifactId=Almond -Dversion=1.0.7 -Dpackaging=aar -DgeneratePom=true
- mvn install:install-file $FILE -DgroupId=com.github.saiaaaaaaa -DartifactId=Almond -Dversion=1.0.8 -Dpackaging=aar -DgeneratePom=true
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>com.github.saiaaaaaaa</groupId>
<artifactId>Almond</artifactId>
<version>1.0.7</version>
<version>1.0.8</version>
<packaging>pom</packaging>
<description>Almond</description>
</project>

0 comments on commit 3e9ac61

Please sign in to comment.