├── app
├── .gitignore
├── src
│ ├── main
│ │ ├── ic_launcher-web.png
│ │ ├── ic_launcher-web.webp
│ │ ├── res
│ │ │ ├── drawable-hdpi
│ │ │ │ ├── login.webp
│ │ │ │ ├── mainbg.webp
│ │ │ │ ├── nature.webp
│ │ │ │ ├── infintybg.webp
│ │ │ │ ├── default_image.webp
│ │ │ │ ├── setup_activity.webp
│ │ │ │ └── white_xd_file_import.webp
│ │ │ ├── drawable-mdpi
│ │ │ │ ├── login.webp
│ │ │ │ ├── mainbg.webp
│ │ │ │ ├── nature.webp
│ │ │ │ ├── bitmojibg.webp
│ │ │ │ ├── infintybg.webp
│ │ │ │ ├── default_image.webp
│ │ │ │ ├── setup_activity.webp
│ │ │ │ └── white_xd_file_import.webp
│ │ │ ├── drawable-xhdpi
│ │ │ │ ├── login.webp
│ │ │ │ ├── mainbg.webp
│ │ │ │ ├── nature.webp
│ │ │ │ ├── bitmojibg.webp
│ │ │ │ ├── infintybg.webp
│ │ │ │ ├── default_image.png
│ │ │ │ ├── setup_activity.webp
│ │ │ │ └── white_xd_file_import.webp
│ │ │ ├── drawable-xxhdpi
│ │ │ │ ├── login.webp
│ │ │ │ ├── mainbg.webp
│ │ │ │ ├── nature.webp
│ │ │ │ ├── bitmojibg.webp
│ │ │ │ ├── infintybg.webp
│ │ │ │ ├── default_image.webp
│ │ │ │ ├── setup_activity.webp
│ │ │ │ └── white_xd_file_import.webp
│ │ │ ├── drawable-xxxhdpi
│ │ │ │ ├── login.webp
│ │ │ │ ├── mainbg.webp
│ │ │ │ ├── nature.webp
│ │ │ │ ├── bitmojibg.webp
│ │ │ │ ├── infintybg.webp
│ │ │ │ ├── default_image.webp
│ │ │ │ ├── setup_activity.webp
│ │ │ │ └── white_xd_file_import.webp
│ │ │ ├── mipmap-hdpi
│ │ │ │ ├── ic_launcher.png
│ │ │ │ └── ic_launcher_foreground.webp
│ │ │ ├── mipmap-mdpi
│ │ │ │ ├── ic_launcher.png
│ │ │ │ └── ic_launcher_foreground.webp
│ │ │ ├── mipmap-xhdpi
│ │ │ │ ├── ic_launcher.png
│ │ │ │ └── ic_launcher_foreground.webp
│ │ │ ├── mipmap-xxhdpi
│ │ │ │ ├── ic_launcher.png
│ │ │ │ └── ic_launcher_foreground.webp
│ │ │ ├── mipmap-xxxhdpi
│ │ │ │ ├── ic_launcher.png
│ │ │ │ └── ic_launcher_foreground.webp
│ │ │ ├── values
│ │ │ │ ├── ic_launcher_background.xml
│ │ │ │ ├── colors.xml
│ │ │ │ ├── styles.xml
│ │ │ │ └── strings.xml
│ │ │ ├── xml
│ │ │ │ └── xml.xml
│ │ │ ├── drawable
│ │ │ │ ├── corner.xml
│ │ │ │ ├── linearlayoutcornerraidus.xml
│ │ │ │ ├── bitcardbg.xml
│ │ │ │ ├── gradient_2.xml
│ │ │ │ ├── gradient_3.xml
│ │ │ │ ├── gradient_4.xml
│ │ │ │ ├── gradient_5.xml
│ │ │ │ ├── gradient_6.xml
│ │ │ │ ├── counterbg.xml
│ │ │ │ ├── gradient_1.xml
│ │ │ │ ├── searchbg.xml
│ │ │ │ ├── loginopc.xml
│ │ │ │ ├── whitebg.xml
│ │ │ │ ├── loginbutton.xml
│ │ │ │ ├── hometoogle.xml
│ │ │ │ ├── addfloat.xml
│ │ │ │ ├── comment.xml
│ │ │ │ ├── send.xml
│ │ │ │ ├── hometoggleblack.xml
│ │ │ │ ├── hometogglehite.xml
│ │ │ │ ├── logina.xml
│ │ │ │ ├── add_circle.xml
│ │ │ │ ├── personclip.xml
│ │ │ │ ├── emailclipart.xml
│ │ │ │ ├── keyclipart.xml
│ │ │ │ ├── profile.xml
│ │ │ │ ├── eyespy.xml
│ │ │ │ ├── water.xml
│ │ │ │ ├── ic_block.xml
│ │ │ │ ├── cameraclipart.xml
│ │ │ │ ├── like.xml
│ │ │ │ ├── gradient_list.xml
│ │ │ │ ├── infinty.xml
│ │ │ │ ├── ic_heart.xml
│ │ │ │ ├── ic_leaf.xml
│ │ │ │ ├── ic_maloik.xml
│ │ │ │ ├── ic_recycler.xml
│ │ │ │ ├── ic_xyx.xml
│ │ │ │ ├── ic_multiple_users_silhouette.xml
│ │ │ │ ├── ic_xoxo.xml
│ │ │ │ ├── iosleaf.xml
│ │ │ │ ├── ic_forest.xml
│ │ │ │ ├── ic_logout.xml
│ │ │ │ ├── ic_color_instaagram.xml
│ │ │ │ └── ic_launcher_background.xml
│ │ │ ├── mipmap-anydpi-v26
│ │ │ │ ├── ic_launcher.xml
│ │ │ │ └── ic_launcher_round.xml
│ │ │ └── layout
│ │ │ │ ├── mainactivty.xml
│ │ │ │ ├── fragment_home.xml
│ │ │ │ ├── testlayout.xml
│ │ │ │ ├── activity_groupzoom.xml
│ │ │ │ ├── activity_eventzoom.xml
│ │ │ │ ├── activity_eye.xml
│ │ │ │ ├── image_item.xml
│ │ │ │ ├── activity_eyezoom.xml
│ │ │ │ ├── eventcard.xml
│ │ │ │ ├── activity_group.xml
│ │ │ │ ├── activity_events.xml
│ │ │ │ ├── users.xml
│ │ │ │ ├── activity_eyeupload.xml
│ │ │ │ ├── activity_newpostactivity.xml
│ │ │ │ ├── eyecard.xml
│ │ │ │ ├── activity_setupactivity.xml
│ │ │ │ ├── activity_block.xml
│ │ │ │ ├── blog_item.xml
│ │ │ │ ├── activity_main2.xml
│ │ │ │ └── activity_registeractivity.xml
│ │ ├── java
│ │ │ └── com
│ │ │ │ └── example
│ │ │ │ └── logintest
│ │ │ │ ├── Model.java
│ │ │ │ ├── eventzoom.java
│ │ │ │ ├── Upload.java
│ │ │ │ ├── BlogPost.java
│ │ │ │ ├── ViewHolder2.java
│ │ │ │ ├── ViewHolder.java
│ │ │ │ ├── tree.java
│ │ │ │ ├── groupzoom.java
│ │ │ │ ├── BlogRecyclerAdapter.java
│ │ │ │ ├── eyezoom.java
│ │ │ │ ├── HomeFragment.java
│ │ │ │ ├── block.java
│ │ │ │ ├── ImageAdapter.java
│ │ │ │ ├── events.java
│ │ │ │ ├── eye.java
│ │ │ │ ├── Main2Activity.java
│ │ │ │ ├── group.java
│ │ │ │ ├── registeractivity.java
│ │ │ │ └── home.java
│ │ └── AndroidManifest.xml
│ ├── test
│ │ └── java
│ │ │ └── com
│ │ │ └── example
│ │ │ └── logintest
│ │ │ └── ExampleUnitTest.java
│ └── androidTest
│ │ └── java
│ │ └── com
│ │ └── example
│ │ └── logintest
│ │ └── ExampleInstrumentedTest.java
├── proguard-rules.pro
├── google-services.json
└── build.gradle
├── settings.gradle
├── gradle
└── wrapper
│ ├── gradle-wrapper.jar
│ └── gradle-wrapper.properties
├── .idea
├── dictionaries
│ └── samx.xml
├── vcs.xml
├── misc.xml
├── runConfigurations.xml
├── gradle.xml
├── jarRepositories.xml
├── markdown-navigator.xml
├── codeStyles
│ └── Project.xml
└── markdown-navigator-enh.xml
├── .gitignore
├── README.md
├── gradle.properties
├── gradlew.bat
└── gradlew
/app/.gitignore:
--------------------------------------------------------------------------------
1 | /build
2 |
--------------------------------------------------------------------------------
/settings.gradle:
--------------------------------------------------------------------------------
1 | include ':app'
2 | rootProject.name='logintest'
3 |
--------------------------------------------------------------------------------
/app/src/main/ic_launcher-web.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ungaaaabungaaa/damn/HEAD/app/src/main/ic_launcher-web.png
--------------------------------------------------------------------------------
/app/src/main/ic_launcher-web.webp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ungaaaabungaaa/damn/HEAD/app/src/main/ic_launcher-web.webp
--------------------------------------------------------------------------------
/gradle/wrapper/gradle-wrapper.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ungaaaabungaaa/damn/HEAD/gradle/wrapper/gradle-wrapper.jar
--------------------------------------------------------------------------------
/app/src/main/res/drawable-hdpi/login.webp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ungaaaabungaaa/damn/HEAD/app/src/main/res/drawable-hdpi/login.webp
--------------------------------------------------------------------------------
/app/src/main/res/drawable-mdpi/login.webp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ungaaaabungaaa/damn/HEAD/app/src/main/res/drawable-mdpi/login.webp
--------------------------------------------------------------------------------
/app/src/main/res/drawable-hdpi/mainbg.webp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ungaaaabungaaa/damn/HEAD/app/src/main/res/drawable-hdpi/mainbg.webp
--------------------------------------------------------------------------------
/app/src/main/res/drawable-hdpi/nature.webp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ungaaaabungaaa/damn/HEAD/app/src/main/res/drawable-hdpi/nature.webp
--------------------------------------------------------------------------------
/app/src/main/res/drawable-mdpi/mainbg.webp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ungaaaabungaaa/damn/HEAD/app/src/main/res/drawable-mdpi/mainbg.webp
--------------------------------------------------------------------------------
/app/src/main/res/drawable-mdpi/nature.webp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ungaaaabungaaa/damn/HEAD/app/src/main/res/drawable-mdpi/nature.webp
--------------------------------------------------------------------------------
/app/src/main/res/drawable-xhdpi/login.webp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ungaaaabungaaa/damn/HEAD/app/src/main/res/drawable-xhdpi/login.webp
--------------------------------------------------------------------------------
/app/src/main/res/drawable-xhdpi/mainbg.webp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ungaaaabungaaa/damn/HEAD/app/src/main/res/drawable-xhdpi/mainbg.webp
--------------------------------------------------------------------------------
/app/src/main/res/drawable-xhdpi/nature.webp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ungaaaabungaaa/damn/HEAD/app/src/main/res/drawable-xhdpi/nature.webp
--------------------------------------------------------------------------------
/app/src/main/res/drawable-xxhdpi/login.webp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ungaaaabungaaa/damn/HEAD/app/src/main/res/drawable-xxhdpi/login.webp
--------------------------------------------------------------------------------
/app/src/main/res/drawable-xxhdpi/mainbg.webp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ungaaaabungaaa/damn/HEAD/app/src/main/res/drawable-xxhdpi/mainbg.webp
--------------------------------------------------------------------------------
/app/src/main/res/drawable-xxhdpi/nature.webp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ungaaaabungaaa/damn/HEAD/app/src/main/res/drawable-xxhdpi/nature.webp
--------------------------------------------------------------------------------
/app/src/main/res/drawable-xxxhdpi/login.webp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ungaaaabungaaa/damn/HEAD/app/src/main/res/drawable-xxxhdpi/login.webp
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-hdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ungaaaabungaaa/damn/HEAD/app/src/main/res/mipmap-hdpi/ic_launcher.png
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-mdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ungaaaabungaaa/damn/HEAD/app/src/main/res/mipmap-mdpi/ic_launcher.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable-hdpi/infintybg.webp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ungaaaabungaaa/damn/HEAD/app/src/main/res/drawable-hdpi/infintybg.webp
--------------------------------------------------------------------------------
/app/src/main/res/drawable-mdpi/bitmojibg.webp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ungaaaabungaaa/damn/HEAD/app/src/main/res/drawable-mdpi/bitmojibg.webp
--------------------------------------------------------------------------------
/app/src/main/res/drawable-mdpi/infintybg.webp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ungaaaabungaaa/damn/HEAD/app/src/main/res/drawable-mdpi/infintybg.webp
--------------------------------------------------------------------------------
/app/src/main/res/drawable-xhdpi/bitmojibg.webp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ungaaaabungaaa/damn/HEAD/app/src/main/res/drawable-xhdpi/bitmojibg.webp
--------------------------------------------------------------------------------
/app/src/main/res/drawable-xhdpi/infintybg.webp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ungaaaabungaaa/damn/HEAD/app/src/main/res/drawable-xhdpi/infintybg.webp
--------------------------------------------------------------------------------
/app/src/main/res/drawable-xxxhdpi/mainbg.webp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ungaaaabungaaa/damn/HEAD/app/src/main/res/drawable-xxxhdpi/mainbg.webp
--------------------------------------------------------------------------------
/app/src/main/res/drawable-xxxhdpi/nature.webp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ungaaaabungaaa/damn/HEAD/app/src/main/res/drawable-xxxhdpi/nature.webp
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-xhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ungaaaabungaaa/damn/HEAD/app/src/main/res/mipmap-xhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-xxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ungaaaabungaaa/damn/HEAD/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable-hdpi/default_image.webp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ungaaaabungaaa/damn/HEAD/app/src/main/res/drawable-hdpi/default_image.webp
--------------------------------------------------------------------------------
/app/src/main/res/drawable-mdpi/default_image.webp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ungaaaabungaaa/damn/HEAD/app/src/main/res/drawable-mdpi/default_image.webp
--------------------------------------------------------------------------------
/app/src/main/res/drawable-xhdpi/default_image.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ungaaaabungaaa/damn/HEAD/app/src/main/res/drawable-xhdpi/default_image.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable-xxhdpi/bitmojibg.webp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ungaaaabungaaa/damn/HEAD/app/src/main/res/drawable-xxhdpi/bitmojibg.webp
--------------------------------------------------------------------------------
/app/src/main/res/drawable-xxhdpi/infintybg.webp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ungaaaabungaaa/damn/HEAD/app/src/main/res/drawable-xxhdpi/infintybg.webp
--------------------------------------------------------------------------------
/app/src/main/res/drawable-xxxhdpi/bitmojibg.webp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ungaaaabungaaa/damn/HEAD/app/src/main/res/drawable-xxxhdpi/bitmojibg.webp
--------------------------------------------------------------------------------
/app/src/main/res/drawable-xxxhdpi/infintybg.webp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ungaaaabungaaa/damn/HEAD/app/src/main/res/drawable-xxxhdpi/infintybg.webp
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ungaaaabungaaa/damn/HEAD/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable-hdpi/setup_activity.webp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ungaaaabungaaa/damn/HEAD/app/src/main/res/drawable-hdpi/setup_activity.webp
--------------------------------------------------------------------------------
/app/src/main/res/drawable-mdpi/setup_activity.webp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ungaaaabungaaa/damn/HEAD/app/src/main/res/drawable-mdpi/setup_activity.webp
--------------------------------------------------------------------------------
/app/src/main/res/drawable-xhdpi/setup_activity.webp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ungaaaabungaaa/damn/HEAD/app/src/main/res/drawable-xhdpi/setup_activity.webp
--------------------------------------------------------------------------------
/app/src/main/res/drawable-xxhdpi/default_image.webp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ungaaaabungaaa/damn/HEAD/app/src/main/res/drawable-xxhdpi/default_image.webp
--------------------------------------------------------------------------------
/app/src/main/res/drawable-xxhdpi/setup_activity.webp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ungaaaabungaaa/damn/HEAD/app/src/main/res/drawable-xxhdpi/setup_activity.webp
--------------------------------------------------------------------------------
/app/src/main/res/drawable-xxxhdpi/default_image.webp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ungaaaabungaaa/damn/HEAD/app/src/main/res/drawable-xxxhdpi/default_image.webp
--------------------------------------------------------------------------------
/app/src/main/res/drawable-xxxhdpi/setup_activity.webp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ungaaaabungaaa/damn/HEAD/app/src/main/res/drawable-xxxhdpi/setup_activity.webp
--------------------------------------------------------------------------------
/app/src/main/res/drawable-hdpi/white_xd_file_import.webp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ungaaaabungaaa/damn/HEAD/app/src/main/res/drawable-hdpi/white_xd_file_import.webp
--------------------------------------------------------------------------------
/app/src/main/res/drawable-mdpi/white_xd_file_import.webp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ungaaaabungaaa/damn/HEAD/app/src/main/res/drawable-mdpi/white_xd_file_import.webp
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-hdpi/ic_launcher_foreground.webp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ungaaaabungaaa/damn/HEAD/app/src/main/res/mipmap-hdpi/ic_launcher_foreground.webp
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-mdpi/ic_launcher_foreground.webp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ungaaaabungaaa/damn/HEAD/app/src/main/res/mipmap-mdpi/ic_launcher_foreground.webp
--------------------------------------------------------------------------------
/app/src/main/res/drawable-xhdpi/white_xd_file_import.webp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ungaaaabungaaa/damn/HEAD/app/src/main/res/drawable-xhdpi/white_xd_file_import.webp
--------------------------------------------------------------------------------
/app/src/main/res/drawable-xxhdpi/white_xd_file_import.webp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ungaaaabungaaa/damn/HEAD/app/src/main/res/drawable-xxhdpi/white_xd_file_import.webp
--------------------------------------------------------------------------------
/app/src/main/res/drawable-xxxhdpi/white_xd_file_import.webp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ungaaaabungaaa/damn/HEAD/app/src/main/res/drawable-xxxhdpi/white_xd_file_import.webp
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-xhdpi/ic_launcher_foreground.webp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ungaaaabungaaa/damn/HEAD/app/src/main/res/mipmap-xhdpi/ic_launcher_foreground.webp
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-xxhdpi/ic_launcher_foreground.webp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ungaaaabungaaa/damn/HEAD/app/src/main/res/mipmap-xxhdpi/ic_launcher_foreground.webp
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-xxxhdpi/ic_launcher_foreground.webp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ungaaaabungaaa/damn/HEAD/app/src/main/res/mipmap-xxxhdpi/ic_launcher_foreground.webp
--------------------------------------------------------------------------------
/app/src/main/res/values/ic_launcher_background.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | #000000
4 |
--------------------------------------------------------------------------------
/.idea/dictionaries/samx.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | pornogrphy
5 |
6 |
7 |
--------------------------------------------------------------------------------
/app/src/main/res/xml/xml.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
--------------------------------------------------------------------------------
/.idea/vcs.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable/corner.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/app/src/main/res/values/colors.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | #000
4 | #000
5 | #1DB954
6 |
7 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable/linearlayoutcornerraidus.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
6 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable/bitcardbg.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | *.iml
2 | .gradle
3 | /local.properties
4 | /.idea/caches
5 | /.idea/libraries
6 | /.idea/modules.xml
7 | /.idea/workspace.xml
8 | /.idea/navEditor.xml
9 | /.idea/assetWizardSettings.xml
10 | .DS_Store
11 | /build
12 | /captures
13 | .externalNativeBuild
14 | .cxx
15 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable/gradient_2.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
7 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable/gradient_3.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
7 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable/gradient_4.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
7 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable/gradient_5.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
7 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable/gradient_6.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
7 |
--------------------------------------------------------------------------------
/gradle/wrapper/gradle-wrapper.properties:
--------------------------------------------------------------------------------
1 | #Fri May 29 23:25:32 IST 2020
2 | distributionBase=GRADLE_USER_HOME
3 | distributionPath=wrapper/dists
4 | zipStoreBase=GRADLE_USER_HOME
5 | zipStorePath=wrapper/dists
6 | distributionUrl=https\://services.gradle.org/distributions/gradle-6.1.1-all.zip
7 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable/counterbg.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
6 |
8 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable/gradient_1.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
8 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable/searchbg.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
6 |
7 |
9 |
10 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable/loginopc.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
6 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable/whitebg.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
6 |
9 |
10 |
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable/loginbutton.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
6 |
9 |
10 |
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/mainactivty.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable/hometoogle.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
6 |
10 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable/addfloat.xml:
--------------------------------------------------------------------------------
1 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/.idea/misc.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable/comment.xml:
--------------------------------------------------------------------------------
1 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable/send.xml:
--------------------------------------------------------------------------------
1 |
7 |
10 |
11 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable/hometoggleblack.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
6 |
10 |
13 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable/hometogglehite.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
6 |
10 |
13 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable/logina.xml:
--------------------------------------------------------------------------------
1 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable/add_circle.xml:
--------------------------------------------------------------------------------
1 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable/personclip.xml:
--------------------------------------------------------------------------------
1 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable/emailclipart.xml:
--------------------------------------------------------------------------------
1 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/app/src/main/res/values/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/app/src/test/java/com/example/logintest/ExampleUnitTest.java:
--------------------------------------------------------------------------------
1 | package com.example.logintest;
2 |
3 | import org.junit.Test;
4 |
5 | import static org.junit.Assert.*;
6 |
7 | /**
8 | * Example local unit test, which will execute on the development machine (host).
9 | *
10 | * @see Testing documentation
11 | */
12 | public class ExampleUnitTest {
13 | @Test
14 | public void addition_isCorrect() {
15 | assertEquals(4, 2 + 2);
16 | }
17 | }
--------------------------------------------------------------------------------
/app/src/main/res/drawable/keyclipart.xml:
--------------------------------------------------------------------------------
1 |
7 |
10 |
11 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable/profile.xml:
--------------------------------------------------------------------------------
1 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable/eyespy.xml:
--------------------------------------------------------------------------------
1 |
7 |
10 |
11 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable/water.xml:
--------------------------------------------------------------------------------
1 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # damn
2 | damn app
3 | next gen social media platform for highschool
4 | 
5 | Firebase authentication
6 | 
7 | instagram group stoies with on click
8 | 
9 | face stagred recyler view with on click listner
10 | 
11 | Tree plant counter
12 | 
13 | account block page
14 | 
15 | Events around you
16 | 
17 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable/ic_block.xml:
--------------------------------------------------------------------------------
1 |
7 |
10 |
11 |
--------------------------------------------------------------------------------
/.idea/runConfigurations.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
11 |
12 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable/cameraclipart.xml:
--------------------------------------------------------------------------------
1 |
7 |
10 |
13 |
14 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable/like.xml:
--------------------------------------------------------------------------------
1 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/app/src/main/java/com/example/logintest/Model.java:
--------------------------------------------------------------------------------
1 | package com.example.logintest;
2 |
3 | public class Model {
4 |
5 | String title, image, description;
6 |
7 |
8 | public Model(){}
9 |
10 |
11 | public String getTitle() {
12 | return title;
13 | }
14 |
15 | public void setTitle(String title) {
16 | this.title = title;
17 | }
18 |
19 | public String getImage() {
20 | return image;
21 | }
22 |
23 | public void setImage(String image) {
24 | this.image = image;
25 | }
26 |
27 | public String getDescription() {
28 | return description;
29 | }
30 |
31 | public void setDescription(String description) {
32 | this.description = description;
33 | }
34 |
35 | }
36 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable/gradient_list.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
6 |
7 |
9 |
10 |
12 |
13 |
15 |
16 |
18 |
19 |
21 |
22 |
23 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/fragment_home.xml:
--------------------------------------------------------------------------------
1 |
2 |
8 |
9 |
10 |
15 |
16 |
17 |
--------------------------------------------------------------------------------
/app/proguard-rules.pro:
--------------------------------------------------------------------------------
1 | # Add project specific ProGuard rules here.
2 | # You can control the set of applied configuration files using the
3 | # proguardFiles setting in build.gradle.
4 | #
5 | # For more details, see
6 | # http://developer.android.com/guide/developing/tools/proguard.html
7 |
8 | # If your project uses WebView with JS, uncomment the following
9 | # and specify the fully qualified class name to the JavaScript interface
10 | # class:
11 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview {
12 | # public *;
13 | #}
14 |
15 | # Uncomment this to preserve the line number information for
16 | # debugging stack traces.
17 | #-keepattributes SourceFile,LineNumberTable
18 |
19 | # If you keep the line number information, uncomment this to
20 | # hide the original source file name.
21 | #-renamesourcefileattribute SourceFile
22 |
--------------------------------------------------------------------------------
/.idea/gradle.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
--------------------------------------------------------------------------------
/app/src/androidTest/java/com/example/logintest/ExampleInstrumentedTest.java:
--------------------------------------------------------------------------------
1 | package com.example.logintest;
2 |
3 | import android.content.Context;
4 | import androidx.test.platform.app.InstrumentationRegistry;
5 | import androidx.test.ext.junit.runners.AndroidJUnit4;
6 |
7 | import org.junit.Test;
8 | import org.junit.runner.RunWith;
9 |
10 | import static org.junit.Assert.*;
11 |
12 | /**
13 | * Instrumented test, which will execute on an Android device.
14 | *
15 | * @see Testing documentation
16 | */
17 | @RunWith(AndroidJUnit4.class)
18 | public class ExampleInstrumentedTest {
19 | @Test
20 | public void useAppContext() {
21 | // Context of the app under test.
22 | Context appContext = InstrumentationRegistry.getInstrumentation().getTargetContext();
23 |
24 | assertEquals("com.example.logintest", appContext.getPackageName());
25 | }
26 | }
27 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable/infinty.xml:
--------------------------------------------------------------------------------
1 |
7 |
10 |
11 |
--------------------------------------------------------------------------------
/app/src/main/java/com/example/logintest/eventzoom.java:
--------------------------------------------------------------------------------
1 | package com.example.logintest;
2 |
3 | import android.content.Intent;
4 | import android.os.Bundle;
5 | import android.widget.ImageView;
6 | import androidx.appcompat.app.AppCompatActivity;
7 | import com.squareup.picasso.Picasso;
8 |
9 | public class eventzoom extends AppCompatActivity {
10 | ImageView imageView;
11 | @Override
12 | protected void onCreate(Bundle savedInstanceState) {
13 | super.onCreate(savedInstanceState);
14 | setContentView(R.layout.activity_eventzoom);
15 | imageView=findViewById(R.id.zoom);
16 | Bundle bundle2=getIntent().getExtras();
17 | if(bundle2!=null){
18 | Picasso.get().load( bundle2.getString( "eye")).into(imageView);
19 | }
20 | else {
21 | Intent intent = new Intent(this, eye.class);
22 | startActivity(intent);
23 | finish();
24 | }
25 | }
26 |
27 | }
--------------------------------------------------------------------------------
/app/src/main/res/layout/testlayout.xml:
--------------------------------------------------------------------------------
1 |
2 |
9 |
10 |
15 |
16 |
17 |
22 |
23 |
26 |
27 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable/ic_heart.xml:
--------------------------------------------------------------------------------
1 |
6 |
9 |
10 |
--------------------------------------------------------------------------------
/app/src/main/res/values/strings.xml:
--------------------------------------------------------------------------------
1 |
2 | Damn
3 | Enter Valid Name
4 | Enter Valid Insta_id
5 | Enter Some Password
6 | Enter Valid Mobile Number
7 | Caption...
8 | Report
9 | Attach Screenshot
10 | Content
11 | High Lights
12 | Events
13 |
14 |
15 | Hello blank fragment
16 | Revenue Donation
17 | Tap To know More
18 | Views On Your Recent post
19 | Restart
20 |
21 |
--------------------------------------------------------------------------------
/app/src/main/java/com/example/logintest/Upload.java:
--------------------------------------------------------------------------------
1 | package com.example.logintest;
2 |
3 | import com.google.firebase.database.Exclude;
4 |
5 | public class Upload {
6 | private String mName;
7 | private String mImageUrl;
8 | private String mKey;
9 |
10 | public Upload() {
11 |
12 | }
13 |
14 | public Upload(String name, String imageUrl) {
15 | if (name.trim().equals("")) {
16 | name = "No Name";
17 | }
18 |
19 | mName = name;
20 | mImageUrl = imageUrl;
21 | }
22 |
23 | public String getName() {
24 | return mName;
25 | }
26 |
27 | public void setName(String name) {
28 | mName = name;
29 | }
30 |
31 | public String getImageUrl() {
32 | return mImageUrl;
33 | }
34 |
35 | public void setImageUrl(String imageUrl) {
36 | mImageUrl = imageUrl;
37 | }
38 | @Exclude
39 | public String getKey() {
40 | return mKey;
41 | }
42 | @Exclude
43 | public void setKey(String key) {
44 | mKey = key;
45 | }
46 |
47 |
48 |
49 | }
50 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable/ic_leaf.xml:
--------------------------------------------------------------------------------
1 |
6 |
9 |
10 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/activity_groupzoom.xml:
--------------------------------------------------------------------------------
1 |
2 |
9 |
10 |
11 |
25 |
26 |
27 |
28 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/activity_eventzoom.xml:
--------------------------------------------------------------------------------
1 |
2 |
9 |
10 |
11 |
12 |
13 |
27 |
28 |
29 |
30 |
31 |
--------------------------------------------------------------------------------
/gradle.properties:
--------------------------------------------------------------------------------
1 | # Project-wide Gradle settings.
2 |
3 | # IDE (e.g. Android Studio) users:
4 | # Gradle settings configured through the IDE *will override*
5 | # any settings specified in this file.
6 |
7 | # For more details on how to configure your build environment visit
8 | # http://www.gradle.org/docs/current/userguide/build_environment.html
9 |
10 | # Specifies the JVM arguments used for the daemon process.
11 | # The setting is particularly useful for tweaking memory settings.
12 | org.gradle.jvmargs=-Xmx1536m
13 |
14 | # When configured, Gradle will run in incubating parallel mode.
15 | # This option should only be used with decoupled projects. More details, visit
16 | # http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
17 | # org.gradle.parallel=true
18 |
19 | # AndroidX package structure to make it clearer which packages are bundled with the
20 | # Android operating system, and which are packaged with your app's APK
21 | # https://developer.android.com/topic/libraries/support-library/androidx-rn
22 | android.useAndroidX=true
23 | # Automatically convert third-party libraries to use AndroidX
24 | android.enableJetifier=true
25 |
26 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/activity_eye.xml:
--------------------------------------------------------------------------------
1 |
2 |
10 |
11 |
15 |
16 |
27 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable/ic_maloik.xml:
--------------------------------------------------------------------------------
1 |
6 |
9 |
10 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/image_item.xml:
--------------------------------------------------------------------------------
1 |
2 |
11 |
16 |
25 |
31 |
32 |
33 |
34 |
35 |
36 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable/ic_recycler.xml:
--------------------------------------------------------------------------------
1 |
6 |
9 |
12 |
15 |
18 |
21 |
24 |
25 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable/ic_xyx.xml:
--------------------------------------------------------------------------------
1 |
6 |
9 |
12 |
15 |
16 |
--------------------------------------------------------------------------------
/app/src/main/java/com/example/logintest/BlogPost.java:
--------------------------------------------------------------------------------
1 | package com.example.logintest;
2 |
3 | import java.util.Date;
4 |
5 | public class BlogPost {
6 | public String user_id, image_url, desc, image_thumb;
7 | public Date timestamp;
8 |
9 |
10 | public BlogPost() {}
11 |
12 | public BlogPost(String user_id, String image_url, String desc, String image_thumb, Date timestamp) {
13 | this.user_id = user_id;
14 | this.image_url = image_url;
15 | this.desc = desc;
16 | this.image_thumb = image_thumb;
17 | this.timestamp = timestamp;
18 | }
19 |
20 | public String getUser_id() {
21 | return user_id;
22 | }
23 |
24 | public void setUser_id(String user_id) {
25 | this.user_id = user_id;
26 | }
27 |
28 | public String getImage_url() {
29 | return image_url;
30 | }
31 |
32 | public void setImage_url(String image_url) {
33 | this.image_url = image_url;
34 | }
35 |
36 | public String getDesc() {
37 | return desc;
38 | }
39 |
40 | public void setDesc(String desc) {
41 | this.desc = desc;
42 | }
43 |
44 | public String getImage_thumb() {
45 | return image_thumb;
46 | }
47 |
48 | public void setImage_thumb(String image_thumb) {
49 | this.image_thumb = image_thumb;
50 | }
51 |
52 | public Date getTimestamp() {
53 | return timestamp;
54 | }
55 |
56 | public void setTimestamp(Date timestamp) {
57 | this.timestamp = timestamp;
58 | }
59 | }
60 |
--------------------------------------------------------------------------------
/app/src/main/java/com/example/logintest/ViewHolder2.java:
--------------------------------------------------------------------------------
1 | package com.example.logintest;
2 |
3 | import android.content.Context;
4 | import android.content.Intent;
5 | import android.view.View;
6 | import android.widget.ImageView;
7 | import android.widget.TextView;
8 | import androidx.annotation.NonNull;
9 | import androidx.recyclerview.widget.RecyclerView;
10 | import com.squareup.picasso.Picasso;
11 |
12 | public class ViewHolder2 extends RecyclerView.ViewHolder {
13 | View mView;
14 | public ViewHolder2(@NonNull View itemView) {
15 | super( itemView );
16 | mView = itemView;
17 | }
18 |
19 | public void setDetails(final Context ctx, String title, final String description, final String image) {
20 | TextView mTitleTv = mView.findViewById(R.id.text_view_name );
21 | TextView mDetailTv = mView.findViewById(R.id.rDescriptionTv );
22 | ImageView mImageIv = mView.findViewById(R.id.image_view_upload );
23 | mTitleTv.setText(title);
24 | mDetailTv.setText(description);
25 | Picasso.get().load(image).into(mImageIv);
26 | mImageIv.setOnClickListener(new View.OnClickListener() {
27 | @Override
28 | public void onClick(View v) {
29 | Intent intent =new Intent(ctx,eyezoom.class);
30 | intent.putExtra("event",image);
31 | intent.putExtra( "des",description);
32 | intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
33 | ctx.startActivity(intent);
34 | }
35 | } );
36 | }
37 | }
38 |
--------------------------------------------------------------------------------
/app/google-services.json:
--------------------------------------------------------------------------------
1 | {
2 | "project_info": {
3 | "project_number": "797954989797",
4 | "firebase_url": "https://logintest-cc637.firebaseio.com",
5 | "project_id": "logintest-cc637",
6 | "storage_bucket": "logintest-cc637.appspot.com"
7 | },
8 | "client": [
9 | {
10 | "client_info": {
11 | "mobilesdk_app_id": "1:797954989797:android:0080c152d150bf2a143e0c",
12 | "android_client_info": {
13 | "package_name": "com.example.logintest"
14 | }
15 | },
16 | "oauth_client": [
17 | {
18 | "client_id": "797954989797-2t17qtpf38tm5ajl7r5f8t1jss0eim6n.apps.googleusercontent.com",
19 | "client_type": 1,
20 | "android_info": {
21 | "package_name": "com.example.logintest",
22 | "certificate_hash": "1166eb619167f98c6765f873d30b7d579e2d4373"
23 | }
24 | },
25 | {
26 | "client_id": "797954989797-qbq5i7gnvubv2tl69r73chq4vrkqecaq.apps.googleusercontent.com",
27 | "client_type": 3
28 | }
29 | ],
30 | "api_key": [
31 | {
32 | "current_key": "AIzaSyDgse1DXjVElWkwce5tARZibwSEP5XZMcY"
33 | }
34 | ],
35 | "services": {
36 | "appinvite_service": {
37 | "other_platform_oauth_client": [
38 | {
39 | "client_id": "797954989797-qbq5i7gnvubv2tl69r73chq4vrkqecaq.apps.googleusercontent.com",
40 | "client_type": 3
41 | }
42 | ]
43 | }
44 | }
45 | }
46 | ],
47 | "configuration_version": "1"
48 | }
--------------------------------------------------------------------------------
/app/src/main/res/drawable/ic_multiple_users_silhouette.xml:
--------------------------------------------------------------------------------
1 |
6 |
9 |
10 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/activity_eyezoom.xml:
--------------------------------------------------------------------------------
1 |
2 |
9 |
23 |
24 |
36 |
37 |
38 |
--------------------------------------------------------------------------------
/app/src/main/java/com/example/logintest/ViewHolder.java:
--------------------------------------------------------------------------------
1 | package com.example.logintest;
2 |
3 | import android.content.Context;
4 | import android.content.Intent;
5 | import android.view.View;
6 | import android.widget.ImageView;
7 | import android.widget.TextView;
8 | import androidx.annotation.NonNull;
9 | import androidx.cardview.widget.CardView;
10 | import androidx.recyclerview.widget.RecyclerView;
11 | import com.squareup.picasso.Picasso;
12 |
13 | public class ViewHolder extends RecyclerView.ViewHolder {
14 | View mView;
15 | public ViewHolder(@NonNull View itemView) {
16 | super(itemView);
17 | mView = itemView;
18 | }
19 | public void setDetails(final Context ctx, String title, String description, final String image) {
20 | TextView mTitleTv = mView.findViewById(R.id.text_view_name );
21 | TextView mDetailTv = mView.findViewById(R.id.rDescriptionTv );
22 | ImageView mImageIv = mView.findViewById(R.id.image_view_upload );
23 | CardView cardView =mView.findViewById( R.id.cardgroup );
24 | mTitleTv.setText(title);
25 | mDetailTv.setText(description);
26 | Picasso.get().load(image).into(mImageIv);
27 | cardView.setOnClickListener( new View.OnClickListener() {
28 | @Override
29 | public void onClick(View v) {
30 | Intent intent =new Intent(ctx,groupzoom.class);
31 | intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
32 | intent.putExtra("gp",image);
33 | ctx.startActivity(intent);
34 |
35 |
36 | }
37 | } );
38 | }
39 | }
40 |
41 |
--------------------------------------------------------------------------------
/app/src/main/java/com/example/logintest/tree.java:
--------------------------------------------------------------------------------
1 | package com.example.logintest;
2 | import android.os.Bundle;
3 | import android.widget.Toast;
4 | import androidx.appcompat.app.AppCompatActivity;
5 | import com.daimajia.androidanimations.library.Techniques;
6 | import com.daimajia.androidanimations.library.YoYo;
7 | import com.droidnet.DroidListener;
8 | import com.droidnet.DroidNet;
9 |
10 |
11 |
12 | public class tree extends AppCompatActivity implements DroidListener {
13 | private DroidNet mDroidNet;
14 | @Override
15 | protected void onCreate(Bundle savedInstanceState) {
16 | super.onCreate(savedInstanceState);
17 | setContentView(R.layout.activity_tree);
18 | DroidNet.init(tree.this);
19 | mDroidNet = DroidNet.getInstance();
20 | mDroidNet.addInternetConnectivityListener(tree.this);
21 | YoYo.with(Techniques.Shake)
22 | .duration(650)
23 | .repeat(1)
24 | .playOn(findViewById(R.id.treescroll));
25 | }
26 |
27 |
28 | @Override
29 | public void onInternetConnectivityChanged(boolean isConnected) {
30 | if (isConnected) {
31 | netIsOn();
32 | } else {
33 | netIsOff();
34 | }
35 | }
36 |
37 |
38 | private void netIsOn(){
39 | }
40 |
41 | private void netIsOff(){
42 | Toast toast = Toast.makeText(tree.this, " No internet ", Toast.LENGTH_LONG);
43 | toast.show();
44 | }
45 |
46 | @Override
47 | protected void onDestroy() {
48 | super.onDestroy();
49 | mDroidNet.removeInternetConnectivityChangeListener(tree.this);
50 | }
51 | }
52 |
--------------------------------------------------------------------------------
/.idea/jarRepositories.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/eventcard.xml:
--------------------------------------------------------------------------------
1 |
2 |
10 |
13 |
19 |
29 |
38 |
39 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable/ic_xoxo.xml:
--------------------------------------------------------------------------------
1 |
6 |
9 |
12 |
13 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable/iosleaf.xml:
--------------------------------------------------------------------------------
1 |
6 |
9 |
10 |
--------------------------------------------------------------------------------
/app/src/main/java/com/example/logintest/groupzoom.java:
--------------------------------------------------------------------------------
1 | package com.example.logintest;
2 |
3 | import android.content.Intent;
4 | import android.os.Bundle;
5 | import android.widget.ImageView;
6 | import android.widget.Toast;
7 |
8 | import androidx.appcompat.app.AppCompatActivity;
9 |
10 | import com.droidnet.DroidListener;
11 | import com.droidnet.DroidNet;
12 | import com.squareup.picasso.Picasso;
13 |
14 | public class groupzoom extends AppCompatActivity implements DroidListener {
15 | ImageView imageView;
16 | private DroidNet mDroidNet;
17 |
18 | @Override
19 | protected void onCreate(Bundle savedInstanceState) {
20 | super.onCreate( savedInstanceState );
21 | setContentView( R.layout.activity_groupzoom );
22 | DroidNet.init(groupzoom.this);
23 | mDroidNet = DroidNet.getInstance();
24 | mDroidNet.addInternetConnectivityListener(groupzoom.this);
25 | imageView=findViewById(R.id.zoom);
26 | Bundle bundle1=getIntent().getExtras();
27 | if (bundle1!=null){
28 | Picasso.get().load( bundle1.getString( "gp" )).into(imageView);
29 | }
30 | else {
31 | Intent intent = new Intent(this, group.class);
32 | startActivity(intent);
33 | finish();
34 | }
35 | }
36 |
37 |
38 | @Override
39 | public void onInternetConnectivityChanged(boolean isConnected) {
40 | if (isConnected) {
41 | netIsOn();
42 | } else {
43 | netIsOff();
44 | }
45 | }
46 |
47 |
48 | private void netIsOn(){
49 |
50 | }
51 |
52 | private void netIsOff(){
53 | Toast toast = Toast.makeText(groupzoom.this, " No internet ", Toast.LENGTH_LONG);
54 | toast.show();
55 | }
56 |
57 |
58 | @Override
59 | protected void onDestroy() {
60 | super.onDestroy();
61 | mDroidNet.removeInternetConnectivityChangeListener(groupzoom.this);
62 | }
63 | }
64 |
--------------------------------------------------------------------------------
/app/src/main/java/com/example/logintest/BlogRecyclerAdapter.java:
--------------------------------------------------------------------------------
1 | package com.example.logintest;
2 |
3 | import android.content.Context;
4 | import android.view.LayoutInflater;
5 | import android.view.View;
6 | import android.view.ViewGroup;
7 | import android.widget.TextView;
8 | import androidx.annotation.NonNull;
9 | import androidx.recyclerview.widget.RecyclerView;
10 | import com.google.firebase.auth.FirebaseAuth;
11 | import com.google.firebase.firestore.FirebaseFirestore;
12 |
13 | import java.util.List;
14 |
15 | public class BlogRecyclerAdapter extends RecyclerView.Adapter {
16 |
17 | public List blog_list;
18 | public Context context;
19 | private FirebaseFirestore firebaseFirestore;
20 | private FirebaseAuth firebaseAuth;
21 |
22 | public BlogRecyclerAdapter(List blog_list){
23 | this.blog_list = blog_list;
24 | }
25 |
26 | @NonNull
27 | @Override
28 | public ViewHolder onCreateViewHolder(@NonNull ViewGroup parent, int viewType) {
29 | View view=LayoutInflater.from(parent.getContext()).inflate(R.layout.blog_item, parent ,false);
30 | return new ViewHolder(view);
31 |
32 | }
33 |
34 | @Override
35 | public void onBindViewHolder(@NonNull ViewHolder holder, int position) {
36 | String desc_data =blog_list.get( position ).getDesc();
37 | holder.setDestext(desc_data);
38 | }
39 |
40 | @Override
41 | public int getItemCount() {
42 | return blog_list.size();
43 | }
44 |
45 | public class ViewHolder extends RecyclerView.ViewHolder{
46 | private TextView descview;
47 | private View mview;
48 |
49 |
50 | public ViewHolder(@NonNull View itemView) {
51 | super( itemView );
52 | mview=itemView;
53 | }
54 |
55 | public void setDestext(String desctext)
56 | {
57 | descview=itemView.findViewById(R.id.blog_desc);
58 | descview.setText(desctext);
59 | }
60 |
61 | }
62 |
63 | }
64 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable/ic_forest.xml:
--------------------------------------------------------------------------------
1 |
6 |
9 |
12 |
15 |
18 |
21 |
24 |
25 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable/ic_logout.xml:
--------------------------------------------------------------------------------
1 |
6 |
9 |
12 |
15 |
18 |
21 |
22 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/activity_group.xml:
--------------------------------------------------------------------------------
1 |
2 |
9 |
13 |
14 |
29 |
36 |
50 |
--------------------------------------------------------------------------------
/app/src/main/java/com/example/logintest/eyezoom.java:
--------------------------------------------------------------------------------
1 | package com.example.logintest;
2 |
3 | import android.content.Intent;
4 | import android.os.Bundle;
5 | import android.view.View;
6 | import android.widget.ImageView;
7 | import android.widget.TextView;
8 | import android.widget.Toast;
9 |
10 | import androidx.appcompat.app.AppCompatActivity;
11 |
12 | import com.droidnet.DroidListener;
13 | import com.droidnet.DroidNet;
14 | import com.squareup.picasso.Picasso;
15 | public class eyezoom extends AppCompatActivity implements DroidListener {
16 | ImageView imageView;
17 | TextView textView;
18 | private DroidNet mDroidNet;
19 |
20 | @Override
21 | protected void onCreate(Bundle savedInstanceState) {
22 | super.onCreate( savedInstanceState );
23 | setContentView( R.layout.activity_eyezoom );
24 | DroidNet.init(eyezoom.this);
25 | mDroidNet = DroidNet.getInstance();
26 | mDroidNet.addInternetConnectivityListener(eyezoom.this);
27 | imageView=findViewById(R.id.zoom);
28 | textView=findViewById(R.id.textView);
29 | textView.setVisibility(View.INVISIBLE);
30 | Bundle bundle2=getIntent().getExtras();
31 | if(bundle2!=null){
32 | Picasso.get().load( bundle2.getString( "event")).into(imageView);
33 | textView.setVisibility(View.VISIBLE);
34 | textView.setText( bundle2.getString( "des"));
35 | }
36 | else {
37 | Intent intent = new Intent(this, events.class);
38 | startActivity(intent);
39 | finish();
40 | }
41 | }
42 |
43 |
44 | @Override
45 | public void onInternetConnectivityChanged(boolean isConnected) {
46 | if (isConnected) {
47 | //do Stuff with internet
48 | netIsOn();
49 | } else {
50 | //no internet
51 | netIsOff();
52 | }
53 | }
54 |
55 |
56 | private void netIsOn(){
57 |
58 |
59 |
60 |
61 | }
62 |
63 | private void netIsOff(){
64 | Toast toast = Toast.makeText(eyezoom.this, " No internet ", Toast.LENGTH_LONG);
65 | toast.show();
66 | }
67 |
68 |
69 | @Override
70 | protected void onDestroy() {
71 | super.onDestroy();
72 | mDroidNet.removeInternetConnectivityChangeListener(eyezoom.this);
73 | }
74 | }
75 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/activity_events.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
10 |
11 |
17 |
22 |
23 |
24 |
30 |
31 |
35 |
40 |
41 |
42 |
54 |
55 |
56 |
57 |
58 |
59 |
60 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/users.xml:
--------------------------------------------------------------------------------
1 |
2 |
15 |
18 |
27 |
37 |
38 |
51 |
52 |
53 |
--------------------------------------------------------------------------------
/gradlew.bat:
--------------------------------------------------------------------------------
1 | @if "%DEBUG%" == "" @echo off
2 | @rem ##########################################################################
3 | @rem
4 | @rem Gradle startup script for Windows
5 | @rem
6 | @rem ##########################################################################
7 |
8 | @rem Set local scope for the variables with windows NT shell
9 | if "%OS%"=="Windows_NT" setlocal
10 |
11 | set DIRNAME=%~dp0
12 | if "%DIRNAME%" == "" set DIRNAME=.
13 | set APP_BASE_NAME=%~n0
14 | set APP_HOME=%DIRNAME%
15 |
16 | @rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
17 | set DEFAULT_JVM_OPTS=
18 |
19 | @rem Find java.exe
20 | if defined JAVA_HOME goto findJavaFromJavaHome
21 |
22 | set JAVA_EXE=java.exe
23 | %JAVA_EXE% -version >NUL 2>&1
24 | if "%ERRORLEVEL%" == "0" goto init
25 |
26 | echo.
27 | echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
28 | echo.
29 | echo Please set the JAVA_HOME variable in your environment to match the
30 | echo location of your Java installation.
31 |
32 | goto fail
33 |
34 | :findJavaFromJavaHome
35 | set JAVA_HOME=%JAVA_HOME:"=%
36 | set JAVA_EXE=%JAVA_HOME%/bin/java.exe
37 |
38 | if exist "%JAVA_EXE%" goto init
39 |
40 | echo.
41 | echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
42 | echo.
43 | echo Please set the JAVA_HOME variable in your environment to match the
44 | echo location of your Java installation.
45 |
46 | goto fail
47 |
48 | :init
49 | @rem Get command-line arguments, handling Windows variants
50 |
51 | if not "%OS%" == "Windows_NT" goto win9xME_args
52 |
53 | :win9xME_args
54 | @rem Slurp the command line arguments.
55 | set CMD_LINE_ARGS=
56 | set _SKIP=2
57 |
58 | :win9xME_args_slurp
59 | if "x%~1" == "x" goto execute
60 |
61 | set CMD_LINE_ARGS=%*
62 |
63 | :execute
64 | @rem Setup the command line
65 |
66 | set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
67 |
68 | @rem Execute Gradle
69 | "%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS%
70 |
71 | :end
72 | @rem End local scope for the variables with windows NT shell
73 | if "%ERRORLEVEL%"=="0" goto mainEnd
74 |
75 | :fail
76 | rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
77 | rem the _cmd.exe /c_ return code!
78 | if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1
79 | exit /b 1
80 |
81 | :mainEnd
82 | if "%OS%"=="Windows_NT" endlocal
83 |
84 | :omega
85 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable/ic_color_instaagram.xml:
--------------------------------------------------------------------------------
1 |
7 |
9 |
10 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
24 |
25 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
39 |
40 |
46 |
47 |
48 |
49 |
50 |
51 |
52 |
53 |
--------------------------------------------------------------------------------
/app/src/main/java/com/example/logintest/HomeFragment.java:
--------------------------------------------------------------------------------
1 | package com.example.logintest;
2 |
3 | import android.os.Bundle;
4 |
5 | import androidx.annotation.Nullable;
6 | import androidx.fragment.app.Fragment;
7 | import androidx.recyclerview.widget.LinearLayoutManager;
8 | import androidx.recyclerview.widget.RecyclerView;
9 | import android.view.LayoutInflater;
10 | import android.view.View;
11 | import android.view.ViewGroup;
12 | import com.google.firebase.auth.FirebaseAuth;
13 | import com.google.firebase.firestore.DocumentChange;
14 | import com.google.firebase.firestore.DocumentSnapshot;
15 | import com.google.firebase.firestore.EventListener;
16 | import com.google.firebase.firestore.FirebaseFirestore;
17 | import com.google.firebase.firestore.FirebaseFirestoreException;
18 | import com.google.firebase.firestore.QuerySnapshot;
19 | import java.util.ArrayList;
20 | import java.util.List;
21 |
22 |
23 | /**
24 | * A simple {@link Fragment} subclass.
25 | */
26 | public class HomeFragment extends Fragment {
27 |
28 | private RecyclerView blog_list_view;
29 | private List blog_list;
30 | private FirebaseFirestore firebaseFirestore;
31 | private FirebaseAuth firebaseAuth;
32 | private BlogRecyclerAdapter blogRecyclerAdapter;
33 | private DocumentSnapshot lastVisible;
34 | private Boolean isFirstPageFirstLoad = true;
35 | public HomeFragment() {
36 | // Required empty public constructor
37 | }
38 | @Override
39 | public View onCreateView(LayoutInflater inflater, ViewGroup container,
40 | Bundle savedInstanceState) {
41 | View view =inflater.inflate( R.layout.fragment_home, container, false );
42 | blog_list = new ArrayList<>();
43 | blog_list_view= view.findViewById(R.id.blog_list_view);
44 | firebaseFirestore =FirebaseFirestore.getInstance();
45 | blogRecyclerAdapter=new BlogRecyclerAdapter(blog_list);
46 | blog_list_view.setLayoutManager( new LinearLayoutManager(getActivity()));
47 | blog_list_view.setAdapter(blogRecyclerAdapter);
48 | firebaseFirestore.collection( "all" ).addSnapshotListener( new EventListener() {
49 | @Override
50 | public void onEvent(@Nullable QuerySnapshot documentSnapshots, @Nullable FirebaseFirestoreException e) {
51 | for (DocumentChange doc : documentSnapshots.getDocumentChanges()) {
52 | if(doc.getType()== DocumentChange.Type.ADDED){
53 | BlogPost blogPost= doc.getDocument().toObject(BlogPost.class);
54 | blog_list.add(blogPost);
55 | blogRecyclerAdapter.notifyDataSetChanged();
56 |
57 | }
58 | }
59 | }
60 | } );
61 | return view;
62 | }
63 | }
64 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/activity_eyeupload.xml:
--------------------------------------------------------------------------------
1 |
2 |
10 |
18 |
35 |
36 |
47 |
48 |
58 |
59 |
60 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/activity_newpostactivity.xml:
--------------------------------------------------------------------------------
1 |
2 |
10 |
11 |
20 |
21 |
38 |
50 |
51 |
63 |
--------------------------------------------------------------------------------
/app/build.gradle:
--------------------------------------------------------------------------------
1 | apply plugin: 'com.android.application'
2 | apply plugin: 'com.google.gms.google-services'
3 |
4 |
5 | android {
6 | compileSdkVersion 29
7 | buildToolsVersion "29.0.2"
8 | defaultConfig {
9 | applicationId "com.example.logintest"
10 | minSdkVersion 21
11 | targetSdkVersion 29
12 | versionCode 1
13 | versionName "1.0"
14 | testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
15 | }
16 | buildTypes {
17 | release {
18 | minifyEnabled false
19 | shrinkResources false
20 | proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
21 | }
22 |
23 | }
24 | }
25 | dependencies {
26 | implementation fileTree(dir: 'libs', include: ['*.jar'])
27 | implementation 'androidx.appcompat:appcompat:1.1.0'
28 | implementation 'com.agilie:interface-interaction:1.0'
29 | implementation 'com.squareup.picasso:picasso:2.71828'
30 | implementation 'de.hdodenhof:circleimageview:3.0.1' //circle view
31 | implementation 'com.jsibbold:zoomage:1.3.0-SNAPSHOT' // zoom in library
32 | implementation 'com.google.firebase:firebase-storage:19.1.1' //firestorage
33 | implementation 'com.google.firebase:firebase-firestore:21.4.3' //firestore
34 | implementation 'com.github.gabrielemariotti.recyclerview:recyclerview-animators:0.3.0-SNAPSHOT@aar'
35 | implementation 'com.firebaseui:firebase-ui-database:0.4.0' // iused in eye
36 | implementation 'com.github.GoodieBag:CarouselPicker:v1.1' //used in block
37 | implementation 'androidx.constraintlayout:constraintlayout:1.1.3' // everything
38 | implementation 'com.google.firebase:firebase-auth:19.3.1' // login
39 | implementation 'com.daimajia.androidanimations:library:2.3@aar' // that shaking things
40 | implementation 'androidx.legacy:legacy-support-v4:1.0.0'
41 | testImplementation 'junit:junit:4.12'
42 | implementation 'com.asksira.android:bsimagepicker:1.3.2' // pick image
43 | implementation 'com.theartofdev.edmodo:android-image-cropper:2.6.0' // to crop duh
44 | implementation 'com.jsibbold:zoomage:1.3.0-SNAPSHOT' // zoom thing
45 | implementation 'com.google.firebase:firebase-database:19.3.0' //firebase database
46 | implementation 'id.zelory:compressor:2.1.0' // compressor
47 | implementation 'androidx.recyclerview:recyclerview:1.1.0'
48 | androidTestImplementation 'androidx.test.ext:junit:1.1.1'
49 | androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
50 | implementation 'androidx.cardview:cardview:1.0.0' //card view
51 | implementation 'com.job:droidnet:2.0.0' // check internet connection
52 | implementation 'com.github.abhidiwakar:AnstronCoreHelper:1.1'
53 | implementation 'com.iceteck.silicompressorr:silicompressor:2.2.3'
54 |
55 |
56 | implementation "android.arch.paging:runtime:1.0.1"
57 | //Firebase Pagination Library
58 | implementation 'com.shreyaspatil:FirebaseRecyclerPagination:1.0.1'
59 |
60 |
61 |
62 |
63 |
64 |
65 | }
66 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/eyecard.xml:
--------------------------------------------------------------------------------
1 |
2 |
15 |
18 |
27 |
40 |
41 |
51 |
52 |
65 |
66 |
67 |
--------------------------------------------------------------------------------
/.idea/markdown-navigator.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 |
49 |
50 |
51 |
52 |
53 |
54 |
55 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/activity_setupactivity.xml:
--------------------------------------------------------------------------------
1 |
2 |
9 |
19 |
20 |
35 |
36 |
47 |
59 |
69 |
--------------------------------------------------------------------------------
/app/src/main/java/com/example/logintest/block.java:
--------------------------------------------------------------------------------
1 | package com.example.logintest;
2 |
3 | import android.content.Intent;
4 | import android.graphics.Color;
5 | import android.net.Uri;
6 | import android.os.Bundle;
7 | import android.view.View;
8 | import android.widget.Button;
9 | import android.widget.ImageView;
10 | import android.widget.Toast;
11 | import androidx.appcompat.app.AppCompatActivity;
12 | import com.droidnet.DroidListener;
13 | import com.droidnet.DroidNet;
14 | import com.squareup.picasso.Picasso;
15 | import java.util.ArrayList;
16 | import java.util.List;
17 | import in.goodiebag.carouselpicker.CarouselPicker;
18 |
19 | public class block extends AppCompatActivity implements DroidListener {
20 | ImageView imageView;
21 | Button button;
22 | private DroidNet mDroidNet;
23 |
24 | @Override
25 | protected void onCreate(Bundle savedInstanceState) {
26 | super.onCreate(savedInstanceState);
27 | setContentView(R.layout.activity_block);
28 | DroidNet.init(block.this);
29 | mDroidNet = DroidNet.getInstance();
30 | mDroidNet.addInternetConnectivityListener(block.this);
31 | imageView = findViewById(R.id.blockbg);
32 | Picasso.get().load("https://i.imgur.com/vlmRY4Z.jpg").into(imageView);
33 | button = findViewById(R.id.report);
34 | button.setOnClickListener(new View.OnClickListener() {
35 | @Override
36 | public void onClick(View v) {
37 | Intent intent = new Intent();
38 | intent.setAction(Intent.ACTION_VIEW);
39 | intent.addCategory(Intent.CATEGORY_BROWSABLE);
40 | intent.setData(Uri.parse("https://forms.gle/ZpQ69vcgWnF9SR1t5 "));
41 | startActivity(intent);
42 | }
43 | });
44 | CarouselPicker carouselPicker = findViewById(R.id.carousel);
45 | List textItems = new ArrayList<>();
46 | textItems.add(new CarouselPicker.TextItem("Abusive", 10));
47 | textItems.add(new CarouselPicker.TextItem("Porn", 10));
48 | textItems.add(new CarouselPicker.TextItem("identity theft", 10));
49 | textItems.add(new CarouselPicker.TextItem("Fake data", 10));
50 | textItems.add(new CarouselPicker.TextItem("Bullying", 10));
51 | textItems.add(new CarouselPicker.TextItem("Sensitive", 10));
52 | textItems.add(new CarouselPicker.TextItem("Humiliating ", 10));
53 | textItems.add(new CarouselPicker.TextItem("lewd", 10));
54 | textItems.add(new CarouselPicker.TextItem("malicious notes", 10));
55 | CarouselPicker.CarouselViewAdapter textAdapter = new CarouselPicker.CarouselViewAdapter(this, textItems, 0);
56 | carouselPicker.setAdapter(textAdapter);
57 | textAdapter.setTextColor((Color.parseColor("#FFFFFF")));
58 |
59 | }
60 |
61 | @Override
62 | public void onInternetConnectivityChanged(boolean isConnected) {
63 | if (isConnected) {
64 | netIsOn();
65 | } else {
66 | netIsOff();
67 | }
68 | }
69 |
70 | private void netIsOn(){
71 | }
72 |
73 | private void netIsOff(){
74 | Toast toast = Toast.makeText(block.this, " No internet ", Toast.LENGTH_LONG);
75 | toast.show();
76 | }
77 |
78 | @Override
79 | protected void onDestroy() {
80 | super.onDestroy();
81 | mDroidNet.removeInternetConnectivityChangeListener(block.this);
82 | }
83 | }
84 |
85 |
86 |
87 |
88 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/activity_block.xml:
--------------------------------------------------------------------------------
1 |
2 |
10 |
11 |
12 |
19 |
20 |
33 |
34 |
35 |
36 |
37 |
38 |
49 |
50 |
51 |
52 |
62 |
63 |
75 |
76 |
87 |
88 |
89 |
90 |
91 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/blog_item.xml:
--------------------------------------------------------------------------------
1 |
2 |
8 |
9 |
12 |
13 |
19 |
20 |
28 |
29 |
30 |
37 |
38 |
52 |
53 |
54 |
66 |
78 |
79 |
--------------------------------------------------------------------------------
/.idea/codeStyles/Project.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 | xmlns:android
14 |
15 | ^$
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 | xmlns:.*
25 |
26 | ^$
27 |
28 |
29 | BY_NAME
30 |
31 |
32 |
33 |
34 |
35 |
36 | .*:id
37 |
38 | http://schemas.android.com/apk/res/android
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 | .*:name
48 |
49 | http://schemas.android.com/apk/res/android
50 |
51 |
52 |
53 |
54 |
55 |
56 |
57 |
58 | name
59 |
60 | ^$
61 |
62 |
63 |
64 |
65 |
66 |
67 |
68 |
69 | style
70 |
71 | ^$
72 |
73 |
74 |
75 |
76 |
77 |
78 |
79 |
80 | .*
81 |
82 | ^$
83 |
84 |
85 | BY_NAME
86 |
87 |
88 |
89 |
90 |
91 |
92 | .*
93 |
94 | http://schemas.android.com/apk/res/android
95 |
96 |
97 | ANDROID_ATTRIBUTE_ORDER
98 |
99 |
100 |
101 |
102 |
103 |
104 | .*
105 |
106 | .*
107 |
108 |
109 | BY_NAME
110 |
111 |
112 |
113 |
114 |
115 |
116 |
--------------------------------------------------------------------------------
/app/src/main/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 |
6 |
7 |
8 |
9 |
17 |
18 |
22 |
26 |
30 |
34 |
35 |
36 |
37 |
38 |
39 |
43 |
47 |
51 |
54 |
58 |
62 |
66 |
70 |
74 |
78 |
79 |
84 |
87 |
88 |
89 |
90 |
--------------------------------------------------------------------------------
/app/src/main/java/com/example/logintest/ImageAdapter.java:
--------------------------------------------------------------------------------
1 | package com.example.logintest;
2 |
3 | import android.content.Context;
4 | import android.view.ContextMenu;
5 | import android.view.LayoutInflater;
6 | import android.view.Menu;
7 | import android.view.MenuItem;
8 | import android.view.View;
9 | import android.view.ViewGroup;
10 | import android.widget.ImageView;
11 | import android.widget.TextView;
12 | import androidx.annotation.NonNull;
13 | import androidx.recyclerview.widget.RecyclerView;
14 | import com.squareup.picasso.Picasso;
15 | import java.util.List;
16 |
17 | public class ImageAdapter extends RecyclerView.Adapter {
18 | private Context mContext;
19 | private List mUploads;
20 | private OnItemClickListener mListener;
21 |
22 |
23 | public ImageAdapter(Context context, List uploads) {
24 | mContext = context;
25 | mUploads = uploads;
26 | }
27 |
28 |
29 | @NonNull
30 | @Override
31 | public ImageAdapter.ImageViewHolder onCreateViewHolder(@NonNull ViewGroup parent, int viewType) {
32 | View v = LayoutInflater.from(mContext).inflate(R.layout.image_item, parent, false);
33 | return new ImageViewHolder(v);
34 | }
35 |
36 | @Override
37 | public void onBindViewHolder(@NonNull ImageAdapter.ImageViewHolder holder, int position) {
38 | Upload uploadCurrent = mUploads.get(position);
39 | holder.textViewName.setText(uploadCurrent.getName());
40 | Picasso.get()
41 | .load(uploadCurrent.getImageUrl())
42 | .into(holder.imageView);
43 | }
44 |
45 | @Override
46 | public int getItemCount() {
47 | return mUploads.size();
48 | }
49 |
50 | public class ImageViewHolder extends RecyclerView.ViewHolder implements View.OnClickListener,
51 | View.OnCreateContextMenuListener, MenuItem.OnMenuItemClickListener {
52 | public TextView textViewName;
53 | public ImageView imageView;
54 |
55 | public ImageViewHolder(View itemView) {
56 | super(itemView);
57 | textViewName = itemView.findViewById(R.id.text_view_name);
58 | imageView = itemView.findViewById(R.id.image_view_upload);
59 | itemView.setOnClickListener(this);
60 | itemView.setOnCreateContextMenuListener(this);
61 | }
62 |
63 | @Override
64 | public boolean onMenuItemClick(MenuItem item) {
65 | if (mListener != null) {
66 | int position = getAdapterPosition();
67 | if (position != RecyclerView.NO_POSITION) {
68 | switch (item.getItemId()) {
69 | case 1:
70 | mListener.onWhatEverClick(position);
71 | return true;
72 | case 2:
73 | mListener.onDeleteClick(position);
74 | return true;
75 | }
76 | }
77 | }
78 | return false;
79 | }
80 |
81 | @Override
82 | public void onClick(View v) {
83 | if (mListener != null) {
84 | String position = mUploads.get( getAdapterPosition() ).getImageUrl();
85 | if (position!=null) {
86 | mListener.onItemClick(position);
87 | }
88 | }
89 | }
90 |
91 | @Override
92 | public void onCreateContextMenu(ContextMenu menu, View v, ContextMenu.ContextMenuInfo menuInfo) {
93 | menu.setHeaderTitle("Select Action");
94 | MenuItem doWhatever = menu.add(Menu.NONE, 1, 1, "Report");
95 | MenuItem delete = menu.add(Menu.NONE, 2, 2, "Delete");
96 | doWhatever.setOnMenuItemClickListener(this);
97 | delete.setOnMenuItemClickListener(this);
98 | }
99 | }
100 |
101 |
102 | public interface OnItemClickListener {
103 | void onItemClick(String position);
104 | void onWhatEverClick(int position);
105 | void onDeleteClick(int position);
106 | }
107 |
108 |
109 | public void setOnItemClickListener(OnItemClickListener listener)
110 | {
111 | mListener = listener;
112 | }
113 |
114 |
115 | }
116 |
--------------------------------------------------------------------------------
/.idea/markdown-navigator-enh.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable/ic_launcher_background.xml:
--------------------------------------------------------------------------------
1 |
2 |
8 |
10 |
12 |
14 |
16 |
18 |
20 |
22 |
24 |
26 |
28 |
30 |
32 |
34 |
36 |
38 |
40 |
42 |
44 |
46 |
48 |
50 |
52 |
54 |
56 |
58 |
60 |
62 |
64 |
66 |
68 |
70 |
72 |
74 |
75 |
--------------------------------------------------------------------------------
/app/src/main/java/com/example/logintest/events.java:
--------------------------------------------------------------------------------
1 | package com.example.logintest;
2 |
3 | import android.content.Intent;
4 | import android.net.Uri;
5 | import android.os.Bundle;
6 | import android.view.View;
7 | import android.widget.Toast;
8 | import androidx.appcompat.app.AppCompatActivity;
9 | import androidx.recyclerview.widget.LinearLayoutManager;
10 | import androidx.recyclerview.widget.RecyclerView;
11 |
12 | import com.droidnet.DroidListener;
13 | import com.droidnet.DroidNet;
14 | import com.firebase.ui.database.FirebaseRecyclerAdapter;
15 | import com.google.android.material.floatingactionbutton.FloatingActionButton;
16 | import com.google.firebase.database.DatabaseReference;
17 | import com.google.firebase.database.FirebaseDatabase;
18 | public class events extends AppCompatActivity implements DroidListener {
19 | FloatingActionButton fab;
20 | LinearLayoutManager LayoutManager;
21 | LinearLayoutManager blayoutManager;
22 | RecyclerView aRecyclerView;
23 | RecyclerView bRecyclerView;
24 | FirebaseDatabase aFirebaseDatabase;
25 | FirebaseDatabase bFirebaseDatabase;
26 | DatabaseReference aRef;
27 | DatabaseReference bRef;
28 | private DroidNet mDroidNet;
29 |
30 | @Override
31 | protected void onCreate(Bundle savedInstanceState) {
32 | super.onCreate(savedInstanceState);
33 | setContentView(R.layout.activity_events);
34 |
35 | DroidNet.init(events.this);
36 | mDroidNet = DroidNet.getInstance();
37 | mDroidNet.addInternetConnectivityListener(events.this);
38 |
39 | fab=findViewById( R.id.floatingActionButton3 );
40 | fab.setOnClickListener( new View.OnClickListener() {
41 | @Override
42 | public void onClick(View v) {
43 | Intent intent = new Intent();
44 | intent.setAction(Intent.ACTION_VIEW);
45 | intent.addCategory(Intent.CATEGORY_BROWSABLE);
46 | intent.setData( Uri.parse("https://forms.gle/MkFfASsEvZTLSACe7"));
47 | startActivity(intent);
48 | }
49 | } );
50 | aRecyclerView = findViewById(R.id.eventbanrec );
51 | aRecyclerView.setHasFixedSize(true);
52 | aRecyclerView.setLayoutManager(LayoutManager);
53 | aRecyclerView.setLayoutManager(new LinearLayoutManager(this, LinearLayoutManager.HORIZONTAL, false));
54 | aFirebaseDatabase = FirebaseDatabase.getInstance();
55 | aRef = aFirebaseDatabase.getReference("eventbanner");
56 | aRef.keepSynced(true);
57 | bRecyclerView = findViewById(R.id.eventcardrec );
58 | bRecyclerView.setHasFixedSize(true);
59 | bRecyclerView.setLayoutManager(blayoutManager);
60 | bRecyclerView.setLayoutManager(new LinearLayoutManager(this, LinearLayoutManager.HORIZONTAL, false));
61 | bFirebaseDatabase = FirebaseDatabase.getInstance();
62 | bRef = bFirebaseDatabase.getReference("eventcard");
63 | bRef.keepSynced(true);
64 | Toast toast = Toast.makeText(events.this, "Events Around You", Toast.LENGTH_LONG);
65 | toast.show();
66 |
67 |
68 |
69 |
70 |
71 | }
72 | @Override
73 | protected void onStart() {
74 | super.onStart();
75 | FirebaseRecyclerAdapter firebaseRecyclerAdapter =
76 | new FirebaseRecyclerAdapter(
77 | Model.class,
78 | R.layout.eventcard,
79 | ViewHolder2.class,
80 | aRef
81 | ) {
82 | @Override
83 | protected void populateViewHolder(ViewHolder2 viewHolder, Model model, int position) {
84 | viewHolder.setDetails(getApplicationContext(), model.getTitle(), model.getDescription(), model.getImage());
85 | }
86 | };
87 |
88 | aRecyclerView.setAdapter(firebaseRecyclerAdapter);
89 | firebaseRecyclerAdapter = new FirebaseRecyclerAdapter(
90 | Model.class,
91 | R.layout.eventcard,
92 | ViewHolder2.class,
93 | bRef
94 | ) {
95 | @Override
96 | protected void populateViewHolder(ViewHolder2 viewHolder, Model model, int position) {
97 | viewHolder.setDetails( getApplicationContext(), model.getTitle(), model.getDescription(), model.getImage() );
98 | }
99 | };
100 | bRecyclerView.setAdapter(firebaseRecyclerAdapter);
101 | }
102 |
103 |
104 | @Override
105 | public void onInternetConnectivityChanged(boolean isConnected) {
106 | if (isConnected) {
107 | //do Stuff with internet
108 | netIsOn();
109 | } else {
110 | //no internet
111 | netIsOff();
112 | }
113 | }
114 |
115 |
116 | private void netIsOn(){
117 |
118 | }
119 |
120 | private void netIsOff(){
121 | Toast toast = Toast.makeText(events.this, " No internet ", Toast.LENGTH_LONG);
122 | toast.show();
123 | }
124 |
125 |
126 | @Override
127 | protected void onDestroy() {
128 | super.onDestroy();
129 | mDroidNet.removeInternetConnectivityChangeListener(events.this);
130 | }
131 | }
132 |
133 |
--------------------------------------------------------------------------------
/app/src/main/java/com/example/logintest/eye.java:
--------------------------------------------------------------------------------
1 | package com.example.logintest;
2 | import android.content.Intent;
3 | import android.os.Bundle;
4 | import android.view.View;
5 | import android.widget.Toast;
6 | import androidx.annotation.NonNull;
7 | import androidx.appcompat.app.AppCompatActivity;
8 | import androidx.recyclerview.widget.RecyclerView;
9 | import androidx.recyclerview.widget.StaggeredGridLayoutManager;
10 | import com.droidnet.DroidListener;
11 | import com.droidnet.DroidNet;
12 | import com.google.android.gms.tasks.OnSuccessListener;
13 | import com.google.android.material.floatingactionbutton.FloatingActionButton;
14 | import com.google.firebase.database.DataSnapshot;
15 | import com.google.firebase.database.DatabaseError;
16 | import com.google.firebase.database.DatabaseReference;
17 | import com.google.firebase.database.FirebaseDatabase;
18 | import com.google.firebase.database.ValueEventListener;
19 | import com.google.firebase.storage.FirebaseStorage;
20 | import com.google.firebase.storage.StorageReference;
21 | import java.util.ArrayList;
22 | import java.util.List;
23 |
24 |
25 | public class eye extends AppCompatActivity implements DroidListener ,ImageAdapter.OnItemClickListener{
26 | FloatingActionButton fab;
27 | RecyclerView RecyclerView;
28 | ImageAdapter mAdapter;
29 | FirebaseStorage mStorage;
30 | DatabaseReference mDatabaseRef;
31 | private List mUploads;
32 | DroidNet mDroidNet;
33 | private ValueEventListener mDBListener;
34 |
35 |
36 |
37 | @Override
38 | protected void onCreate(Bundle savedInstanceState) {
39 | super.onCreate(savedInstanceState);
40 | setContentView(R.layout.activity_eye);
41 | DroidNet.init(eye.this);
42 | mDroidNet = DroidNet.getInstance();
43 | mDroidNet.addInternetConnectivityListener(eye.this);
44 | fab = findViewById(R.id.floatingActionButton);
45 | fab.setOnClickListener(new View.OnClickListener() {
46 | @Override
47 | public void onClick(View v) {
48 | Intent intent = new Intent(eye.this, eyeupload.class);
49 | startActivity(intent);
50 | }
51 | });
52 | RecyclerView = findViewById(R.id.recycler_view);
53 | RecyclerView.setHasFixedSize(true);
54 | RecyclerView.setLayoutManager(new StaggeredGridLayoutManager(3, StaggeredGridLayoutManager.VERTICAL));
55 | mUploads = new ArrayList<>();
56 | mStorage = FirebaseStorage.getInstance();
57 | mDatabaseRef = FirebaseDatabase.getInstance().getReference("stag");
58 | mDatabaseRef.keepSynced(true);
59 | mDBListener = mDatabaseRef.addValueEventListener(new ValueEventListener() {
60 | @Override
61 | public void onDataChange(DataSnapshot dataSnapshot) {
62 | mUploads.clear();
63 | for (DataSnapshot postSnapshot : dataSnapshot.getChildren()) {
64 | Upload upload = postSnapshot.getValue(Upload.class);
65 | upload.setKey(postSnapshot.getKey());
66 | mUploads.add(upload);
67 | }
68 | mAdapter = new ImageAdapter(eye.this, mUploads);
69 | mAdapter.setOnItemClickListener(eye.this);
70 | RecyclerView.setAdapter(mAdapter);
71 | }
72 |
73 | @Override
74 | public void onCancelled(@NonNull DatabaseError databaseError) {
75 | Toast.makeText(eye.this, databaseError.getMessage(), Toast.LENGTH_SHORT).show();
76 | }
77 |
78 |
79 | });
80 | }
81 |
82 | @Override
83 | public void onInternetConnectivityChanged(boolean isConnected) {
84 | if (isConnected) {
85 | netIsOn();
86 | } else {
87 | netIsOff();
88 | }
89 | }
90 |
91 |
92 | private void netIsOn(){
93 | }
94 |
95 | private void netIsOff(){
96 | Toast toast = Toast.makeText(eye.this, " No internet ", Toast.LENGTH_LONG);
97 | toast.show();
98 | }
99 |
100 |
101 | @Override
102 | protected void onDestroy() {
103 | super.onDestroy();
104 | mDroidNet.removeInternetConnectivityChangeListener(eye.this);
105 | mDatabaseRef.removeEventListener(mDBListener);
106 | }
107 |
108 |
109 | @Override
110 | public void onItemClick(String position) {
111 | Intent intent =new Intent(eye.this,eventzoom.class);
112 | intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
113 | intent.putExtra("eye",position);
114 | startActivity(intent);
115 | }
116 |
117 |
118 | @Override
119 | public void onWhatEverClick(int position) {
120 | Toast.makeText(this, "Whatever click at position: " + position, Toast.LENGTH_SHORT).show();
121 | }
122 |
123 |
124 |
125 | @Override
126 | public void onDeleteClick(int position) {
127 | Upload selectedItem = mUploads.get(position);
128 | final String selectedKey = selectedItem.getKey();
129 | StorageReference imageRef = mStorage.getReferenceFromUrl(selectedItem.getImageUrl());
130 | imageRef.delete().addOnSuccessListener(new OnSuccessListener() {
131 | @Override
132 | public void onSuccess(Void aVoid) {
133 | mDatabaseRef.child(selectedKey).removeValue();
134 | Toast.makeText(eye.this, "Item deleted", Toast.LENGTH_SHORT).show();
135 | }
136 | });
137 | }
138 |
139 |
140 |
141 | }
142 |
143 |
144 |
145 |
146 |
147 |
148 |
149 |
150 |
151 |
152 |
--------------------------------------------------------------------------------
/app/src/main/java/com/example/logintest/Main2Activity.java:
--------------------------------------------------------------------------------
1 | package com.example.logintest;
2 |
3 | import android.content.Intent;
4 | import android.os.Bundle;
5 | import android.text.TextUtils;
6 | import android.view.View;
7 | import android.widget.Button;
8 | import android.widget.EditText;
9 | import android.widget.ImageView;
10 | import android.widget.ProgressBar;
11 | import android.widget.TextView;
12 | import android.widget.Toast;
13 |
14 | import androidx.annotation.NonNull;
15 | import androidx.appcompat.app.AppCompatActivity;
16 |
17 | import com.daimajia.androidanimations.library.Techniques;
18 | import com.daimajia.androidanimations.library.YoYo;
19 | import com.droidnet.DroidNet;
20 | import com.google.android.gms.tasks.OnCompleteListener;
21 | import com.google.android.gms.tasks.Task;
22 | import com.google.firebase.auth.AuthResult;
23 | import com.google.firebase.auth.FirebaseAuth;
24 | import com.google.firebase.auth.FirebaseUser;
25 | import com.squareup.picasso.Picasso;
26 |
27 | public class Main2Activity extends AppCompatActivity {
28 | private EditText loginEmailText;
29 | private EditText loginPassText;
30 | private Button loginBtn;
31 | private TextView loginRegBtn;
32 | private FirebaseAuth mAuth;
33 | private ProgressBar loginProgress;
34 | ImageView imageView1;
35 | ImageView imageView2;
36 | ImageView imageView3;
37 | ImageView imageView4;
38 | ImageView imageView5;
39 | private DroidNet mDroidNet;
40 |
41 |
42 | @Override
43 | protected void onCreate(Bundle savedInstanceState) {
44 | super.onCreate( savedInstanceState );
45 | setContentView( R.layout.activity_main2 );
46 |
47 | imageView1=findViewById(R.id.image111);
48 | Picasso.get().load("https://i.imgur.com/oISHJ3E.jpg").into(imageView1);
49 | imageView2=findViewById(R.id.image112);
50 | Picasso.get().load("https://i.imgur.com/5Is9jIp.jpg").into(imageView2);
51 | imageView3=findViewById(R.id.image113);
52 | Picasso.get().load("https://i.imgur.com/JEjOiuf.jpg").into(imageView3);
53 | imageView4=findViewById(R.id.image114);
54 | Picasso.get().load("https://i.imgur.com/yV5QqrA.jpg").into(imageView4);
55 | imageView5=findViewById(R.id.image115);
56 | Picasso.get().load("https://i.imgur.com/J6iKb5i.jpg").into(imageView5);
57 |
58 | mAuth = FirebaseAuth.getInstance();
59 | loginEmailText = findViewById( R.id.reg_email);
60 | loginPassText = findViewById( R.id.reg_confirm_pass );
61 | loginBtn = findViewById( R.id.login_btn );
62 | loginRegBtn = findViewById( R.id.login_reg_btn );
63 | loginProgress = findViewById( R.id.login_progress );
64 | loginRegBtn.setOnClickListener( new View.OnClickListener() {
65 | @Override
66 | public void onClick(View v) {
67 | Intent regIntent = new Intent( Main2Activity.this, registeractivity.class );
68 | startActivity( regIntent );
69 |
70 | }
71 | } );
72 |
73 | loginBtn.setOnClickListener( new View.OnClickListener() {
74 | @Override
75 | public void onClick(View v) {
76 | String loginEmail = loginEmailText.getText().toString();
77 | String loginPass = loginPassText.getText().toString();
78 | if (TextUtils.isEmpty( loginEmail ) && TextUtils.isEmpty( loginPass )) {
79 | Toast.makeText( Main2Activity.this, "Fields Are Empty", Toast.LENGTH_LONG ).show();
80 | YoYo.with( Techniques.Shake )
81 | .duration( 750 )
82 | .repeat( 2 )
83 | .playOn( findViewById( R.id.reg_email ) );
84 | YoYo.with( Techniques.Shake )
85 | .duration( 750 )
86 | .repeat( 2 )
87 | .playOn( findViewById(R.id.reg_confirm_pass));
88 | } else {
89 | if (!TextUtils.isEmpty( loginEmail ) && !TextUtils.isEmpty( loginPass )) {
90 | loginProgress.setVisibility( View.VISIBLE );
91 | mAuth.signInWithEmailAndPassword( loginEmail, loginPass ).addOnCompleteListener( new OnCompleteListener() {
92 | @Override
93 | public void onComplete(@NonNull Task task) {
94 | if (task.isSuccessful()) {
95 | sendToMain();
96 | } else {
97 | String errorMessage = task.getException().getMessage();
98 | Toast.makeText( Main2Activity.this, "Error : " + errorMessage, Toast.LENGTH_LONG ).show();
99 | }
100 | loginProgress.setVisibility( View.INVISIBLE );
101 | }
102 | } );
103 | }
104 | }
105 | }
106 | } );
107 | }
108 |
109 | @Override
110 | protected void onStart() {
111 | super.onStart();
112 | FirebaseUser currentUser = mAuth.getCurrentUser();
113 | if(currentUser != null){
114 | sendToMain();
115 | }
116 | }
117 | private void sendToMain() {
118 | Intent mainIntent = new Intent(Main2Activity.this, home.class);
119 | startActivity(mainIntent);
120 | finish();
121 | }
122 |
123 |
124 |
125 |
126 | }
127 |
--------------------------------------------------------------------------------
/gradlew:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env sh
2 |
3 | ##############################################################################
4 | ##
5 | ## Gradle start up script for UN*X
6 | ##
7 | ##############################################################################
8 |
9 | # Attempt to set APP_HOME
10 | # Resolve links: $0 may be a link
11 | PRG="$0"
12 | # Need this for relative symlinks.
13 | while [ -h "$PRG" ] ; do
14 | ls=`ls -ld "$PRG"`
15 | link=`expr "$ls" : '.*-> \(.*\)$'`
16 | if expr "$link" : '/.*' > /dev/null; then
17 | PRG="$link"
18 | else
19 | PRG=`dirname "$PRG"`"/$link"
20 | fi
21 | done
22 | SAVED="`pwd`"
23 | cd "`dirname \"$PRG\"`/" >/dev/null
24 | APP_HOME="`pwd -P`"
25 | cd "$SAVED" >/dev/null
26 |
27 | APP_NAME="Gradle"
28 | APP_BASE_NAME=`basename "$0"`
29 |
30 | # Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
31 | DEFAULT_JVM_OPTS=""
32 |
33 | # Use the maximum available, or set MAX_FD != -1 to use that value.
34 | MAX_FD="maximum"
35 |
36 | warn () {
37 | echo "$*"
38 | }
39 |
40 | die () {
41 | echo
42 | echo "$*"
43 | echo
44 | exit 1
45 | }
46 |
47 | # OS specific support (must be 'true' or 'false').
48 | cygwin=false
49 | msys=false
50 | darwin=false
51 | nonstop=false
52 | case "`uname`" in
53 | CYGWIN* )
54 | cygwin=true
55 | ;;
56 | Darwin* )
57 | darwin=true
58 | ;;
59 | MINGW* )
60 | msys=true
61 | ;;
62 | NONSTOP* )
63 | nonstop=true
64 | ;;
65 | esac
66 |
67 | CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar
68 |
69 | # Determine the Java command to use to start the JVM.
70 | if [ -n "$JAVA_HOME" ] ; then
71 | if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
72 | # IBM's JDK on AIX uses strange locations for the executables
73 | JAVACMD="$JAVA_HOME/jre/sh/java"
74 | else
75 | JAVACMD="$JAVA_HOME/bin/java"
76 | fi
77 | if [ ! -x "$JAVACMD" ] ; then
78 | die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME
79 |
80 | Please set the JAVA_HOME variable in your environment to match the
81 | location of your Java installation."
82 | fi
83 | else
84 | JAVACMD="java"
85 | which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
86 |
87 | Please set the JAVA_HOME variable in your environment to match the
88 | location of your Java installation."
89 | fi
90 |
91 | # Increase the maximum file descriptors if we can.
92 | if [ "$cygwin" = "false" -a "$darwin" = "false" -a "$nonstop" = "false" ] ; then
93 | MAX_FD_LIMIT=`ulimit -H -n`
94 | if [ $? -eq 0 ] ; then
95 | if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then
96 | MAX_FD="$MAX_FD_LIMIT"
97 | fi
98 | ulimit -n $MAX_FD
99 | if [ $? -ne 0 ] ; then
100 | warn "Could not set maximum file descriptor limit: $MAX_FD"
101 | fi
102 | else
103 | warn "Could not query maximum file descriptor limit: $MAX_FD_LIMIT"
104 | fi
105 | fi
106 |
107 | # For Darwin, add options to specify how the application appears in the dock
108 | if $darwin; then
109 | GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\""
110 | fi
111 |
112 | # For Cygwin, switch paths to Windows format before running java
113 | if $cygwin ; then
114 | APP_HOME=`cygpath --path --mixed "$APP_HOME"`
115 | CLASSPATH=`cygpath --path --mixed "$CLASSPATH"`
116 | JAVACMD=`cygpath --unix "$JAVACMD"`
117 |
118 | # We build the pattern for arguments to be converted via cygpath
119 | ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null`
120 | SEP=""
121 | for dir in $ROOTDIRSRAW ; do
122 | ROOTDIRS="$ROOTDIRS$SEP$dir"
123 | SEP="|"
124 | done
125 | OURCYGPATTERN="(^($ROOTDIRS))"
126 | # Add a user-defined pattern to the cygpath arguments
127 | if [ "$GRADLE_CYGPATTERN" != "" ] ; then
128 | OURCYGPATTERN="$OURCYGPATTERN|($GRADLE_CYGPATTERN)"
129 | fi
130 | # Now convert the arguments - kludge to limit ourselves to /bin/sh
131 | i=0
132 | for arg in "$@" ; do
133 | CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -`
134 | CHECK2=`echo "$arg"|egrep -c "^-"` ### Determine if an option
135 |
136 | if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then ### Added a condition
137 | eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"`
138 | else
139 | eval `echo args$i`="\"$arg\""
140 | fi
141 | i=$((i+1))
142 | done
143 | case $i in
144 | (0) set -- ;;
145 | (1) set -- "$args0" ;;
146 | (2) set -- "$args0" "$args1" ;;
147 | (3) set -- "$args0" "$args1" "$args2" ;;
148 | (4) set -- "$args0" "$args1" "$args2" "$args3" ;;
149 | (5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;;
150 | (6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;;
151 | (7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;;
152 | (8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;;
153 | (9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;;
154 | esac
155 | fi
156 |
157 | # Escape application args
158 | save () {
159 | for i do printf %s\\n "$i" | sed "s/'/'\\\\''/g;1s/^/'/;\$s/\$/' \\\\/" ; done
160 | echo " "
161 | }
162 | APP_ARGS=$(save "$@")
163 |
164 | # Collect all arguments for the java command, following the shell quoting and substitution rules
165 | eval set -- $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS "\"-Dorg.gradle.appname=$APP_BASE_NAME\"" -classpath "\"$CLASSPATH\"" org.gradle.wrapper.GradleWrapperMain "$APP_ARGS"
166 |
167 | # by default we should be in the correct project dir, but when run from Finder on Mac, the cwd is wrong
168 | if [ "$(uname)" = "Darwin" ] && [ "$HOME" = "$PWD" ]; then
169 | cd "$(dirname "$0")"
170 | fi
171 |
172 | exec "$JAVACMD" "$@"
173 |
--------------------------------------------------------------------------------
/app/src/main/java/com/example/logintest/group.java:
--------------------------------------------------------------------------------
1 | package com.example.logintest;
2 |
3 | import android.content.Intent;
4 | import android.net.Uri;
5 | import android.os.Bundle;
6 | import android.view.View;
7 | import android.widget.ImageView;
8 | import android.widget.Toast;
9 |
10 | import androidx.annotation.NonNull;
11 | import androidx.appcompat.app.AppCompatActivity;
12 | import androidx.recyclerview.widget.LinearLayoutManager;
13 | import androidx.recyclerview.widget.RecyclerView;
14 |
15 | import com.droidnet.DroidListener;
16 | import com.droidnet.DroidNet;
17 | import com.firebase.ui.database.FirebaseRecyclerAdapter;
18 | import com.google.android.material.floatingactionbutton.FloatingActionButton;
19 | import com.google.firebase.database.DataSnapshot;
20 | import com.google.firebase.database.DatabaseError;
21 | import com.google.firebase.database.DatabaseReference;
22 | import com.google.firebase.database.FirebaseDatabase;
23 | import com.google.firebase.database.Query;
24 | import com.google.firebase.database.ValueEventListener;
25 | import com.squareup.picasso.Picasso;
26 |
27 | import it.gmariotti.recyclerview.adapter.SlideInBottomAnimatorAdapter;
28 | public class group extends AppCompatActivity implements DroidListener {
29 | RecyclerView mRecyclerView;
30 | FirebaseDatabase mFirebaseDatabase;
31 | DatabaseReference mRef;
32 | FloatingActionButton fab;
33 | ImageView imageView;
34 | ImageView cimageView;
35 | DatabaseReference dref;
36 | private DroidNet mDroidNet;
37 |
38 |
39 | @Override
40 | protected void onCreate(Bundle savedInstanceState) {
41 | super.onCreate(savedInstanceState);
42 | setContentView(R.layout.activity_group);
43 |
44 |
45 | DroidNet.init(group.this);
46 | mDroidNet = DroidNet.getInstance();
47 | mDroidNet.addInternetConnectivityListener(group.this);
48 |
49 | fab=findViewById( R.id.floatingActionButton2);
50 | fab.setOnClickListener( new View.OnClickListener() {
51 | @Override
52 | public void onClick(View v) {
53 | Intent intent = new Intent();
54 | intent.setAction(Intent.ACTION_VIEW);
55 | intent.addCategory(Intent.CATEGORY_BROWSABLE);
56 | intent.setData( Uri.parse("https://forms.gle/MmsruV4DYhsZRCWKA"));
57 | startActivity(intent);
58 | }
59 | } );
60 |
61 | mRecyclerView = findViewById(R.id.grouprecycler);
62 | mRecyclerView.setHasFixedSize(true);
63 | mRecyclerView.setLayoutManager(new LinearLayoutManager(this, LinearLayoutManager.HORIZONTAL, true));
64 | mFirebaseDatabase = FirebaseDatabase.getInstance();
65 | mRef = mFirebaseDatabase.getReference("imagesvce");
66 | mRef.keepSynced(true);
67 | imageView=findViewById(R.id.groupbgdatabase);
68 | dref=FirebaseDatabase.getInstance().getReference();
69 | Query query=dref.child("imagex");
70 | query.keepSynced(true);
71 | query.addValueEventListener(new ValueEventListener() {
72 | @Override
73 | public void onDataChange(@NonNull DataSnapshot dataSnapshot) {
74 | String url=dataSnapshot.child("url").getValue().toString();
75 | if (!url.isEmpty())
76 | {
77 | Picasso.get()
78 | .load(url)
79 | .fit()
80 | .into(imageView);
81 | }
82 | }
83 | @Override
84 | public void onCancelled(@NonNull DatabaseError databaseError) {
85 | }
86 | });
87 | cimageView=findViewById(R.id.groupbg);
88 | dref=FirebaseDatabase.getInstance().getReference();
89 | query = dref.child("imagexbg");
90 | query.keepSynced(true);
91 | query.addValueEventListener(new ValueEventListener() {
92 | @Override
93 | public void onDataChange(@NonNull DataSnapshot dataSnapshot) {
94 | String url=dataSnapshot.child("url").getValue().toString();
95 | if (!url.isEmpty())
96 | {
97 | Picasso.get()
98 | .load(url)
99 | .fit()
100 | .into(cimageView);
101 | }
102 | }
103 | @Override
104 | public void onCancelled(@NonNull DatabaseError databaseError) {
105 | Toast.makeText(group.this, databaseError.getMessage(), Toast.LENGTH_SHORT).show();
106 | }
107 | });
108 |
109 | }
110 | @Override
111 | protected void onStart() {
112 | super.onStart();
113 | FirebaseRecyclerAdapter firebaseRecyclerAdapter =
114 | new FirebaseRecyclerAdapter(
115 | Model.class,
116 | R.layout.eyecard,
117 | ViewHolder.class,
118 | mRef
119 | ) {
120 | @Override
121 | protected void populateViewHolder(ViewHolder viewHolder, Model model, int position) {
122 | viewHolder.setDetails(getApplicationContext(), model.getTitle(), model.getDescription(), model.getImage());
123 | }
124 | };
125 | FirebaseRecyclerAdapter mAdapter = (firebaseRecyclerAdapter);
126 | SlideInBottomAnimatorAdapter animatorAdapter=new SlideInBottomAnimatorAdapter(mAdapter,mRecyclerView);
127 | mRecyclerView.setAdapter(animatorAdapter);
128 | }
129 |
130 |
131 | @Override
132 | public void onInternetConnectivityChanged(boolean isConnected) {
133 | if (isConnected) {
134 | //do Stuff with internet
135 | netIsOn();
136 | } else {
137 | //no internet
138 | netIsOff();
139 | }
140 | }
141 |
142 |
143 | private void netIsOn(){
144 |
145 | }
146 |
147 | private void netIsOff(){
148 |
149 | Toast toast = Toast.makeText(group.this, " No internet ", Toast.LENGTH_LONG);
150 | toast.show();
151 | }
152 |
153 |
154 | @Override
155 | protected void onDestroy() {
156 | super.onDestroy();
157 | mDroidNet.removeInternetConnectivityChangeListener(group.this);
158 | }
159 | }
160 |
--------------------------------------------------------------------------------
/app/src/main/java/com/example/logintest/registeractivity.java:
--------------------------------------------------------------------------------
1 | package com.example.logintest;
2 |
3 | import android.content.Intent;
4 | import android.os.Bundle;
5 | import android.text.TextUtils;
6 | import android.view.View;
7 | import android.widget.Button;
8 | import android.widget.EditText;
9 | import android.widget.ImageView;
10 | import android.widget.ProgressBar;
11 | import android.widget.TextView;
12 | import android.widget.Toast;
13 |
14 | import androidx.annotation.NonNull;
15 | import androidx.appcompat.app.AppCompatActivity;
16 |
17 | import com.daimajia.androidanimations.library.Techniques;
18 | import com.daimajia.androidanimations.library.YoYo;
19 | import com.droidnet.DroidNet;
20 | import com.google.android.gms.tasks.OnCompleteListener;
21 | import com.google.android.gms.tasks.Task;
22 | import com.google.firebase.auth.AuthResult;
23 | import com.google.firebase.auth.FirebaseAuth;
24 | import com.google.firebase.auth.FirebaseUser;
25 | import com.squareup.picasso.Picasso;
26 |
27 | public class registeractivity extends AppCompatActivity {
28 | private EditText reg_email_field;
29 | private EditText reg_pass_field;
30 | private EditText reg_confirm_pass_field;
31 | private Button reg_btn;
32 | private TextView reg_login_btn;
33 | private ProgressBar reg_progress;
34 | private FirebaseAuth mAuth;
35 | ImageView imageView1;
36 | ImageView imageView2;
37 | ImageView imageView3;
38 | ImageView imageView4;
39 | ImageView imageView5;
40 | private DroidNet mDroidNet;
41 |
42 | @Override
43 | protected void onCreate(Bundle savedInstanceState) {
44 | super.onCreate( savedInstanceState );
45 | setContentView( R.layout.activity_registeractivity );
46 | imageView1=findViewById(R.id.image111);
47 | imageView1=findViewById(R.id.image111);
48 | imageView1=findViewById(R.id.image111);
49 | Picasso.get().load("https://i.imgur.com/oISHJ3E.jpg").into(imageView1);
50 | imageView2=findViewById(R.id.image112);
51 | Picasso.get().load("https://i.imgur.com/5Is9jIp.jpg").into(imageView2);
52 | imageView3=findViewById(R.id.image113);
53 | Picasso.get().load("https://i.imgur.com/JEjOiuf.jpg").into(imageView3);
54 | imageView4=findViewById(R.id.image114);
55 | Picasso.get().load("https://i.imgur.com/yV5QqrA.jpg").into(imageView4);
56 | imageView5=findViewById(R.id.image115);
57 | Picasso.get().load("https://i.imgur.com/J6iKb5i.jpg").into(imageView5);
58 |
59 | mAuth = FirebaseAuth.getInstance();
60 | reg_email_field = findViewById(R.id.reg_emailx);
61 | reg_pass_field = findViewById(R.id.reg_passyx);
62 | reg_confirm_pass_field = findViewById(R.id.reg_passy );
63 | reg_btn = findViewById(R.id.reg_btn);
64 | reg_login_btn = findViewById(R.id.reg_login_btn);
65 | reg_progress = findViewById(R.id.reg_progress);
66 | reg_progress.setVisibility( View.INVISIBLE );
67 | reg_login_btn.setOnClickListener(new View.OnClickListener() {
68 | @Override
69 | public void onClick(View v) {
70 | finish();
71 | }
72 | });
73 | reg_btn.setOnClickListener(new View.OnClickListener() {
74 | @Override
75 | public void onClick(View v) {
76 | String email = reg_email_field.getText().toString();
77 | String pass = reg_pass_field.getText().toString();
78 | String confirm_pass = reg_confirm_pass_field.getText().toString();
79 | if(TextUtils.isEmpty( email )&&TextUtils.isEmpty( pass )&&TextUtils.isEmpty(confirm_pass))
80 | {
81 | Toast.makeText(registeractivity.this, "Fields Are Empty", Toast.LENGTH_LONG).show();
82 | YoYo.with( Techniques.Shake)
83 | .duration(750)
84 | .repeat(2)
85 | .playOn(findViewById(R.id.reg_passyx));
86 | YoYo.with(Techniques.Shake)
87 | .duration(750)
88 | .repeat(2)
89 | .playOn(findViewById(R.id.reg_passy));
90 | YoYo.with(Techniques.Shake)
91 | .duration(750)
92 | .repeat(2)
93 | .playOn(findViewById(R.id.reg_emailx));
94 | }else {
95 | if (!TextUtils.isEmpty( email ) && !TextUtils.isEmpty( pass ) & !TextUtils.isEmpty( confirm_pass )) {
96 | if (pass.equals( confirm_pass )) {
97 | reg_progress.setVisibility( View.VISIBLE );
98 | mAuth.createUserWithEmailAndPassword( email, pass ).addOnCompleteListener( new OnCompleteListener() {
99 | @Override
100 | public void onComplete(@NonNull Task task) {
101 | if (task.isSuccessful()) {
102 | Intent setupIntent = new Intent( registeractivity.this, setupactivity.class );
103 | startActivity( setupIntent );
104 | finish();
105 | } else {
106 | String errorMessage = task.getException().getMessage();
107 | Toast.makeText( registeractivity.this, "Error : " + errorMessage, Toast.LENGTH_LONG ).show();
108 | }
109 | reg_progress.setVisibility( View.INVISIBLE );
110 | }
111 | } );
112 |
113 | } else {
114 | Toast.makeText( registeractivity.this, "Confirm Password and Password Field doesn't match.", Toast.LENGTH_LONG ).show();
115 | YoYo.with( Techniques.Shake )
116 | .duration( 750 )
117 | .repeat( 2 )
118 | .playOn( findViewById( R.id.reg_passyx ) );
119 | YoYo.with( Techniques.Shake )
120 | .duration( 750 )
121 | .repeat( 2 )
122 | .playOn( findViewById( R.id.reg_passy ) );
123 | }
124 | }
125 | //add else below this
126 | }
127 | }
128 | });
129 | }
130 | @Override
131 | protected void onStart() {
132 | super.onStart();
133 | FirebaseUser currentUser = mAuth.getCurrentUser();
134 | if(currentUser != null){
135 | sendToMain();
136 | }
137 | }
138 | private void sendToMain() {
139 | Intent mainIntent = new Intent(registeractivity.this, home.class);
140 | startActivity(mainIntent);
141 | finish();
142 | }
143 |
144 |
145 |
146 | }
147 |
148 |
149 |
150 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/activity_main2.xml:
--------------------------------------------------------------------------------
1 |
2 |
9 |
16 |
20 |
27 |
28 |
35 |
36 |
43 |
44 |
51 |
52 |
53 |
60 |
61 |
62 |
63 |
64 |
65 |
66 |
76 |
88 |
89 |
107 |
108 |
126 |
127 |
141 |
142 |
155 |
156 |
167 |
168 |
169 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/activity_registeractivity.xml:
--------------------------------------------------------------------------------
1 |
2 |
10 |
11 |
21 |
22 |
41 |
42 |
60 |
61 |
79 |
80 |
93 |
106 |
117 |
126 |
127 |
134 |
138 |
139 |
146 |
147 |
154 |
155 |
162 |
163 |
170 |
171 |
172 |
179 |
180 |
181 |
182 |
183 |
184 |
185 |
--------------------------------------------------------------------------------
/app/src/main/java/com/example/logintest/home.java:
--------------------------------------------------------------------------------
1 | package com.example.logintest;
2 |
3 | import android.content.Intent;
4 | import android.net.Uri;
5 | import android.os.Bundle;
6 | import android.view.View;
7 | import android.widget.ImageButton;
8 | import android.widget.ImageView;
9 | import android.widget.TextView;
10 | import android.widget.Toast;
11 |
12 | import androidx.appcompat.app.AppCompatActivity;
13 | import androidx.constraintlayout.widget.ConstraintLayout;
14 |
15 | import com.daimajia.androidanimations.library.Techniques;
16 | import com.daimajia.androidanimations.library.YoYo;
17 | import com.droidnet.DroidListener;
18 | import com.droidnet.DroidNet;
19 | import com.google.firebase.auth.FirebaseAuth;
20 | import com.google.firebase.auth.FirebaseUser;
21 |
22 | import java.util.Random;
23 |
24 | public class home extends AppCompatActivity implements View.OnClickListener, DroidListener {
25 | public FirebaseAuth mAuth;
26 | ConstraintLayout constraintLayout;
27 | Random numRandom = new Random();
28 | ImageView imageView1;
29 | ConstraintLayout constraintLayout2;
30 | private DroidNet mDroidNet;
31 |
32 | @Override
33 | protected void onCreate(Bundle savedInstanceState) {
34 | super.onCreate(savedInstanceState);
35 | setContentView(R.layout.activity_home);
36 | mAuth = FirebaseAuth.getInstance();
37 | constraintLayout2=findViewById( R.id.infintybfgradient );
38 | constraintLayout2.setVisibility(View.INVISIBLE);
39 | ImageView onetree = findViewById(R.id.onetree);
40 | onetree.setOnClickListener( new View.OnClickListener() {
41 | @Override
42 | public void onClick(View v) {
43 | Intent intent = new Intent();
44 | intent.setAction(Intent.ACTION_VIEW);
45 | intent.addCategory(Intent.CATEGORY_BROWSABLE);
46 | intent.setData( Uri.parse("https://onetreeplanted.org/"));
47 | startActivity(intent);
48 | }
49 | } );
50 | ImageView water=findViewById(R.id.water);
51 | water.setOnClickListener( new View.OnClickListener() {
52 | @Override
53 | public void onClick(View v) {
54 | Intent intent = new Intent();
55 | intent.setAction(Intent.ACTION_VIEW);
56 | intent.addCategory(Intent.CATEGORY_BROWSABLE);
57 | intent.setData(Uri.parse("https://theoceancleanup.com/"));
58 | startActivity(intent);
59 | }
60 | } );
61 |
62 | ImageButton imageButton =findViewById( R.id.infintyhome );
63 | imageButton.setOnClickListener( new View.OnClickListener() {
64 | @Override
65 | public void onClick(View v) {
66 | constraintLayout2.setVisibility(View.VISIBLE);
67 | constraintLayout.setVisibility( View.INVISIBLE);
68 | YoYo.with( Techniques.FadeIn)
69 | .duration(1000)
70 | .playOn(findViewById(R.id.water));
71 | YoYo.with(Techniques.FadeIn)
72 | .duration(1000)
73 | .playOn(findViewById(R.id.onetree));
74 | imageView1.setVisibility(View.INVISIBLE);
75 | Toast toast = Toast.makeText(home.this, "20 Post = OneTree", Toast.LENGTH_LONG);
76 | toast.show();
77 | }
78 | } );
79 | constraintLayout=findViewById( R.id.counterlayout );
80 | constraintLayout.setVisibility(View.INVISIBLE);
81 | ImageView imageView=findViewById(R.id.imageView2);
82 | imageView.setOnClickListener(new View.OnClickListener() {
83 | @Override
84 | public void onClick(View v) {
85 | constraintLayout.setVisibility(View.INVISIBLE);
86 | imageView1.setVisibility( View.VISIBLE);
87 | }
88 | } );
89 | TextView textView1 =findViewById(R.id.textView21);
90 | textView1.setOnClickListener( new View.OnClickListener() {
91 | @Override
92 | public void onClick(View v) {
93 | constraintLayout.setVisibility(View.INVISIBLE);
94 | imageView1.setVisibility( View.VISIBLE);
95 |
96 | }
97 | } );
98 | imageView1=findViewById(R.id.randomview);
99 | imageView1.setOnClickListener( new View.OnClickListener() {
100 | @Override
101 | public void onClick(View v) {
102 | constraintLayout.setVisibility(View.VISIBLE);
103 | imageView1.setVisibility(View.INVISIBLE);
104 | TextView textView =findViewById(R.id.randomtext);
105 | textView.setText(String.valueOf(numRandom.nextInt(135)));
106 | }
107 |
108 | } );
109 | ImageButton imageButton1=findViewById(R.id.eyehome);
110 | ImageButton imageButton3=findViewById(R.id.camerahome);
111 | ImageButton imageButton4=findViewById(R.id.grouphome);
112 | ImageButton imageButton7=findViewById(R.id.treehome);
113 | ImageButton imageButton8=findViewById(R.id.account);
114 | ImageButton imageButton9=findViewById( R.id.event );
115 | ImageButton imageButton11=findViewById( R.id.logout );
116 | ImageButton imageButton12 =findViewById( R.id.block);
117 | ImageButton imageButton10=findViewById(R.id.heart);
118 | imageButton1.setOnClickListener(this);
119 | imageButton3.setOnClickListener(this);
120 | imageButton4.setOnClickListener(this);
121 | imageButton7.setOnClickListener(this);
122 | imageButton8.setOnClickListener(this);
123 | imageButton11.setOnClickListener(this);
124 | imageButton9.setOnClickListener(this);
125 | imageButton10.setOnClickListener(this);
126 | imageButton12.setOnClickListener(this);
127 | }
128 | @Override
129 | public void onClick(View v) {
130 | switch (v.getId()) {
131 | case R.id.eyehome:
132 | Intent intent = new Intent(this, eye.class);
133 | startActivity(intent);
134 |
135 | break;
136 | case R.id.camerahome:
137 | intent = new Intent( this, newpostactivity.class );
138 | startActivity(intent);
139 | break;
140 | case R.id.grouphome:
141 | intent = new Intent(this, group.class);
142 | startActivity(intent);
143 | break;
144 |
145 | case R.id.treehome:
146 | intent = new Intent(this, tree.class);
147 | startActivity(intent);
148 | break;
149 | case R.id.heart:
150 | // intent = new Intent(this, tree.class);
151 | //startActivity(intent);
152 | // break;
153 | case R.id.account:
154 | intent = new Intent(this, setupactivity.class);
155 | startActivity(intent);
156 | break;
157 | case R.id.logout:
158 | logOut();
159 | break;
160 | case R.id.event:
161 | intent = new Intent(this, events.class);
162 | startActivity(intent);
163 | break;
164 |
165 | case R.id.block:
166 | intent = new Intent(this, block.class);
167 | startActivity(intent);
168 | break;
169 |
170 | }
171 | }
172 | private void logOut() {
173 | mAuth.signOut();
174 | sendToLogin();
175 | }
176 | @Override
177 | protected void onStart() {
178 | super.onStart();
179 | FirebaseUser currentUser = FirebaseAuth.getInstance().getCurrentUser();
180 | if(currentUser == null){
181 | sendToLogin();
182 | }
183 | DroidNet.init(home.this);
184 | mDroidNet = DroidNet.getInstance();
185 | mDroidNet.addInternetConnectivityListener(home.this);
186 | }
187 | private void sendToLogin() {
188 | Intent loginIntent = new Intent(home.this, Main2Activity.class);
189 | startActivity(loginIntent);
190 | finish();
191 | }
192 |
193 |
194 |
195 | @Override
196 | public void onBackPressed() {
197 | constraintLayout.setVisibility(View.INVISIBLE);
198 | imageView1.setVisibility( View.VISIBLE);
199 | constraintLayout2.setVisibility( View.INVISIBLE);
200 | }
201 |
202 |
203 | @Override
204 | public void onInternetConnectivityChanged(boolean isConnected) {
205 | if (isConnected) {
206 | //do Stuff with internet
207 | netIsOn();
208 | } else {
209 | //no internet
210 | netIsOff();
211 | }
212 |
213 |
214 | }
215 |
216 |
217 |
218 |
219 |
220 | private void netIsOn(){
221 |
222 | }
223 |
224 | private void netIsOff(){
225 |
226 | Toast toast = Toast.makeText(home.this, " No internet ", Toast.LENGTH_LONG);
227 | toast.show();
228 |
229 | }
230 |
231 |
232 | @Override
233 | protected void onDestroy() {
234 | super.onDestroy();
235 | mDroidNet.removeInternetConnectivityChangeListener(home.this);
236 | }
237 |
238 |
239 | }
240 |
--------------------------------------------------------------------------------