Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
  • 5 commits
  • 20 files changed
  • 0 comments
  • 1 contributor
91 gen/com/actionbarsherlock/R.java
@@ -595,14 +595,15 @@ theme attribute (in the form
595 595 public static final int abs__bright_foreground_inverse_holo_dark=0x7f060006;
596 596 public static final int abs__bright_foreground_inverse_holo_light=0x7f060007;
597 597 public static final int abs__holo_blue_light=0x7f060008;
598   - public static final int abs__primary_text_disable_only_holo_dark=0x7f06000d;
599   - public static final int abs__primary_text_disable_only_holo_light=0x7f06000e;
600   - public static final int abs__primary_text_holo_dark=0x7f06000f;
601   - public static final int abs__primary_text_holo_light=0x7f060010;
  598 + public static final int abs__primary_text_disable_only_holo_dark=0x7f06000e;
  599 + public static final int abs__primary_text_disable_only_holo_light=0x7f06000f;
  600 + public static final int abs__primary_text_holo_dark=0x7f060010;
  601 + public static final int abs__primary_text_holo_light=0x7f060011;
602 602 public static final int actionbar_background_end=0x7f06000a;
603 603 public static final int actionbar_background_start=0x7f060009;
604   - public static final int book_author_color=0x7f06000c;
605   - public static final int book_heading_color=0x7f06000b;
  604 + public static final int actionbar_title=0x7f06000b;
  605 + public static final int book_author_color=0x7f06000d;
  606 + public static final int book_heading_color=0x7f06000c;
606 607 }
607 608 public static final class dimen {
608 609 /** Default height of an action bar.
@@ -803,10 +804,12 @@ is along the minor axis (that is the screen is portrait). This may
803 804 public static final int close=0x7f02005f;
804 805 public static final int facebook_icon=0x7f020060;
805 806 public static final int facebook_logo=0x7f020061;
806   - public static final int ic_launcher=0x7f020062;
807   - public static final int star_empty=0x7f020063;
808   - public static final int star_full=0x7f020064;
809   - public static final int star_half=0x7f020065;
  807 + public static final int ic_action_add=0x7f020062;
  808 + public static final int ic_action_refresh=0x7f020063;
  809 + public static final int ic_launcher=0x7f020064;
  810 + public static final int star_empty=0x7f020065;
  811 + public static final int star_full=0x7f020066;
  812 + public static final int star_half=0x7f020067;
810 813 }
811 814 public static final class id {
812 815 public static final int abs__action_bar=0x7f040022;
@@ -838,6 +841,7 @@ is along the minor axis (that is the screen is portrait). This may
838 841 public static final int abs__title=0x7f04001b;
839 842 public static final int abs__titleDivider=0x7f04001c;
840 843 public static final int abs__up=0x7f04000b;
  844 + public static final int book_author_tv=0x7f04003e;
841 845 public static final int book_detail_active_layout=0x7f040027;
842 846 public static final int book_detail_add_btn=0x7f040033;
843 847 public static final int book_detail_add_cancel_v=0x7f040032;
@@ -853,14 +857,14 @@ is along the minor axis (that is the screen is portrait). This may
853 857 public static final int book_detail_shelf_sp=0x7f040031;
854 858 public static final int book_detail_shelf_tv=0x7f040030;
855 859 public static final int book_detail_shelf_v=0x7f04002f;
856   - public static final int book_detail_star_1_iv=0x7f04003e;
857   - public static final int book_detail_star_2_iv=0x7f04003f;
858   - public static final int book_detail_star_3_iv=0x7f040040;
859   - public static final int book_detail_star_4_iv=0x7f040041;
860   - public static final int book_detail_star_5_iv=0x7f040042;
  860 + public static final int book_detail_star_1_iv=0x7f04003f;
  861 + public static final int book_detail_star_2_iv=0x7f040040;
  862 + public static final int book_detail_star_3_iv=0x7f040041;
  863 + public static final int book_detail_star_4_iv=0x7f040042;
  864 + public static final int book_detail_star_5_iv=0x7f040043;
861 865 public static final int book_detail_year=0x7f04002e;
862 866 public static final int book_item_iv=0x7f04003c;
863   - public static final int book_item_tv=0x7f04003d;
  867 + public static final int book_name_tv=0x7f04003d;
864 868 public static final int books_list_lv=0x7f04003b;
865 869 public static final int disableHome=0x7f040009;
866 870 public static final int homeAsUp=0x7f040006;
@@ -869,7 +873,8 @@ is along the minor axis (that is the screen is portrait). This may
869 873 public static final int login_email=0x7f040037;
870 874 public static final int login_fb_btn=0x7f04003a;
871 875 public static final int login_password=0x7f040038;
872   - public static final int menu_add=0x7f040043;
  876 + public static final int menu_add=0x7f040044;
  877 + public static final int menu_refresh=0x7f040045;
873 878 public static final int normal=0x7f040001;
874 879 public static final int showCustom=0x7f040008;
875 880 public static final int showHome=0x7f040005;
@@ -945,25 +950,26 @@ is along the minor axis (that is the screen is portrait). This may
945 950 */
946 951 public static final int abs__shareactionprovider_share_with_application=0x7f090009;
947 952 public static final int app_name=0x7f09000d;
948   - public static final int book_add_fail=0x7f090022;
949   - public static final int book_add_pending=0x7f090020;
950   - public static final int book_add_success=0x7f090021;
951   - public static final int book_author=0x7f090024;
952   - public static final int book_detail_add_btn=0x7f09001a;
953   - public static final int book_detail_add_failed=0x7f09001f;
  953 + public static final int book_add_fail=0x7f090023;
  954 + public static final int book_add_pending=0x7f090021;
  955 + public static final int book_add_success=0x7f090022;
  956 + public static final int book_author=0x7f090025;
  957 + public static final int book_detail_add_btn=0x7f09001b;
  958 + public static final int book_detail_add_failed=0x7f090020;
954 959 /** BOOKS DETAIL
955 960 */
956   - public static final int book_detail_add_label=0x7f090019;
957   - public static final int book_detail_cancel_btn=0x7f09001b;
958   - public static final int book_detail_loading_tv=0x7f09001d;
959   - public static final int book_detail_more_btn=0x7f09001c;
960   - public static final int book_detail_not_found_tv=0x7f09001e;
961   - public static final int book_isbn=0x7f090025;
  961 + public static final int book_detail_add_label=0x7f09001a;
  962 + public static final int book_detail_cancel_btn=0x7f09001c;
  963 + public static final int book_detail_loading_tv=0x7f09001e;
  964 + public static final int book_detail_more_btn=0x7f09001d;
  965 + public static final int book_detail_not_found_tv=0x7f09001f;
  966 + public static final int book_isbn=0x7f090026;
  967 + public static final int book_library_download_pending=0x7f090017;
962 968 /** TEMPORARY
963 969 */
964   - public static final int book_name=0x7f090023;
965   - public static final int book_not_found=0x7f090018;
966   - public static final int book_search_pending=0x7f090017;
  970 + public static final int book_name=0x7f090024;
  971 + public static final int book_not_found=0x7f090019;
  972 + public static final int book_search_pending=0x7f090018;
967 973 public static final int config_app_id=0x7f09000b;
968 974 public static final int config_salt=0x7f09000a;
969 975 public static final int hello=0x7f09000c;
@@ -980,14 +986,15 @@ is along the minor axis (that is the screen is portrait). This may
980 986 public static final int login_heading=0x7f09000f;
981 987 public static final int login_password=0x7f090011;
982 988 public static final int login_progress=0x7f090014;
983   - public static final int menu_save=0x7f090026;
  989 + public static final int menu_add=0x7f090027;
  990 + public static final int menu_refresh=0x7f090028;
984 991 }
985 992 public static final class style {
986   - public static final int BookScreen=0x7f0a005e;
  993 + public static final int BookScreen=0x7f0a0064;
987 994 public static final int DialogWindowTitle_Sherlock=0x7f0a0033;
988 995 public static final int DialogWindowTitle_Sherlock_Light=0x7f0a0034;
989   - public static final int Heading=0x7f0a005f;
990   - public static final int LoginScreen=0x7f0a005d;
  996 + public static final int Heading=0x7f0a0065;
  997 + public static final int LoginScreen=0x7f0a0063;
991 998 public static final int Sherlock___TextAppearance_Small=0x7f0a0047;
992 999 public static final int Sherlock___Theme=0x7f0a004a;
993 1000 public static final int Sherlock___Theme_DarkActionBar=0x7f0a004c;
@@ -1021,9 +1028,15 @@ is along the minor axis (that is the screen is portrait). This may
1021 1028 public static final int TextAppearance_Sherlock_Widget_TextView_SpinnerItem=0x7f0a0043;
1022 1029 public static final int Theme_Bookfan=0x7f0a0058;
1023 1030 public static final int Theme_Bookfan_Actionbar=0x7f0a0059;
1024   - public static final int Theme_Bookfan_Book=0x7f0a005a;
1025   - public static final int Theme_Bookfan_Book_Author=0x7f0a005c;
1026   - public static final int Theme_Bookfan_Book_Heading=0x7f0a005b;
  1031 + public static final int Theme_Bookfan_Actionbar_Title=0x7f0a005a;
  1032 + public static final int Theme_Bookfan_Book=0x7f0a0060;
  1033 + public static final int Theme_Bookfan_Book_Author=0x7f0a0062;
  1034 + public static final int Theme_Bookfan_Book_Heading=0x7f0a0061;
  1035 + public static final int Theme_Bookfan_List=0x7f0a005b;
  1036 + public static final int Theme_Bookfan_List_Author=0x7f0a005f;
  1037 + public static final int Theme_Bookfan_List_Container=0x7f0a005c;
  1038 + public static final int Theme_Bookfan_List_Heading=0x7f0a005e;
  1039 + public static final int Theme_Bookfan_List_Text=0x7f0a005d;
1027 1040 public static final int Theme_Sherlock=0x7f0a004e;
1028 1041 public static final int Theme_Sherlock_Dialog=0x7f0a0056;
1029 1042 public static final int Theme_Sherlock_ForceOverflow=0x7f0a0053;
91 gen/com/facebook/android/R.java
@@ -595,14 +595,15 @@ theme attribute (in the form
595 595 public static final int abs__bright_foreground_inverse_holo_dark=0x7f060006;
596 596 public static final int abs__bright_foreground_inverse_holo_light=0x7f060007;
597 597 public static final int abs__holo_blue_light=0x7f060008;
598   - public static final int abs__primary_text_disable_only_holo_dark=0x7f06000d;
599   - public static final int abs__primary_text_disable_only_holo_light=0x7f06000e;
600   - public static final int abs__primary_text_holo_dark=0x7f06000f;
601   - public static final int abs__primary_text_holo_light=0x7f060010;
  598 + public static final int abs__primary_text_disable_only_holo_dark=0x7f06000e;
  599 + public static final int abs__primary_text_disable_only_holo_light=0x7f06000f;
  600 + public static final int abs__primary_text_holo_dark=0x7f060010;
  601 + public static final int abs__primary_text_holo_light=0x7f060011;
602 602 public static final int actionbar_background_end=0x7f06000a;
603 603 public static final int actionbar_background_start=0x7f060009;
604   - public static final int book_author_color=0x7f06000c;
605   - public static final int book_heading_color=0x7f06000b;
  604 + public static final int actionbar_title=0x7f06000b;
  605 + public static final int book_author_color=0x7f06000d;
  606 + public static final int book_heading_color=0x7f06000c;
606 607 }
607 608 public static final class dimen {
608 609 /** Default height of an action bar.
@@ -803,10 +804,12 @@ is along the minor axis (that is the screen is portrait). This may
803 804 public static final int close=0x7f02005f;
804 805 public static final int facebook_icon=0x7f020060;
805 806 public static final int facebook_logo=0x7f020061;
806   - public static final int ic_launcher=0x7f020062;
807   - public static final int star_empty=0x7f020063;
808   - public static final int star_full=0x7f020064;
809   - public static final int star_half=0x7f020065;
  807 + public static final int ic_action_add=0x7f020062;
  808 + public static final int ic_action_refresh=0x7f020063;
  809 + public static final int ic_launcher=0x7f020064;
  810 + public static final int star_empty=0x7f020065;
  811 + public static final int star_full=0x7f020066;
  812 + public static final int star_half=0x7f020067;
810 813 }
811 814 public static final class id {
812 815 public static final int abs__action_bar=0x7f040022;
@@ -838,6 +841,7 @@ is along the minor axis (that is the screen is portrait). This may
838 841 public static final int abs__title=0x7f04001b;
839 842 public static final int abs__titleDivider=0x7f04001c;
840 843 public static final int abs__up=0x7f04000b;
  844 + public static final int book_author_tv=0x7f04003e;
841 845 public static final int book_detail_active_layout=0x7f040027;
842 846 public static final int book_detail_add_btn=0x7f040033;
843 847 public static final int book_detail_add_cancel_v=0x7f040032;
@@ -853,14 +857,14 @@ is along the minor axis (that is the screen is portrait). This may
853 857 public static final int book_detail_shelf_sp=0x7f040031;
854 858 public static final int book_detail_shelf_tv=0x7f040030;
855 859 public static final int book_detail_shelf_v=0x7f04002f;
856   - public static final int book_detail_star_1_iv=0x7f04003e;
857   - public static final int book_detail_star_2_iv=0x7f04003f;
858   - public static final int book_detail_star_3_iv=0x7f040040;
859   - public static final int book_detail_star_4_iv=0x7f040041;
860   - public static final int book_detail_star_5_iv=0x7f040042;
  860 + public static final int book_detail_star_1_iv=0x7f04003f;
  861 + public static final int book_detail_star_2_iv=0x7f040040;
  862 + public static final int book_detail_star_3_iv=0x7f040041;
  863 + public static final int book_detail_star_4_iv=0x7f040042;
  864 + public static final int book_detail_star_5_iv=0x7f040043;
861 865 public static final int book_detail_year=0x7f04002e;
862 866 public static final int book_item_iv=0x7f04003c;
863   - public static final int book_item_tv=0x7f04003d;
  867 + public static final int book_name_tv=0x7f04003d;
864 868 public static final int books_list_lv=0x7f04003b;
865 869 public static final int disableHome=0x7f040009;
866 870 public static final int homeAsUp=0x7f040006;
@@ -869,7 +873,8 @@ is along the minor axis (that is the screen is portrait). This may
869 873 public static final int login_email=0x7f040037;
870 874 public static final int login_fb_btn=0x7f04003a;
871 875 public static final int login_password=0x7f040038;
872   - public static final int menu_add=0x7f040043;
  876 + public static final int menu_add=0x7f040044;
  877 + public static final int menu_refresh=0x7f040045;
873 878 public static final int normal=0x7f040001;
874 879 public static final int showCustom=0x7f040008;
875 880 public static final int showHome=0x7f040005;
@@ -945,25 +950,26 @@ is along the minor axis (that is the screen is portrait). This may
945 950 */
946 951 public static final int abs__shareactionprovider_share_with_application=0x7f090009;
947 952 public static final int app_name=0x7f09000d;
948   - public static final int book_add_fail=0x7f090022;
949   - public static final int book_add_pending=0x7f090020;
950   - public static final int book_add_success=0x7f090021;
951   - public static final int book_author=0x7f090024;
952   - public static final int book_detail_add_btn=0x7f09001a;
953   - public static final int book_detail_add_failed=0x7f09001f;
  953 + public static final int book_add_fail=0x7f090023;
  954 + public static final int book_add_pending=0x7f090021;
  955 + public static final int book_add_success=0x7f090022;
  956 + public static final int book_author=0x7f090025;
  957 + public static final int book_detail_add_btn=0x7f09001b;
  958 + public static final int book_detail_add_failed=0x7f090020;
954 959 /** BOOKS DETAIL
955 960 */
956   - public static final int book_detail_add_label=0x7f090019;
957   - public static final int book_detail_cancel_btn=0x7f09001b;
958   - public static final int book_detail_loading_tv=0x7f09001d;
959   - public static final int book_detail_more_btn=0x7f09001c;
960   - public static final int book_detail_not_found_tv=0x7f09001e;
961   - public static final int book_isbn=0x7f090025;
  961 + public static final int book_detail_add_label=0x7f09001a;
  962 + public static final int book_detail_cancel_btn=0x7f09001c;
  963 + public static final int book_detail_loading_tv=0x7f09001e;
  964 + public static final int book_detail_more_btn=0x7f09001d;
  965 + public static final int book_detail_not_found_tv=0x7f09001f;
  966 + public static final int book_isbn=0x7f090026;
  967 + public static final int book_library_download_pending=0x7f090017;
962 968 /** TEMPORARY
963 969 */
964   - public static final int book_name=0x7f090023;
965   - public static final int book_not_found=0x7f090018;
966   - public static final int book_search_pending=0x7f090017;
  970 + public static final int book_name=0x7f090024;
  971 + public static final int book_not_found=0x7f090019;
  972 + public static final int book_search_pending=0x7f090018;
967 973 public static final int config_app_id=0x7f09000b;
968 974 public static final int config_salt=0x7f09000a;
969 975 public static final int hello=0x7f09000c;
@@ -980,14 +986,15 @@ is along the minor axis (that is the screen is portrait). This may
980 986 public static final int login_heading=0x7f09000f;
981 987 public static final int login_password=0x7f090011;
982 988 public static final int login_progress=0x7f090014;
983   - public static final int menu_save=0x7f090026;
  989 + public static final int menu_add=0x7f090027;
  990 + public static final int menu_refresh=0x7f090028;
984 991 }
985 992 public static final class style {
986   - public static final int BookScreen=0x7f0a005e;
  993 + public static final int BookScreen=0x7f0a0064;
987 994 public static final int DialogWindowTitle_Sherlock=0x7f0a0033;
988 995 public static final int DialogWindowTitle_Sherlock_Light=0x7f0a0034;
989   - public static final int Heading=0x7f0a005f;
990   - public static final int LoginScreen=0x7f0a005d;
  996 + public static final int Heading=0x7f0a0065;
  997 + public static final int LoginScreen=0x7f0a0063;
991 998 public static final int Sherlock___TextAppearance_Small=0x7f0a0047;
992 999 public static final int Sherlock___Theme=0x7f0a004a;
993 1000 public static final int Sherlock___Theme_DarkActionBar=0x7f0a004c;
@@ -1021,9 +1028,15 @@ is along the minor axis (that is the screen is portrait). This may
1021 1028 public static final int TextAppearance_Sherlock_Widget_TextView_SpinnerItem=0x7f0a0043;
1022 1029 public static final int Theme_Bookfan=0x7f0a0058;
1023 1030 public static final int Theme_Bookfan_Actionbar=0x7f0a0059;
1024   - public static final int Theme_Bookfan_Book=0x7f0a005a;
1025   - public static final int Theme_Bookfan_Book_Author=0x7f0a005c;
1026   - public static final int Theme_Bookfan_Book_Heading=0x7f0a005b;
  1031 + public static final int Theme_Bookfan_Actionbar_Title=0x7f0a005a;
  1032 + public static final int Theme_Bookfan_Book=0x7f0a0060;
  1033 + public static final int Theme_Bookfan_Book_Author=0x7f0a0062;
  1034 + public static final int Theme_Bookfan_Book_Heading=0x7f0a0061;
  1035 + public static final int Theme_Bookfan_List=0x7f0a005b;
  1036 + public static final int Theme_Bookfan_List_Author=0x7f0a005f;
  1037 + public static final int Theme_Bookfan_List_Container=0x7f0a005c;
  1038 + public static final int Theme_Bookfan_List_Heading=0x7f0a005e;
  1039 + public static final int Theme_Bookfan_List_Text=0x7f0a005d;
1027 1040 public static final int Theme_Sherlock=0x7f0a004e;
1028 1041 public static final int Theme_Sherlock_Dialog=0x7f0a0056;
1029 1042 public static final int Theme_Sherlock_ForceOverflow=0x7f0a0053;
91 gen/cz/alenkacz/bookfan/R.java
@@ -595,14 +595,15 @@ theme attribute (in the form
595 595 public static final int abs__bright_foreground_inverse_holo_dark=0x7f060006;
596 596 public static final int abs__bright_foreground_inverse_holo_light=0x7f060007;
597 597 public static final int abs__holo_blue_light=0x7f060008;
598   - public static final int abs__primary_text_disable_only_holo_dark=0x7f06000d;
599   - public static final int abs__primary_text_disable_only_holo_light=0x7f06000e;
600   - public static final int abs__primary_text_holo_dark=0x7f06000f;
601   - public static final int abs__primary_text_holo_light=0x7f060010;
  598 + public static final int abs__primary_text_disable_only_holo_dark=0x7f06000e;
  599 + public static final int abs__primary_text_disable_only_holo_light=0x7f06000f;
  600 + public static final int abs__primary_text_holo_dark=0x7f060010;
  601 + public static final int abs__primary_text_holo_light=0x7f060011;
602 602 public static final int actionbar_background_end=0x7f06000a;
603 603 public static final int actionbar_background_start=0x7f060009;
604   - public static final int book_author_color=0x7f06000c;
605   - public static final int book_heading_color=0x7f06000b;
  604 + public static final int actionbar_title=0x7f06000b;
  605 + public static final int book_author_color=0x7f06000d;
  606 + public static final int book_heading_color=0x7f06000c;
606 607 }
607 608 public static final class dimen {
608 609 /** Default height of an action bar.
@@ -803,10 +804,12 @@ is along the minor axis (that is the screen is portrait). This may
803 804 public static final int close=0x7f02005f;
804 805 public static final int facebook_icon=0x7f020060;
805 806 public static final int facebook_logo=0x7f020061;
806   - public static final int ic_launcher=0x7f020062;
807   - public static final int star_empty=0x7f020063;
808   - public static final int star_full=0x7f020064;
809   - public static final int star_half=0x7f020065;
  807 + public static final int ic_action_add=0x7f020062;
  808 + public static final int ic_action_refresh=0x7f020063;
  809 + public static final int ic_launcher=0x7f020064;
  810 + public static final int star_empty=0x7f020065;
  811 + public static final int star_full=0x7f020066;
  812 + public static final int star_half=0x7f020067;
810 813 }
811 814 public static final class id {
812 815 public static final int abs__action_bar=0x7f040022;
@@ -838,6 +841,7 @@ is along the minor axis (that is the screen is portrait). This may
838 841 public static final int abs__title=0x7f04001b;
839 842 public static final int abs__titleDivider=0x7f04001c;
840 843 public static final int abs__up=0x7f04000b;
  844 + public static final int book_author_tv=0x7f04003e;
841 845 public static final int book_detail_active_layout=0x7f040027;
842 846 public static final int book_detail_add_btn=0x7f040033;
843 847 public static final int book_detail_add_cancel_v=0x7f040032;
@@ -853,14 +857,14 @@ is along the minor axis (that is the screen is portrait). This may
853 857 public static final int book_detail_shelf_sp=0x7f040031;
854 858 public static final int book_detail_shelf_tv=0x7f040030;
855 859 public static final int book_detail_shelf_v=0x7f04002f;
856   - public static final int book_detail_star_1_iv=0x7f04003e;
857   - public static final int book_detail_star_2_iv=0x7f04003f;
858   - public static final int book_detail_star_3_iv=0x7f040040;
859   - public static final int book_detail_star_4_iv=0x7f040041;
860   - public static final int book_detail_star_5_iv=0x7f040042;
  860 + public static final int book_detail_star_1_iv=0x7f04003f;
  861 + public static final int book_detail_star_2_iv=0x7f040040;
  862 + public static final int book_detail_star_3_iv=0x7f040041;
  863 + public static final int book_detail_star_4_iv=0x7f040042;
  864 + public static final int book_detail_star_5_iv=0x7f040043;
861 865 public static final int book_detail_year=0x7f04002e;
862 866 public static final int book_item_iv=0x7f04003c;
863   - public static final int book_item_tv=0x7f04003d;
  867 + public static final int book_name_tv=0x7f04003d;
864 868 public static final int books_list_lv=0x7f04003b;
865 869 public static final int disableHome=0x7f040009;
866 870 public static final int homeAsUp=0x7f040006;
@@ -869,7 +873,8 @@ is along the minor axis (that is the screen is portrait). This may
869 873 public static final int login_email=0x7f040037;
870 874 public static final int login_fb_btn=0x7f04003a;
871 875 public static final int login_password=0x7f040038;
872   - public static final int menu_add=0x7f040043;
  876 + public static final int menu_add=0x7f040044;
  877 + public static final int menu_refresh=0x7f040045;
873 878 public static final int normal=0x7f040001;
874 879 public static final int showCustom=0x7f040008;
875 880 public static final int showHome=0x7f040005;
@@ -945,25 +950,26 @@ is along the minor axis (that is the screen is portrait). This may
945 950 */
946 951 public static final int abs__shareactionprovider_share_with_application=0x7f090009;
947 952 public static final int app_name=0x7f09000d;
948   - public static final int book_add_fail=0x7f090022;
949   - public static final int book_add_pending=0x7f090020;
950   - public static final int book_add_success=0x7f090021;
951   - public static final int book_author=0x7f090024;
952   - public static final int book_detail_add_btn=0x7f09001a;
953   - public static final int book_detail_add_failed=0x7f09001f;
  953 + public static final int book_add_fail=0x7f090023;
  954 + public static final int book_add_pending=0x7f090021;
  955 + public static final int book_add_success=0x7f090022;
  956 + public static final int book_author=0x7f090025;
  957 + public static final int book_detail_add_btn=0x7f09001b;
  958 + public static final int book_detail_add_failed=0x7f090020;
954 959 /** BOOKS DETAIL
955 960 */
956   - public static final int book_detail_add_label=0x7f090019;
957   - public static final int book_detail_cancel_btn=0x7f09001b;
958   - public static final int book_detail_loading_tv=0x7f09001d;
959   - public static final int book_detail_more_btn=0x7f09001c;
960   - public static final int book_detail_not_found_tv=0x7f09001e;
961   - public static final int book_isbn=0x7f090025;
  961 + public static final int book_detail_add_label=0x7f09001a;
  962 + public static final int book_detail_cancel_btn=0x7f09001c;
  963 + public static final int book_detail_loading_tv=0x7f09001e;
  964 + public static final int book_detail_more_btn=0x7f09001d;
  965 + public static final int book_detail_not_found_tv=0x7f09001f;
  966 + public static final int book_isbn=0x7f090026;
  967 + public static final int book_library_download_pending=0x7f090017;
962 968 /** TEMPORARY
963 969 */
964   - public static final int book_name=0x7f090023;
965   - public static final int book_not_found=0x7f090018;
966   - public static final int book_search_pending=0x7f090017;
  970 + public static final int book_name=0x7f090024;
  971 + public static final int book_not_found=0x7f090019;
  972 + public static final int book_search_pending=0x7f090018;
967 973 public static final int config_app_id=0x7f09000b;
968 974 public static final int config_salt=0x7f09000a;
969 975 public static final int hello=0x7f09000c;
@@ -980,14 +986,15 @@ is along the minor axis (that is the screen is portrait). This may
980 986 public static final int login_heading=0x7f09000f;
981 987 public static final int login_password=0x7f090011;
982 988 public static final int login_progress=0x7f090014;
983   - public static final int menu_save=0x7f090026;
  989 + public static final int menu_add=0x7f090027;
  990 + public static final int menu_refresh=0x7f090028;
984 991 }
985 992 public static final class style {
986   - public static final int BookScreen=0x7f0a005e;
  993 + public static final int BookScreen=0x7f0a0064;
987 994 public static final int DialogWindowTitle_Sherlock=0x7f0a0033;
988 995 public static final int DialogWindowTitle_Sherlock_Light=0x7f0a0034;
989   - public static final int Heading=0x7f0a005f;
990   - public static final int LoginScreen=0x7f0a005d;
  996 + public static final int Heading=0x7f0a0065;
  997 + public static final int LoginScreen=0x7f0a0063;
991 998 public static final int Sherlock___TextAppearance_Small=0x7f0a0047;
992 999 public static final int Sherlock___Theme=0x7f0a004a;
993 1000 public static final int Sherlock___Theme_DarkActionBar=0x7f0a004c;
@@ -1021,9 +1028,15 @@ is along the minor axis (that is the screen is portrait). This may
1021 1028 public static final int TextAppearance_Sherlock_Widget_TextView_SpinnerItem=0x7f0a0043;
1022 1029 public static final int Theme_Bookfan=0x7f0a0058;
1023 1030 public static final int Theme_Bookfan_Actionbar=0x7f0a0059;
1024   - public static final int Theme_Bookfan_Book=0x7f0a005a;
1025   - public static final int Theme_Bookfan_Book_Author=0x7f0a005c;
1026   - public static final int Theme_Bookfan_Book_Heading=0x7f0a005b;
  1031 + public static final int Theme_Bookfan_Actionbar_Title=0x7f0a005a;
  1032 + public static final int Theme_Bookfan_Book=0x7f0a0060;
  1033 + public static final int Theme_Bookfan_Book_Author=0x7f0a0062;
  1034 + public static final int Theme_Bookfan_Book_Heading=0x7f0a0061;
  1035 + public static final int Theme_Bookfan_List=0x7f0a005b;
  1036 + public static final int Theme_Bookfan_List_Author=0x7f0a005f;
  1037 + public static final int Theme_Bookfan_List_Container=0x7f0a005c;
  1038 + public static final int Theme_Bookfan_List_Heading=0x7f0a005e;
  1039 + public static final int Theme_Bookfan_List_Text=0x7f0a005d;
1027 1040 public static final int Theme_Sherlock=0x7f0a004e;
1028 1041 public static final int Theme_Sherlock_Dialog=0x7f0a0056;
1029 1042 public static final int Theme_Sherlock_ForceOverflow=0x7f0a0053;
BIN  res/drawable-hdpi/ic_action_add.png
BIN  res/drawable-hdpi/ic_action_refresh.png
8 res/layout/activity_main_list.xml
@@ -7,12 +7,12 @@
7 7 <ListView
8 8 android:id="@+id/books_list_lv"
9 9 android:layout_height="fill_parent"
10   - android:layout_width="fill_parent"/>
11   -
  10 + android:layout_width="fill_parent"
  11 + style="@style/Theme.Bookfan.List.Container" />
12 12 <TextView
13 13 android:id="@+id/android:empty"
14   - android:layout_width="wrap_content"
15   - android:layout_height="wrap_content"
  14 + android:layout_width="match_parent"
  15 + android:layout_height="match_parent"
16 16 android:text="@string/list_no_books" />
17 17
18 18 </LinearLayout>
31 res/layout/part_book_item.xml
@@ -6,17 +6,30 @@
6 6
7 7 <ImageView
8 8 android:id="@+id/book_item_iv"
9   - android:layout_width="wrap_content"
10   - android:layout_height="fill_parent"
  9 + android:layout_width="35dip"
  10 + android:layout_height="70dip"
11 11 android:layout_marginRight="6dip"
12 12 android:src="@drawable/ic_launcher" />
13   -
14   - <TextView
15   - android:id="@+id/book_item_tv"
  13 + <LinearLayout
16 14 android:layout_width="fill_parent"
17 15 android:layout_height="fill_parent"
18   - android:text="@string/book_name"
19   - android:layout_gravity="center"
20   - android:layout_toRightOf="@id/book_item_iv" />
21   -
  16 + android:orientation="vertical"
  17 + android:layout_toRightOf="@id/book_item_iv"
  18 + style="@style/Theme.Bookfan.List.Text"
  19 + android:gravity="center"
  20 + >
  21 + <TextView
  22 + android:id="@+id/book_name_tv"
  23 + android:layout_width="fill_parent"
  24 + android:layout_height="wrap_content"
  25 + android:text="@string/book_name"
  26 + style="@style/Theme.Bookfan.List.Heading"/>
  27 +
  28 + <TextView
  29 + android:id="@+id/book_author_tv"
  30 + android:layout_width="fill_parent"
  31 + android:layout_height="wrap_content"
  32 + android:text="@string/book_name"
  33 + style="@style/Theme.Bookfan.List.Author" />
  34 + </LinearLayout>
22 35 </RelativeLayout>
9 res/menu/actionbar.xml
... ... @@ -1,7 +1,12 @@
1 1 <?xml version="1.0" encoding="utf-8"?>
2 2 <menu xmlns:android="http://schemas.android.com/apk/res/android">
3 3 <item android:id="@+id/menu_add"
4   - android:icon="@drawable/ic_launcher"
5   - android:title="@string/menu_save"
  4 + android:icon="@drawable/ic_action_add"
  5 + android:title="@string/menu_add"
  6 + android:showAsAction="ifRoom" />
  7 +
  8 + <item android:id="@+id/menu_refresh"
  9 + android:icon="@drawable/ic_action_refresh"
  10 + android:title="@string/menu_refresh"
6 11 android:showAsAction="ifRoom" />
7 12 </menu>
1  res/values/colors.xml
... ... @@ -1,6 +1,7 @@
1 1 <resources>
2 2 <color name="actionbar_background_start">#272727</color>
3 3 <color name="actionbar_background_end">#1A1A1A</color>
  4 + <color name="actionbar_title">#FFF</color>
4 5
5 6 <color name="book_heading_color">#DE5941</color>
6 7 <color name="book_author_color">#654118</color>
5 res/values/strings.xml
@@ -19,6 +19,7 @@
19 19 <!-- BOOKS LIST -->
20 20 <string name="list_no_books">Žádné knihy, přidej první</string>
21 21
  22 + <string name="book_library_download_pending">Stahuju tvoji knihovnu do telefonu...</string>
22 23 <string name="book_search_pending">Hledám tvoji knížku v databázi Bookfanu...</string>
23 24 <string name="book_not_found">Tuto knihu jsme v databázi Bookfanu bohužel nenašli...</string>
24 25
@@ -39,7 +40,9 @@
39 40 <string name="book_name">Název knihy</string>
40 41 <string name="book_author">Autor knihy</string>
41 42 <string name="book_isbn">ISBN</string>
42   - <string name="menu_save">Ulozit</string>
  43 +
  44 + <string name="menu_add">Přidat</string>
  45 + <string name="menu_refresh">Obnovit</string>
43 46
44 47 <string-array name="shelf_array">
45 48 <item>Přečtené</item>
38 res/values/styles.xml
@@ -3,15 +3,45 @@
3 3
4 4 <style name="Theme.Bookfan" parent="style/Theme.Sherlock.Light">
5 5 <item name="actionBarStyle">@style/Theme.Bookfan.Actionbar</item>
  6 + <item name="android:actionBarStyle">@style/Theme.Bookfan.Actionbar</item>
6 7 </style>
7 8
8 9 <style name="Theme.Bookfan.Actionbar" parent="Widget.Sherlock.ActionBar">
9   - <item name="background">#664c1e</item>
10   - <item name="android:background">#664c1e</item>
11   - <item name="android:backgroundStacked">#664c1e</item>
12   - <item name="android:textColor">#0084dc</item>
  10 + <item name="background">#574A3B</item>
  11 + <item name="android:background">#574A3B</item>
  12 + <item name="android:titleTextStyle">@style/Theme.Bookfan.Actionbar.Title</item>
  13 + <item name="android:displayOptions">showTitle</item>
13 14 </style>
14 15
  16 + <style name="Theme.Bookfan.Actionbar.Title">
  17 + <item name="android:textColor">@color/actionbar_title</item>
  18 + <item name="android:textStyle">bold</item>
  19 + <item name="android:textSize">16dip</item>
  20 + </style>
  21 +
  22 + <style name="Theme.Bookfan.List">
  23 + <item name="android:textSize">14dip</item>
  24 + </style>
  25 +
  26 + <style name="Theme.Bookfan.List.Container">
  27 + <item name="android:paddingTop">10dip</item>
  28 + </style>
  29 +
  30 + <style name="Theme.Bookfan.List.Text">
  31 + <item name="android:paddingLeft">15dip</item>
  32 + </style>
  33 +
  34 + <style name="Theme.Bookfan.List.Heading">
  35 + <item name="android:textStyle">bold</item>
  36 + <item name="android:textSize">16dip</item>
  37 + <item name="android:textColor">@color/book_heading_color</item>
  38 + </style>
  39 +
  40 + <style name="Theme.Bookfan.List.Author">
  41 + <item name="android:textStyle">bold</item>
  42 + <item name="android:textColor">@color/book_author_color</item>
  43 + </style>
  44 +
15 45 <style name="Theme.Bookfan.Book">
16 46 <item name="android:textSize">14dip</item>
17 47 </style>
17 src/cz/alenkacz/bookfan/activity/BaseActivity.java
@@ -6,6 +6,7 @@
6 6 import com.actionbarsherlock.view.MenuItem;
7 7
8 8 import cz.alenkacz.bookfan.R;
  9 +import cz.alenkacz.bookfan.tools.Constants;
9 10 import android.app.Activity;
10 11 import android.content.Intent;
11 12 import android.os.Bundle;
@@ -33,8 +34,24 @@ public boolean onOptionsItemSelected(MenuItem item) {
33 34 intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);
34 35 startActivity(intent);
35 36 return true;
  37 + case R.id.menu_add:
  38 + initScan();
  39 + return true;
36 40 default:
37 41 return super.onOptionsItemSelected(item);
38 42 }
39 43 }
  44 +
  45 + private void initScan() {
  46 + /*
  47 + * Intent intent = new Intent("com.google.zxing.client.android.SCAN");
  48 + * intent.putExtra("SCAN_MODE", "EAN_13_MODE");
  49 + * startActivityForResult(intent, 0);
  50 + */
  51 +
  52 + // TODO re-enable scanning
  53 + Intent i = new Intent(getApplicationContext(), BookDetailActivity.class);
  54 + i.putExtra(Constants.EXTRA_ISBN, "9788024233109");
  55 + startActivity(i);
  56 + }
40 57 }
17 src/cz/alenkacz/bookfan/activity/BookDetailActivity.java
@@ -6,6 +6,7 @@
6 6 import org.apache.http.client.HttpClient;
7 7 import org.apache.http.client.methods.HttpGet;
8 8
  9 +import com.actionbarsherlock.view.MenuItem;
9 10 import com.google.android.imageloader.ImageLoader;
10 11 import com.google.gson.Gson;
11 12
@@ -60,6 +61,7 @@
60 61 private ProgressDialog mBookAddDialog;
61 62
62 63 private Book mDownloadedBook;
  64 + private String isbn;
63 65
64 66 @Override
65 67 public void onCreate(Bundle savedInstanceState) {
@@ -68,7 +70,7 @@ public void onCreate(Bundle savedInstanceState) {
68 70
69 71 mImageLoader = ImageLoader.get(this);
70 72 mPrefs = getSharedPreferences(Constants.PREFS, MODE_PRIVATE);
71   - String isbn = getIntent().getStringExtra(Constants.EXTRA_ISBN);
  73 + isbn = getIntent().getStringExtra(Constants.EXTRA_ISBN);
72 74
73 75 if(isbn != null) {
74 76 mSearchingDialog = ProgressDialog.show(BookDetailActivity.this, "",
@@ -83,6 +85,19 @@ public void onCreate(Bundle savedInstanceState) {
83 85 }
84 86 }
85 87
  88 + @Override
  89 + public boolean onOptionsItemSelected(MenuItem item) {
  90 + switch (item.getItemId()) {
  91 + case R.id.menu_refresh:
  92 + mSearchingDialog = ProgressDialog.show(BookDetailActivity.this, "",
  93 + getString(R.string.book_search_pending), true);
  94 + new BookFindAsyncTask().execute(isbn);
  95 + return true;
  96 + default:
  97 + return super.onOptionsItemSelected(item);
  98 + }
  99 + }
  100 +
86 101 private void setupViews() {
87 102 mActiveLayout = (View) findViewById(R.id.book_detail_active_layout);
88 103 mShelfSp = (Spinner) findViewById(R.id.book_detail_shelf_sp);
30 src/cz/alenkacz/bookfan/activity/BooksAdapter.java
@@ -3,22 +3,29 @@
3 3 import java.util.ArrayList;
4 4 import java.util.List;
5 5
  6 +import com.google.android.imageloader.ImageLoader;
  7 +
6 8 import cz.alenkacz.bookfan.R;
7 9 import cz.alenkacz.bookfan.dto.Book;
  10 +import cz.alenkacz.bookfan.rest.pojo.LibraryBook;
8 11 import android.content.Context;
9 12 import android.view.LayoutInflater;
10 13 import android.view.View;
11 14 import android.view.ViewGroup;
12 15 import android.widget.ArrayAdapter;
  16 +import android.widget.ImageView;
13 17 import android.widget.TextView;
14 18
15   -public class BooksAdapter extends ArrayAdapter<Book> {
  19 +public class BooksAdapter extends ArrayAdapter<LibraryBook> {
16 20
17   - private List<Book> mItems;
  21 + private List<LibraryBook> mItems;
  22 + private ImageLoader mImageLoader;
18 23
19   - public BooksAdapter(Context context, int textViewResourceId, List<Book> items) {
  24 + public BooksAdapter(Context context, int textViewResourceId, List<LibraryBook> items) {
20 25 super(context, textViewResourceId, items);
21 26 this.mItems = items;
  27 +
  28 + mImageLoader = ImageLoader.get(context);
22 29 }
23 30
24 31 @Override
@@ -28,11 +35,22 @@ public View getView(int position, View convertView, ViewGroup parent) {
28 35 LayoutInflater vi = (LayoutInflater) getContext().getSystemService(Context.LAYOUT_INFLATER_SERVICE);
29 36 v = vi.inflate(R.layout.part_book_item, null);
30 37 }
31   - Book book = mItems.get(position);
  38 + LibraryBook book = mItems.get(position);
32 39 if (book != null) {
33   - TextView tt = (TextView) v.findViewById(R.id.book_item_tv);
  40 + TextView tt = (TextView) v.findViewById(R.id.book_name_tv);
  41 + TextView authorTv = (TextView) v.findViewById(R.id.book_author_tv);
  42 + ImageView iv = (ImageView) v.findViewById(R.id.book_item_iv);
  43 +
34 44 if (tt != null) {
35   - tt.setText(book.name);
  45 + tt.setText(book.getBOOK_TITLE());
  46 + }
  47 +
  48 + if(book.getBOOK_THUMB() != null) {
  49 + mImageLoader.bind(iv, book.getBOOK_THUMB(), null);
  50 + }
  51 +
  52 + if (authorTv != null) {
  53 + authorTv.setText(book.getPT_FULL_NAME());
36 54 }
37 55 }
38 56 return v;
2  src/cz/alenkacz/bookfan/activity/LoginActivity.java
@@ -37,7 +37,7 @@
37 37 import android.widget.EditText;
38 38 import android.widget.Toast;
39 39
40   -public class LoginActivity extends BaseActivity {
  40 +public class LoginActivity extends SherlockActivity {
41 41 private Facebook mFacebook;
42 42 private SharedPreferences mPrefs;
43 43
137 src/cz/alenkacz/bookfan/activity/MainListActivity.java
@@ -15,10 +15,13 @@
15 15 import cz.alenkacz.bookfan.R;
16 16 import cz.alenkacz.bookfan.dto.Book;
17 17 import cz.alenkacz.bookfan.dto.UserLogin;
  18 +import cz.alenkacz.bookfan.rest.pojo.BookSearchContainer;
  19 +import cz.alenkacz.bookfan.rest.pojo.BooksLibraryContainer;
18 20 import cz.alenkacz.bookfan.rest.pojo.LoggedUserContainer;
19 21 import cz.alenkacz.bookfan.tools.Constants;
20 22 import cz.alenkacz.bookfan.tools.Utils;
21 23 import android.app.Activity;
  24 +import android.app.ProgressDialog;
22 25 import android.content.Intent;
23 26 import android.content.SharedPreferences;
24 27 import android.os.AsyncTask;
@@ -32,76 +35,104 @@
32 35 import android.widget.Toast;
33 36
34 37 public class MainListActivity extends BaseActivity {
35   -
  38 +
36 39 private ListView mBooksList;
37   - private List<Book> mBooks;
38   -
  40 + private SharedPreferences mPrefs;
  41 + private ProgressDialog mDownloadingDialog;
  42 +
39 43 @Override
40   - public void onCreate(Bundle savedInstanceState) {
41   - super.onCreate(savedInstanceState);
  44 + public void onCreate(Bundle savedInstanceState) {
  45 + super.onCreate(savedInstanceState);
42 46 setContentView(R.layout.activity_main_list);
43   -
44   - initTempList();
  47 +
  48 + mPrefs = getSharedPreferences(Constants.PREFS, MODE_PRIVATE);
  49 +
45 50 setupViews();
46 51 }
47   -
48   - private void initTempList() {
49   - mBooks = new ArrayList<Book>();
50   -
51   - mBooks.add(new Book("Test knihy"));
52   - mBooks.add(new Book("Kniha 2"));
53   - mBooks.add(new Book("Kniha 3"));
  52 +
  53 + @Override
  54 + public boolean onOptionsItemSelected(MenuItem item) {
  55 + switch (item.getItemId()) {
  56 + case R.id.menu_refresh:
  57 + downloadBooks();
  58 + return true;
  59 + default:
  60 + return super.onOptionsItemSelected(item);
  61 + }
54 62 }
55   -
56   - @Override
57   - public boolean onOptionsItemSelected(MenuItem item) {
58   - switch (item.getItemId()) {
59   - case R.id.menu_add:
60   - initScan();
61   - return true;
62   - default:
63   - return super.onOptionsItemSelected(item);
64   - }
65   - }
66   -
  63 +
67 64 private void setupViews() {
68 65 mBooksList = (ListView) findViewById(R.id.books_list_lv);
69   - mBooksList.setAdapter(new BooksAdapter(this, R.layout.part_book_item, mBooks));
70   -
71   - mBooksList.setOnItemClickListener(new OnItemClickListener(){
  66 +
  67 + mBooksList.setOnItemClickListener(new OnItemClickListener() {
72 68
73 69 public void onItemClick(AdapterView<?> arg0, View arg1, int arg2,
74 70 long arg3) {
75 71 // TODO put some actual code here
76   - Intent i = new Intent(getApplicationContext(), BookDetailActivity.class);
  72 + Intent i = new Intent(getApplicationContext(),
  73 + BookDetailActivity.class);
77 74 startActivity(i);
78 75 }
79   -
  76 +
80 77 });
81 78 }
82   -
83   - private void initScan() {
84   - /*Intent intent = new Intent("com.google.zxing.client.android.SCAN");
85   - intent.putExtra("SCAN_MODE", "EAN_13_MODE");
86   - startActivityForResult(intent, 0);*/
87   -
88   - // TODO re-enable scanning
89   - Intent i = new Intent(getApplicationContext(), BookDetailActivity.class);
90   - i.putExtra(Constants.EXTRA_ISBN, "9788024233109");
91   - startActivity(i);
  79 +
  80 + private void downloadBooks() {
  81 + mDownloadingDialog = ProgressDialog.show(MainListActivity.this, "",
  82 + getString(R.string.book_library_download_pending), true);
  83 + new LibraryFetchAsyncTask().execute();
92 84 }
93   -
  85 +
94 86 public void onActivityResult(int requestCode, int resultCode, Intent intent) {
95   - if (requestCode == 0) {
96   - if (resultCode == RESULT_OK) {
97   - String contents = intent.getStringExtra("SCAN_RESULT");
98   -
99   - Intent i = new Intent(getApplicationContext(), BookDetailActivity.class);
100   - i.putExtra(Constants.EXTRA_ISBN, contents);
101   - startActivity(i);
102   - } else if (resultCode == RESULT_CANCELED) {
103   - // Handle cancel
104   - }
105   - }
  87 + if (requestCode == 0) {
  88 + if (resultCode == RESULT_OK) {
  89 + String contents = intent.getStringExtra("SCAN_RESULT");
  90 +
  91 + Intent i = new Intent(getApplicationContext(),
  92 + BookDetailActivity.class);
  93 + i.putExtra(Constants.EXTRA_ISBN, contents);
  94 + startActivity(i);
  95 + } else if (resultCode == RESULT_CANCELED) {
  96 + // Handle cancel
  97 + }
  98 + }
  99 + }
  100 +
  101 + private class LibraryFetchAsyncTask extends AsyncTask<Void, Void, String> {
  102 +
  103 + protected String doInBackground(Void... nothing) {
  104 + try {
  105 + String token = mPrefs
  106 + .getString(Constants.PREFS_LOGIN_TOKEN, "");
  107 + HttpClient hc = Utils.getDefaultHttpClientWithCookie(mPrefs
  108 + .getString(Constants.PREFS_LOGIN_TOKEN, ""));
  109 + HttpGet get = new HttpGet(Utils.getLibraryGetUrl(token));
  110 +
  111 + HttpResponse resp = hc.execute(get);
  112 + int status = resp.getStatusLine().getStatusCode();
  113 + if (status == 200) {
  114 + InputStream isContent = resp.getEntity().getContent();
  115 +
  116 + return Utils.inputStreamToString(isContent);
  117 + }
  118 + } catch (Exception e) {
  119 + e.printStackTrace();
  120 + }
  121 + return null;
  122 + }
  123 +
  124 + @Override
  125 + protected void onPostExecute(String result) {
  126 + mDownloadingDialog.dismiss();
  127 +
  128 + if (result != null) {
  129 + BooksLibraryContainer downloaded = new Gson().fromJson(result,
  130 + BooksLibraryContainer.class);
  131 + mBooksList.setAdapter(new BooksAdapter(getApplicationContext(),
  132 + R.layout.part_book_item, downloaded.books));
  133 + } else {
  134 +
  135 + }
  136 + }
106 137 }
107 138 }
7 src/cz/alenkacz/bookfan/rest/pojo/BooksLibraryContainer.java
... ... @@ -0,0 +1,7 @@
  1 +package cz.alenkacz.bookfan.rest.pojo;
  2 +
  3 +import java.util.List;
  4 +
  5 +public class BooksLibraryContainer {
  6 + public List<LibraryBook> books;
  7 +}
36 src/cz/alenkacz/bookfan/rest/pojo/LibraryBook.java
... ... @@ -0,0 +1,36 @@
  1 +package cz.alenkacz.bookfan.rest.pojo;
  2 +
  3 +public class LibraryBook {
  4 + public String UNI_BOOK_KEY;
  5 + private String BOOK_TITLE;
  6 + private String BOOK_URL_ALIAS;
  7 + private String BOOK_THUMB;
  8 + private String PT_FULL_NAME;
  9 +
  10 + public String getBOOK_TITLE() {
  11 + return BOOK_TITLE;
  12 + }
  13 + public void setBOOK_TITLE(String bOOK_TITLE) {
  14 + BOOK_TITLE = bOOK_TITLE;
  15 + }
  16 + public String getBOOK_URL_ALIAS() {
  17 + return BOOK_URL_ALIAS;
  18 + }
  19 + public void setBOOK_URL_ALIAS(String bOOK_URL_ALIAS) {
  20 + BOOK_URL_ALIAS = bOOK_URL_ALIAS;
  21 + }
  22 + public String getBOOK_THUMB() {
  23 + return BOOK_THUMB;
  24 + }
  25 + public void setBOOK_THUMB(String bOOK_THUMB) {
  26 + BOOK_THUMB = bOOK_THUMB;
  27 + }
  28 + public String getPT_FULL_NAME() {
  29 + return PT_FULL_NAME;
  30 + }
  31 + public void setPT_FULL_NAME(String pT_FULL_NAME) {
  32 + PT_FULL_NAME = pT_FULL_NAME;
  33 + }
  34 +
  35 +
  36 +}
1  src/cz/alenkacz/bookfan/tools/Constants.java
@@ -19,4 +19,5 @@
19 19 public static final String BACKEND_LOGIN_URL = "http://www.bookfan.eu/api/2/login?";
20 20 public static final String BACKEND_BOOK_ADD_URL = "http://www.bookfan.eu/api/2/library/add/";
21 21 public static final String BACKEND_BOOK_FIND_URL = "http://www.bookfan.eu/api/2/search/book?q=";
  22 + public static final String BACKEND_LIBRARY_GET_URL = "http://www.bookfan.eu/api/2/fetch-library/";
22 23 }
7 src/cz/alenkacz/bookfan/tools/Utils.java
@@ -32,6 +32,13 @@ public static String getFBLoginUrl(String token, String salt) {
32 32 return sb.toString();
33 33 }
34 34
  35 + public static String getLibraryGetUrl(String token) {
  36 + StringBuilder sb = new StringBuilder(Constants.BACKEND_LIBRARY_GET_URL);
  37 + sb.append(token);
  38 +
  39 + return sb.toString();
  40 + }
  41 +
35 42 public static String getBookAddUrl(String bookId, String token) {
36 43 StringBuilder sb = new StringBuilder(Constants.BACKEND_BOOK_ADD_URL);
37 44 sb.append(bookId);

No commit comments for this range

Something went wrong with that request. Please try again.