Skip to content

Commit

Permalink
Kaj sam promjenil za sad:
Browse files Browse the repository at this point in the history
#1 - prebacil MySimpleArrayAdapter u novu klasu da se Lista novosti lakše čita.
linuxzasve#2 - iz liste novosti maknul referencu na samu Activity jer je nepotrebno.
linuxzasve#3 - LzzRestApi generateInclude metodu promjenil da koristi StringBuilder.
linuxzasve#4 - Fiksne url-ove promjenil u private static final polja sa velikim slovima.
linuxzasve#5 - U ListaNovosti klasi sam implementiral OnItemClickListener i napravil cleanScreen metodu.
linuxzasve#6 - U ListaNovosti klasi sam izmjenjal malo redoslijed instanciranja Adaptera.
linuxzasve#7 - HTTP_FEEDS_FEEDBURNER_COM_LINUXZASVE  ListaNovosti.
linuxzasve#8 - Toast sam promjenil.


DONE :
------------------------------------------------------------------------------------
1# U ListaNovosti da se kod rotiranja uređaja ne skida ponovo s neta materijal već da se spremi u bundel instancu i reloada.
  Ovo povlači dosta parcelable posla, nvm 3^^^ :D

TO DO :
------------------------------------------------------------------------------------
2# Isto to spremanje u Bundle napraviti za komentare.
  • Loading branch information
Igll91 committed Feb 13, 2014
1 parent d12046f commit 78639af
Show file tree
Hide file tree
Showing 21 changed files with 765 additions and 209 deletions.
7 changes: 3 additions & 4 deletions LinuxZaSve_mobile/.classpath
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,11 @@
<classpathentry exported="true" kind="con" path="com.android.ide.eclipse.adt.DEPENDENCIES"/>
<classpathentry combineaccessrules="false" kind="src" path="/actionbarsherlock"/>
<classpathentry kind="lib" path="libs/urlimageviewhelper-1.0.4.jar"/>
<classpathentry kind="lib" path="libs/jsoup-1.7.2.jar"/>
<classpathentry kind="lib" path="libs/commons-logging-1.1.3.jar"/>
<classpathentry kind="lib" path="libs/commons-logging-1.1.3.jar" sourcepath="libs/commons-logging-1.1.3-sources.jar"/>
<classpathentry kind="lib" path="libs/gson-2.2.4.jar"/>
<classpathentry kind="lib" path="libs/httpclient-4.3.1.jar"/>
<classpathentry kind="lib" path="libs/httpcore-4.3.jar"/>
<classpathentry kind="src" path="src"/>
<classpathentry kind="src" path="gen"/>
<classpathentry kind="lib" path="libs/jsoup-1.7.3.jar"/>
<classpathentry kind="lib" path="libs/httpclient-4.3.2.jar"/>
<classpathentry kind="output" path="bin/classes"/>
</classpath>
20 changes: 20 additions & 0 deletions LinuxZaSve_mobile/KajSamNapravil.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
Kaj sam promjenil za sad:

#1 - prebacil MySimpleArrayAdapter u novu klasu da se Lista novosti lak�e �ita.
#2 - iz liste novosti maknul referencu na samu Activity jer je nepotrebno.
#3 - LzzRestApi generateInclude metodu promjenil da koristi StringBuilder.
#4 - Fiksne url-ove promjenil u private static final polja sa velikim slovima.
#5 - U ListaNovosti klasi sam implementiral OnItemClickListener i napravil cleanScreen metodu.
#6 - U ListaNovosti klasi sam izmjenjal malo redoslijed instanciranja Adaptera.
#7 - HTTP_FEEDS_FEEDBURNER_COM_LINUXZASVE ListaNovosti.
#8 - Toast sam promjenil.

DONE :
------------------------------------------------------------------------------------
1# U ListaNovosti da se kod rotiranja ure�aja ne skida ponovo s neta materijal ve� da se spremi u bundel instancu i reloada.
Ovo povla�i dosta parcelable posla, nvm 3^^^ :D

TO DO :
------------------------------------------------------------------------------------
2# Isto to spremanje u Bundle napraviti za komentare.

3 changes: 3 additions & 0 deletions LinuxZaSve_mobile/lint.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<?xml version="1.0" encoding="UTF-8"?>
<lint>
</lint>
2 changes: 1 addition & 1 deletion LinuxZaSve_mobile/project.properties
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@

# Project target.
target=android-19
android.library.reference.1=../../ActionBarSherlock/actionbarsherlock
android.library.reference.1=../../JakeWharton-ActionBarSherlock-5a15d92/actionbarsherlock
3 changes: 3 additions & 0 deletions LinuxZaSve_mobile/res/menu/lista_novosti.xml
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
<?xml version="1.0" encoding="utf-8"?>
<menu xmlns:android="http://schemas.android.com/apk/res/android">

<item android:id="@+id/menu_refresh"
android:icon="@drawable/ic_refresh"
android:title="@string/menu_refresh"
android:showAsAction="ifRoom|withText" />

<item android:id="@+id/action_search"
android:title="@string/menu_search"
android:icon="@drawable/ic_search"
android:showAsAction="ifRoom|withText" />

</menu>
2 changes: 1 addition & 1 deletion LinuxZaSve_mobile/res/values/strings.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<resources>
<string name="app_name">Linux za sve</string>
<string name="title_activity_lista_novosti">Linux za sve</string>
<string name="subtitle_activity_lista_novosti">Najnoviji Članci</string>
<string name="gumb_komentari">Komentari</string>
<string name="menu_refresh">Osvježi</string>
<string name="menu_search">Pretraži</string>
Expand All @@ -14,5 +15,4 @@
<string name="novi_komentar_hint_komentar">Komentar</string>
<string name="search_hint">Pretraži Linux za sve</string>
<string name="app_label">Linux za sve</string>

</resources>
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,10 @@ public class ActivityHelper {
public static boolean isOnline(Activity activity) {
ConnectivityManager cm = (ConnectivityManager) activity.getSystemService(Context.CONNECTIVITY_SERVICE);
NetworkInfo netInfo = cm.getActiveNetworkInfo();
if (netInfo != null && netInfo.isConnectedOrConnecting()) {

if (netInfo != null && netInfo.isConnectedOrConnecting())
return true;
}

return false;
}
}
Loading

0 comments on commit 78639af

Please sign in to comment.