Skip to content

Commit

Permalink
Change package name
Browse files Browse the repository at this point in the history
* Google libraries were updated as well
  • Loading branch information
berkantkz committed Apr 11, 2018
1 parent e61d1a8 commit 0e7714e
Show file tree
Hide file tree
Showing 8 changed files with 341 additions and 336 deletions.
6 changes: 3 additions & 3 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
minSdkVersion 15
targetSdkVersion 27
versionCode 3
versionName "stable-2.1"
versionName "stable-3.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
buildTypes {
Expand Down Expand Up @@ -37,7 +37,7 @@ repositories {
androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
exclude group: 'com.android.support', module: 'support-annotations'
})
compile 'com.android.support:appcompat-v7:26.+'
compile 'com.android.support:appcompat-v7:27.1.1'
compile 'com.android.support.constraint:constraint-layout:1.0.2'
compile 'com.google.android.gms:play-services-ads:10.0.0'
compile 'com.google.android.gms:play-services-ads:11.8.0'
}
4 changes: 2 additions & 2 deletions app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.tavsify.berkantkz.klu" >
package="io.github.berkantkz.klu" >

<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
Expand All @@ -12,7 +12,7 @@
android:roundIcon="@mipmap/ic_launcher"
android:supportsRtl="true"
android:theme="@style/AppTheme" >
<activity android:name="com.tavsify.berkantkz.klu.MainActivity" >
<activity android:name="io.github.berkantkz.klu.MainActivity" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />

Expand Down
Original file line number Diff line number Diff line change
@@ -1,52 +1,54 @@
package com.tavsify.berkantkz.klu;

import android.content.Context;
import android.support.annotation.NonNull;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ArrayAdapter;
import android.widget.TextView;

import java.util.ArrayList;

/**
* Created by Bilgisayar on 14.10.2017.
*/

class KLU_Adapter extends ArrayAdapter<KLU_List>{
private ArrayList<KLU_List> klist;
private LayoutInflater vi;
private int Resource;

KLU_Adapter(Context context, int resource, ArrayList<KLU_List> objects) {
super(context, resource, objects);
vi = (LayoutInflater) context.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
Resource = resource;
klist = objects;
}

@NonNull
@Override
public View getView(int position, View convertView, @NonNull ViewGroup parent) {
// convert view = design
View v = convertView;
ViewHolder holder;
if (v == null) {
holder = new ViewHolder();
v = vi.inflate(Resource, null);
holder.start = (TextView) v.findViewById(R.id.start);
v.setTag(holder);
} else {
holder = (ViewHolder) v.getTag();
}

holder.start.setText(klist.get(position).getStart().replace("00:00:00", "").replace("00:00:00","").replace("-01-"," Ocak ").replace("-02-", " Şubat ").replace("-03-"," Mart ").replace("-04-", " Nisan ").replace("-05-", " Mayıs ").replace("-06-"," Haziran ").replace("-07-", " Temmuz ").replace("-08-", " Ağustos ").replace("-09-", " Eylül ").replace("-10-" ," Ekim ").replace("-11-", " Kasım ").replace("-12-", " Aralık ").toUpperCase() + " " + klist.get(position).getTitle());

return v;
}

private static class ViewHolder {
TextView start;
}
}
package io.github.berkantkz.klu;

import android.content.Context;
import android.support.annotation.NonNull;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ArrayAdapter;
import android.widget.TextView;

import io.github.berkantkz.klu.R;

import java.util.ArrayList;

/**
* Created by Bilgisayar on 14.10.2017.
*/

class KLU_Adapter extends ArrayAdapter<KLU_List>{
private ArrayList<KLU_List> klist;
private LayoutInflater vi;
private int Resource;

KLU_Adapter(Context context, int resource, ArrayList<KLU_List> objects) {
super(context, resource, objects);
vi = (LayoutInflater) context.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
Resource = resource;
klist = objects;
}

@NonNull
@Override
public View getView(int position, View convertView, @NonNull ViewGroup parent) {
// convert view = design
View v = convertView;
ViewHolder holder;
if (v == null) {
holder = new ViewHolder();
v = vi.inflate(Resource, null);
holder.start = (TextView) v.findViewById(R.id.start);
v.setTag(holder);
} else {
holder = (ViewHolder) v.getTag();
}

holder.start.setText(klist.get(position).getStart().replace("00:00:00", "").replace("00:00:00","").replace("-01-"," Ocak ").replace("-02-", " Şubat ").replace("-03-"," Mart ").replace("-04-", " Nisan ").replace("-05-", " Mayıs ").replace("-06-"," Haziran ").replace("-07-", " Temmuz ").replace("-08-", " Ağustos ").replace("-09-", " Eylül ").replace("-10-" ," Ekim ").replace("-11-", " Kasım ").replace("-12-", " Aralık ").toUpperCase() + " " + klist.get(position).getTitle());

return v;
}

private static class ViewHolder {
TextView start;
}
}
Original file line number Diff line number Diff line change
@@ -1,49 +1,49 @@
package com.tavsify.berkantkz.klu;

/**
* Created by Bilgisayar on 14.10.2017.
*/

public class KLU_List {
private String id;
private String title;
private String aciklama;
private String start;

KLU_List() {

}

String getId() {
return title;
}

void setId(String id) {
this.id = id;
}

String getTitle() {
return title;
}

void setTitle(String title) {
this.title = title;
}

String getAciklama() {
return aciklama;
}

void setAciklama(String aciklama) {
this.aciklama = aciklama;
}

String getStart() {
return start;
}

void setStart(String start) {
this.start = start;
}

}
package io.github.berkantkz.klu;

/**
* Created by Bilgisayar on 14.10.2017.
*/

public class KLU_List {
private String id;
private String title;
private String aciklama;
private String start;

KLU_List() {

}

String getId() {
return title;
}

void setId(String id) {
this.id = id;
}

String getTitle() {
return title;
}

void setTitle(String title) {
this.title = title;
}

String getAciklama() {
return aciklama;
}

void setAciklama(String aciklama) {
this.aciklama = aciklama;
}

String getStart() {
return start;
}

void setStart(String start) {
this.start = start;
}

}
Loading

0 comments on commit 0e7714e

Please sign in to comment.