This file contains hidden or 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
package pro.app.adapters; | |
import java.util.ArrayList; | |
import java.util.LinkedHashMap; | |
import java.util.Map; | |
import pro.app.R; | |
import pro.app.holders.DataHolder; | |
import pro.app.models.Item; |
This file contains hidden or 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
package pro.app.fragments; | |
import java.util.ArrayList; | |
import java.util.LinkedHashMap; | |
import java.util.List; | |
import pro.app.R; | |
import pro.app.adapters.ExpandableAdapter; | |
import pro.app.models.Item; | |
import pro.app.models.Secteur; |
This file contains hidden or 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
... | |
private Thread worker; | |
.... | |
// AUTOLOADING | |
boolean loadMore = /* maybe add a padding */ | |
firstVisibleItem + visibleItemCount >= totalItemCount; | |
if(pages!=null & adapter!=null && scroll){ |
This file contains hidden or 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
<?xml version="1.0" encoding="utf-8"?> | |
<resources> | |
<!-- | |
Just set custom primary and accent color. | |
Looks best with a light theme. see the AndroidManifest | |
android:theme="@style/MaterialDrawerTheme.Light.DarkActionBar.TranslucentStatus" | |
--> | |
<color name="colorPrimary">#3E50B4</color> | |
<color name="colorPrimaryDark">#2F3E9E</color> |
This file contains hidden or 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
package com.mikepenz.materialdrawer.app; | |
import android.os.Bundle; | |
import android.support.v4.app.Fragment; | |
import android.support.v4.app.FragmentManager; | |
import android.support.v4.app.FragmentTransaction; | |
import android.support.v7.app.AppCompatActivity; | |
import android.support.v7.widget.Toolbar; | |
import android.view.MenuItem; | |
import android.view.View; |
This file contains hidden or 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
EditText editText =(EditText)findViewById(R.id.insert_yors_edit_text_layout); | |
Typeface type = Typeface.createFromAsset(getAssets(),"fonts/yours_font.ttf"); | |
editText.setTypeface(type); |
This file contains hidden or 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
# Project-wide Gradle settings. | |
# IDE (e.g. Android Studio) users: | |
# Settings specified in this file will override any Gradle settings | |
# configured through the IDE. | |
# For more details on how to configure your build environment visit | |
# http://www.gradle.org/docs/current/userguide/build_environment.html | |
# The Gradle daemon aims to improve the startup and execution time of Gradle. |
This file contains hidden or 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
apply plugin: 'com.android.application' | |
android { | |
compileSdkVersion 23 | |
buildToolsVersion '23.0.0' | |
useLibrary 'org.apache.http.legacy' | |
This file contains hidden or 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
@Override | |
public void draw(Canvas canvas, Paint paint) { | |
float radius = getWidth() / 10; | |
Log.v("Width :",""+getWidth()); | |
Log.v("Height :",""+getHeight()); | |
for (int i = 0; i < 8; i++) { |
This file contains hidden or 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
<?xml version="1.0"?> | |
<!DOCTYPE module PUBLIC | |
"-//Puppy Crawl//DTD Check Configuration 1.2//EN" | |
"http://www.puppycrawl.com/dtds/configuration_1_2.dtd"> | |
<module name="Checker"> | |
<!--module name="NewlineAtEndOfFile"/--> | |
<module name="FileLength"/> | |
<module name="FileTabCharacter"/> |
OlderNewer