Skip to content

Instantly share code, notes, and snippets.

View nurcinozer's full-sized avatar
🎯
Focusing

Nurçin nurcinozer

🎯
Focusing
View GitHub Profile
routes.maproute(
name: "default",
url: "{controller}/{action}/{id}",
defaults: new { controller = "home", action = "index", id = urlparameter.optional },
namespaces: new[] { "yourprojectname.controllers" });
private bool isgrounded = true; //let's assume he's on the ground
void oncollisionstay (collision other)
{
if (other.name != "ground") //let's assume the name of the ground object is ground
{
isgrounded = false;
if (isgrounded = false && other.name != "ground")
{
//disable the jumping and wait for when the player is on the ground again
if (other.name == "ground")
import java.util.random;
public class Password {
public static String GeneratePassword(int size) {
String password = "";
Random r = new Random();
char[] symbols = {'!', '?', '_', '#', '-'};
using Proje.CustomControls;
using Proje.Droid.CustomRenderers;
using Xamarin.Forms;
using Xamarin.Forms.Platform.Android;
[assembly: ExportRenderer(typeof(CustomSearchBar), typeof(CustomSearchBarRenderer))]
namespace Proje.Droid.CustomRenderers
{
public class CustomSearchBarRenderer : SearchBarRenderer
{
<pancakeview:PancakeView
Grid.Row="0"
CornerRadius="5"
HasShadow="false"
BorderThickness="0"
HeightRequest="40"
Margin="20,0,10,10"
HorizontalOptions="Start">
<local:CustomSearchBar
TextColor="{StaticResource SecondaryTextColor}"
<StackLayout HorizontalOptions="FillAndExpand" Orientation="Horizontal" VerticalOptions="End" BackgroundColor="White" >
<StackLayout HorizontalOptions="CenterAndExpand" Orientation="Horizontal">
<StackLayout Orientation="Vertical" >
<Image Source="MusterilerIcon.png" TranslationY="5" />
<Button
Text="Müşteriler"
Margin="0"
TranslationY="-7"
BackgroundColor="Transparent"
Style="{StaticResource MenuText}"/>
<ListView ItemsSource="{Binding accountItems}"
HasUnevenRows="true"
ItemSelected="OnListViewItemSelected"
ItemTapped="OnListViewItemTapped">
<ListView.ItemTemplate>
<DataTemplate>
<ViewCell>
<Grid Padding="10">
<Grid.RowDefinitions>
<RowDefinition Height="Auto" />
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android" android:versionCode="1" android:versionName="1.0" package="com.companyname.pl_accountmanager_mobile">
<uses-permission android:name="android.permission.ACCESS_LOCATION_EXTRA_COMMANDS" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.READ_CALENDAR" />
<uses-permission android:name="android.permission.READ_CALL_LOG" />
<uses-permission android:name="android.permission.READ_CONTACTS" />
<uses-sdk android:minSdkVersion="21" android:targetSdkVersion="28" />
<application android:label="PL.AccountManager.Mobile.Android"
<?xml version="1.0" encoding="utf-8"?>
<network-security-config>
<domain-config cleartextTrafficPermitted="true">
<domain includeSubdomains="true">127.0.0.1</domain>
</domain-config>
</network-security-config>
@nurcinozer
nurcinozer / activity_login.xml
Created January 27, 2022 10:40
P2-Movie-App-Base-Project/main/app/src/main/res/layout/activity_login.xml
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="horizontal"
tools:context=".ui.LoginActivity"
android:background="@color/white"
android:layout_margin="10dp">