-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ec37fb6
commit 93df36a
Showing
32 changed files
with
615 additions
and
147 deletions.
There are no files selected for viewing
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,81 +1,82 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<manifest xmlns:android="http://schemas.android.com/apk/res/android" | ||
xmlns:tools="http://schemas.android.com/tools" > | ||
|
||
<uses-feature | ||
android:name="android.hardware.camera" | ||
android:required="false" /> | ||
<uses-permission android:name="com.google.android.gms.permission.AD_ID"/> | ||
|
||
<uses-permission android:name="android.permission.INTERNET" /> | ||
<uses-permission android:name="android.permission.CAMERA" /> | ||
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" /> | ||
|
||
<application | ||
android:name=".base.BumbleApp" | ||
android:allowBackup="true" | ||
android:dataExtractionRules="@xml/data_extraction_rules" | ||
android:fullBackupContent="@xml/backup_rules" | ||
android:icon="@drawable/ic_admingle" | ||
android:label="@string/app_name" | ||
android:supportsRtl="true" | ||
android:theme="@style/Theme.DateMe" | ||
android:usesCleartextTraffic="true" | ||
tools:targetApi="31" > | ||
<activity | ||
android:name=".dashboard.NotificationActivity" | ||
android:exported="false" /> | ||
<activity | ||
android:name=".dashboard.EditProfileActivity" | ||
android:exported="false" /> | ||
<activity | ||
android:name=".dashboard.SettingsActivity" | ||
android:exported="false" /> | ||
<activity | ||
android:name=".dashboard.DeveloperActivity" | ||
android:exported="false" /> | ||
<activity | ||
android:name=".auth.LoginUserActivity" | ||
android:exported="false" /> | ||
<activity | ||
android:name=".auth.chat.GirlChatActivity" | ||
android:exported="false" /> | ||
<activity | ||
android:name=".dashboard.BumbleAndroActivity" | ||
android:exported="false" /> | ||
<activity | ||
android:name=".auth.account.AccountActivity" | ||
android:exported="false" /> | ||
<activity | ||
android:name=".auth.VerifyOtpActivity" | ||
android:exported="false" /> | ||
<activity | ||
android:name=".auth.SplashActivity" | ||
android:exported="true" | ||
android:theme="@style/Theme.DateMe" > | ||
<intent-filter> | ||
<action android:name="android.intent.action.MAIN" /> | ||
|
||
<category android:name="android.intent.category.LAUNCHER" /> | ||
</intent-filter> | ||
</activity> | ||
<activity | ||
android:name=".auth.LoginActivity" | ||
android:exported="false" /> | ||
<activity | ||
android:name=".MainActivity" | ||
android:exported="false" | ||
android:label="@string/app_name" | ||
android:theme="@style/Theme.DateMe" /> | ||
|
||
<meta-data | ||
android:name="com.google.android.geo.API_KEY" | ||
android:value="AIzaSyD7PGsX_T85cAxk4z61oOrpGsAcrcdGo3o" /> | ||
<!--GOOGLE AD SENSE SDK--> | ||
<meta-data | ||
android:name="com.google.android.gms.ads.APPLICATION_ID" | ||
android:value="ca-app-pub-6858809098683907~1307184214"/> | ||
|
||
</application> | ||
|
||
<?xml version="1.0" encoding="utf-8"?> | ||
<manifest xmlns:android="http://schemas.android.com/apk/res/android" | ||
xmlns:tools="http://schemas.android.com/tools"> | ||
|
||
<uses-feature | ||
android:name="android.hardware.camera" | ||
android:required="false" /> | ||
|
||
<uses-permission android:name="com.google.android.gms.permission.AD_ID" /> | ||
<uses-permission android:name="android.permission.INTERNET" /> | ||
<uses-permission android:name="android.permission.CAMERA" /> | ||
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" /> | ||
|
||
<application | ||
android:name=".base.BumbleApp" | ||
android:allowBackup="true" | ||
android:dataExtractionRules="@xml/data_extraction_rules" | ||
android:fullBackupContent="@xml/backup_rules" | ||
android:icon="@drawable/ic_admingle" | ||
android:label="@string/app_name" | ||
android:supportsRtl="true" | ||
android:theme="@style/Theme.DateMe" | ||
android:usesCleartextTraffic="true" | ||
tools:targetApi="31"> | ||
<activity | ||
android:name=".dashboard.ImageActivity" | ||
android:exported="false" /> | ||
<activity | ||
android:name=".dashboard.NotificationActivity" | ||
android:exported="false" /> | ||
<activity | ||
android:name=".dashboard.EditProfileActivity" | ||
android:exported="false" /> | ||
<activity | ||
android:name=".dashboard.SettingsActivity" | ||
android:exported="false" /> | ||
<activity | ||
android:name=".dashboard.DeveloperActivity" | ||
android:exported="false" /> | ||
<activity | ||
android:name=".auth.LoginUserActivity" | ||
android:exported="false" /> | ||
<activity | ||
android:name=".auth.chat.GirlChatActivity" | ||
android:exported="false" /> | ||
<activity | ||
android:name=".dashboard.BumbleAndroActivity" | ||
android:exported="false" /> | ||
<activity | ||
android:name=".auth.account.AccountActivity" | ||
android:exported="false" /> | ||
<activity | ||
android:name=".auth.VerifyOtpActivity" | ||
android:exported="false" /> | ||
<activity | ||
android:name=".auth.SplashActivity" | ||
android:exported="true" | ||
android:theme="@style/Theme.DateMe"> | ||
<intent-filter> | ||
<action android:name="android.intent.action.MAIN" /> | ||
|
||
<category android:name="android.intent.category.LAUNCHER" /> | ||
</intent-filter> | ||
</activity> | ||
<activity | ||
android:name=".auth.LoginActivity" | ||
android:exported="false" /> | ||
<activity | ||
android:name=".MainActivity" | ||
android:exported="false" | ||
android:label="@string/app_name" | ||
android:theme="@style/Theme.DateMe" /> | ||
|
||
<meta-data | ||
android:name="com.google.android.geo.API_KEY" | ||
android:value="AIzaSyD7PGsX_T85cAxk4z61oOrpGsAcrcdGo3o" /> <!-- GOOGLE AD SENSE SDK --> | ||
<meta-data | ||
android:name="com.google.android.gms.ads.APPLICATION_ID" | ||
android:value="ca-app-pub-6858809098683907~1307184214" /> | ||
</application> | ||
|
||
</manifest> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
app/src/main/java/com/redeyesncode/dateme/dashboard/ImageActivity.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
package com.redeyesncode.dateme.dashboard | ||
|
||
import androidx.appcompat.app.AppCompatActivity | ||
import android.os.Bundle | ||
import com.bumptech.glide.Glide | ||
import com.redeyesncode.dateme.R | ||
import com.redeyesncode.dateme.base.BaseActivity | ||
import com.redeyesncode.dateme.databinding.ActivityImageBinding | ||
|
||
class ImageActivity : BaseActivity() { | ||
lateinit var binding:ActivityImageBinding | ||
override fun onCreate(savedInstanceState: Bundle?) { | ||
super.onCreate(savedInstanceState) | ||
binding = ActivityImageBinding.inflate(layoutInflater) | ||
|
||
Glide.with(binding.root).load(intent.getStringExtra("URL")).into(binding.ivCoverImage) | ||
|
||
setContentView(binding.root) | ||
} | ||
} |
29 changes: 29 additions & 0 deletions
29
app/src/main/java/com/redeyesncode/dateme/dashboard/ImageDialog.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
package com.redeyesncode.dateme.dashboard | ||
|
||
import android.app.Dialog | ||
import android.content.Context | ||
import android.os.Bundle | ||
import android.view.ViewGroup | ||
import android.view.Window | ||
import android.widget.ImageView | ||
import com.bumptech.glide.Glide | ||
import com.redeyesncode.dateme.R | ||
|
||
class ImageDialog(context: Context, private val imageUrl: String) : Dialog(context) { | ||
|
||
override fun onCreate(savedInstanceState: Bundle?) { | ||
super.onCreate(savedInstanceState) | ||
requestWindowFeature(Window.FEATURE_NO_TITLE) | ||
window?.setLayout( | ||
ViewGroup.LayoutParams.MATCH_PARENT, | ||
ViewGroup.LayoutParams.MATCH_PARENT | ||
) | ||
setContentView(R.layout.dialog_image) // Create a layout file for your dialog | ||
|
||
val imageView: ImageView = findViewById(R.id.imageView) | ||
Glide.with(context) | ||
.load(imageUrl) | ||
.placeholder(R.drawable.ic_admingle) // You can set a placeholder image | ||
.into(imageView) | ||
} | ||
} |
41 changes: 41 additions & 0 deletions
41
app/src/main/java/com/redeyesncode/dateme/dashboard/ImageDialogFragment.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
package com.redeyesncode.dateme.dashboard | ||
|
||
import android.app.Dialog | ||
import android.os.Bundle | ||
import android.view.LayoutInflater | ||
import android.view.View | ||
import android.view.ViewGroup | ||
import android.view.Window | ||
import android.widget.ImageView | ||
import androidx.fragment.app.DialogFragment | ||
import com.bumptech.glide.Glide | ||
import com.redeyesncode.dateme.R | ||
|
||
class ImageDialogFragment(private val imageUrl: String) : DialogFragment() { | ||
|
||
override fun onCreateView( | ||
inflater: LayoutInflater, | ||
container: ViewGroup?, | ||
savedInstanceState: Bundle? | ||
): View? { | ||
val view = inflater.inflate(R.layout.dialog_image, container, false) | ||
|
||
val imageView: ImageView = view.findViewById(R.id.imageView) | ||
Glide.with(requireContext()) | ||
.load(imageUrl) | ||
.placeholder(R.drawable.ic_admingle) | ||
.into(imageView) | ||
|
||
return view | ||
} | ||
|
||
override fun onCreateDialog(savedInstanceState: Bundle?): Dialog { | ||
val dialog = super.onCreateDialog(savedInstanceState) | ||
dialog.requestWindowFeature(Window.FEATURE_NO_TITLE) | ||
dialog.window?.setLayout( | ||
ViewGroup.LayoutParams.MATCH_PARENT, | ||
ViewGroup.LayoutParams.MATCH_PARENT | ||
) | ||
return dialog | ||
} | ||
} |
34 changes: 34 additions & 0 deletions
34
app/src/main/java/com/redeyesncode/dateme/dashboard/adapter/ImagePagerAdapter.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
package com.redeyesncode.dateme.dashboard.adapter | ||
|
||
import android.content.Context | ||
import android.view.LayoutInflater | ||
import android.view.View | ||
import android.view.ViewGroup | ||
import android.widget.ImageView | ||
import androidx.viewpager.widget.PagerAdapter | ||
import com.bumptech.glide.Glide | ||
|
||
class ImagePagerAdapter(private val context: Context, private val imageUrls: List<String>) : PagerAdapter() { | ||
|
||
override fun getCount(): Int { | ||
return imageUrls.size | ||
} | ||
|
||
override fun isViewFromObject(view: View, `object`: Any): Boolean { | ||
return view === `object` | ||
} | ||
|
||
override fun instantiateItem(container: ViewGroup, position: Int): Any { | ||
val imageView = ImageView(context) | ||
imageView.scaleType = ImageView.ScaleType.CENTER_CROP | ||
|
||
// Load image from URL using Picasso (replace with your preferred image loading library) | ||
Glide.with(context).load(imageUrls[position]).into(imageView) | ||
container.addView(imageView) | ||
return imageView | ||
} | ||
|
||
override fun destroyItem(container: ViewGroup, position: Int, `object`: Any) { | ||
container.removeView(`object` as View) | ||
} | ||
} |
35 changes: 35 additions & 0 deletions
35
app/src/main/java/com/redeyesncode/dateme/dashboard/adapter/UserInterestFeedAdapter.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
package com.redeyesncode.dateme.dashboard.adapter | ||
|
||
import android.content.Context | ||
import android.view.LayoutInflater | ||
import android.view.ViewGroup | ||
import androidx.recyclerview.widget.RecyclerView | ||
import com.redeyesncode.dateme.databinding.ItemUserFeedInterestsBinding | ||
|
||
class UserInterestFeedAdapter(var context:Context,var data:ArrayList<String>) :RecyclerView.Adapter<UserInterestFeedAdapter.MyViewholder>() { | ||
|
||
lateinit var binding: ItemUserFeedInterestsBinding | ||
override fun onCreateViewHolder(parent: ViewGroup, viewType: Int): MyViewholder { | ||
|
||
|
||
binding = ItemUserFeedInterestsBinding.inflate(LayoutInflater.from(context),parent,false) | ||
|
||
return MyViewholder(binding) | ||
|
||
} | ||
|
||
override fun onBindViewHolder(holder: MyViewholder, position: Int) { | ||
val dataText = data[position] | ||
|
||
holder.binding.tvInterest.text = dataText | ||
|
||
|
||
|
||
} | ||
|
||
override fun getItemCount(): Int { | ||
return data.size | ||
} | ||
|
||
class MyViewholder(var binding:ItemUserFeedInterestsBinding) :RecyclerView.ViewHolder(binding.root) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.