forked from HMS-Core/hms-AREngine-demo
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
160 additions
and
89 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 24 additions & 0 deletions
24
Recorder3D/src/main/java/com/remmel/recorder3d/FilenameFilterUtils.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
package com.remmel.recorder3d; | ||
|
||
import java.io.File; | ||
import java.io.FilenameFilter; | ||
|
||
public class FilenameFilterUtils { | ||
public static FilenameFilter isDir() { | ||
return new FilenameFilter() { | ||
@Override | ||
public boolean accept(File current, String name) { | ||
return new File(current, name).isDirectory(); | ||
} | ||
}; | ||
} | ||
|
||
public static FilenameFilter endsWith(String endsWith) { | ||
return new FilenameFilter() { | ||
@Override | ||
public boolean accept(File current, String name) { | ||
return name.endsWith(endsWith); | ||
} | ||
}; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,67 +1,99 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" | ||
xmlns:app="http://schemas.android.com/apk/res-auto" | ||
android:layout_width="match_parent" | ||
android:layout_height="match_parent" | ||
android:background="@color/black"> | ||
android:layout_height="match_parent"> | ||
|
||
<androidx.constraintlayout.widget.ConstraintLayout | ||
android:id="@+id/header" | ||
android:layout_width="match_parent" | ||
android:layout_height="30dp" | ||
android:layout_alignParentTop="true" | ||
android:background="#689F38"> | ||
|
||
<TextView | ||
android:id="@+id/choose_txt_header" | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
android:gravity="center" | ||
android:text="HEADER" | ||
android:textColor="#FFFFFF" | ||
android:textSize="25sp" | ||
app:layout_constraintBottom_toBottomOf="parent" /> | ||
</androidx.constraintlayout.widget.ConstraintLayout> | ||
|
||
<ScrollView | ||
android:layout_width="match_parent" | ||
android:layout_height="match_parent"> | ||
android:layout_height="match_parent" | ||
android:layout_above="@+id/footer" | ||
android:layout_below="@+id/header"> | ||
|
||
<LinearLayout | ||
android:id="@+id/choose_linearlayout" | ||
android:layout_width="match_parent" | ||
android:layout_height="match_parent" | ||
android:orientation="vertical"> | ||
|
||
<Button | ||
android:id="@+id/btn_recorder" | ||
android:layout_width="match_parent" | ||
android:layout_height="40dp" | ||
android:layout_marginLeft="20dp" | ||
android:layout_marginRight="20dp" | ||
android:layout_marginBottom="20dp" | ||
android:background="@drawable/selector_reset" | ||
android:gravity="center" | ||
android:onClick="onClick" | ||
android:text="Recorder" | ||
android:textAllCaps="false" | ||
android:textColor="@color/white" /> | ||
|
||
<Button | ||
android:id="@+id/btn_recorder_settings" | ||
android:layout_width="match_parent" | ||
android:layout_height="40dp" | ||
android:layout_marginLeft="20dp" | ||
android:layout_marginRight="20dp" | ||
android:layout_marginBottom="20dp" | ||
android:background="@drawable/selector_reset" | ||
android:gravity="center" | ||
android:onClick="onClick" | ||
android:text="Recorder Settings" | ||
android:textAllCaps="false" | ||
android:textColor="@color/white" /> | ||
|
||
<Button | ||
android:id="@+id/btn_measure" | ||
android:layout_width="match_parent" | ||
android:layout_height="40dp" | ||
android:layout_marginLeft="20dp" | ||
android:layout_marginRight="20dp" | ||
android:layout_marginBottom="20dp" | ||
android:background="@drawable/selector_reset" | ||
android:gravity="center" | ||
android:onClick="onClick" | ||
android:text="Measure" | ||
android:textAllCaps="false" | ||
android:textColor="@color/white" /> | ||
|
||
<TextView | ||
android:id="@+id/txt_choose" | ||
android:id="@+id/choose_txt_filesfolder" | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
android:text="TextView" | ||
android:textColor="@color/white" /> | ||
android:text="/foo/bar/files" | ||
android:textSize="10dp" /> | ||
|
||
</LinearLayout> | ||
</ScrollView> | ||
|
||
<androidx.constraintlayout.widget.ConstraintLayout | ||
android:id="@+id/footer" | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
android:layout_alignParentBottom="true" | ||
android:background="@color/disable_thumb_grey" | ||
android:orientation="horizontal"> | ||
|
||
<Button | ||
android:id="@+id/btn_measure" | ||
android:layout_width="60dp" | ||
android:layout_height="wrap_content" | ||
android:onClick="onClick" | ||
android:text="📏" | ||
app:layout_constraintBottom_toBottomOf="parent" | ||
app:layout_constraintEnd_toStartOf="@+id/btn_recorder" | ||
app:layout_constraintHorizontal_bias="0.5" | ||
app:layout_constraintStart_toStartOf="parent" /> | ||
|
||
<Button | ||
android:id="@+id/btn_recorder" | ||
android:layout_width="0dp" | ||
android:layout_height="wrap_content" | ||
android:onClick="onClick" | ||
android:text="🔴 Record" | ||
app:layout_constraintBottom_toBottomOf="parent" | ||
app:layout_constraintEnd_toStartOf="@+id/btn_recorder_settings" | ||
app:layout_constraintHorizontal_bias="0.5" | ||
app:layout_constraintStart_toEndOf="@+id/btn_measure" /> | ||
|
||
<Button | ||
android:id="@+id/btn_recorder_settings" | ||
android:layout_width="60dp" | ||
android:layout_height="wrap_content" | ||
android:onClick="onClick" | ||
android:text="⚙️" | ||
app:layout_constraintBottom_toBottomOf="parent" | ||
app:layout_constraintEnd_toEndOf="@+id/btn_fileexplorer" | ||
app:layout_constraintHorizontal_bias="0.5" | ||
app:layout_constraintStart_toEndOf="@+id/btn_recorder" /> | ||
|
||
<Button | ||
android:id="@+id/btn_fileexplorer" | ||
android:layout_width="60dp" | ||
android:layout_height="wrap_content" | ||
android:onClick="onClick" | ||
android:text="📂️" | ||
app:layout_constraintBottom_toBottomOf="parent" | ||
app:layout_constraintEnd_toEndOf="parent" | ||
app:layout_constraintHorizontal_bias="0.5" | ||
app:layout_constraintStart_toEndOf="@+id/btn_recorder_settings" /> | ||
</androidx.constraintlayout.widget.ConstraintLayout> | ||
</RelativeLayout> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
#Wed Nov 18 18:39:32 CST 2020 | ||
#Fri Mar 12 18:38:43 CET 2021 | ||
distributionBase=GRADLE_USER_HOME | ||
distributionPath=wrapper/dists | ||
zipStoreBase=GRADLE_USER_HOME | ||
zipStorePath=wrapper/dists | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-6.1.1-all.zip | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-6.5-bin.zip |