├── res ├── values-v11 │ └── styles.xml ├── values-v14 │ └── styles.xml ├── values │ ├── strings.xml │ ├── styles.xml │ └── ids.xml ├── xml │ └── general_overview_widgetinfo.xml ├── menu │ ├── action_bar_menu_write_message.xml │ ├── action_bar_menu.xml │ └── action_bar_menu_messages.xml └── layout │ ├── action_bar_layout.xml │ ├── general_overview_widget.xml │ └── settings_activity.xml ├── README.md ├── libs └── android-support-v4.jar ├── AndroidManifest.xml ├── .gitignore ├── project.properties ├── proguard-project.txt ├── src └── de │ └── raptor2101 │ └── BattleWorldsKronos │ └── Connector │ └── Gui │ └── Activities │ ├── WriteMessageActivity.java │ ├── GameListingActivity.java │ └── MessageListingActivity.java └── LICENSE /res/values-v11/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | -------------------------------------------------------------------------------- /res/values-v14/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | -------------------------------------------------------------------------------- /res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | BWKConnector.Library.Extended 2 | ============================= 3 | -------------------------------------------------------------------------------- /libs/android-support-v4.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raptor2101/BWKConnector.Library.Extended/master/libs/android-support-v4.jar -------------------------------------------------------------------------------- /res/values/ids.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 5 | 6 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /res/xml/general_overview_widgetinfo.xml: -------------------------------------------------------------------------------- 1 | 9 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # built application files 2 | *.apk 3 | *.ap_ 4 | 5 | # files for the dex VM 6 | *.dex 7 | 8 | # Java class files 9 | *.class 10 | 11 | # generated files 12 | bin/ 13 | gen/ 14 | 15 | # Local configuration file (sdk path, etc) 16 | local.properties 17 | 18 | # Eclipse project files 19 | .classpath 20 | .project 21 | 22 | # Proguard folder generated by Eclipse 23 | proguard/ 24 | 25 | # Intellij project files 26 | *.iml 27 | *.ipr 28 | *.iws 29 | .idea/ 30 | -------------------------------------------------------------------------------- /res/menu/action_bar_menu_write_message.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 12 | 13 | -------------------------------------------------------------------------------- /project.properties: -------------------------------------------------------------------------------- 1 | # This file is automatically generated by Android Tools. 2 | # Do not modify this file -- YOUR CHANGES WILL BE ERASED! 3 | # 4 | # This file must be checked in Version Control Systems. 5 | # 6 | # To customize properties used by the Ant build system edit 7 | # "ant.properties", and override values to adapt the script to your 8 | # project structure. 9 | # 10 | # To enable ProGuard to shrink and obfuscate your code, uncomment this (available properties: sdk.dir, user.home): 11 | #proguard.config=${sdk.dir}/tools/proguard/proguard-android.txt:proguard-project.txt 12 | 13 | # Project target. 14 | target=android-19 15 | android.library=true 16 | android.library.reference.1=../BWKConnector.Library.Base 17 | -------------------------------------------------------------------------------- /res/menu/action_bar_menu.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 12 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /proguard-project.txt: -------------------------------------------------------------------------------- 1 | # To enable ProGuard in your project, edit project.properties 2 | # to define the proguard.config property as described in that file. 3 | # 4 | # Add project specific ProGuard rules here. 5 | # By default, the flags in this file are appended to flags specified 6 | # in ${sdk.dir}/tools/proguard/proguard-android.txt 7 | # You can edit the include path and order by changing the ProGuard 8 | # include property in project.properties. 9 | # 10 | # For more details, see 11 | # http://developer.android.com/guide/developing/tools/proguard.html 12 | 13 | # Add any project specific keep options here: 14 | 15 | # If your project uses WebView with JS, uncomment the following 16 | # and specify the fully qualified class name to the JavaScript interface 17 | # class: 18 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview { 19 | # public *; 20 | #} 21 | -------------------------------------------------------------------------------- /res/menu/action_bar_menu_messages.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 12 | 21 | 30 | 31 | -------------------------------------------------------------------------------- /src/de/raptor2101/BattleWorldsKronos/Connector/Gui/Activities/WriteMessageActivity.java: -------------------------------------------------------------------------------- 1 | package de.raptor2101.BattleWorldsKronos.Connector.Gui.Activities; 2 | 3 | import de.raptor2101.BattleWorldsKronos.Connector.Gui.R; 4 | import android.app.ActionBar; 5 | import android.os.Bundle; 6 | import android.view.Menu; 7 | import android.widget.ProgressBar; 8 | import android.widget.TextView; 9 | 10 | public class WriteMessageActivity extends AbstractWriteMessageActivity { 11 | @Override 12 | protected void onCreate(Bundle savedInstanceState) { 13 | super.onCreate(savedInstanceState); 14 | 15 | ActionBar actionBar = getActionBar(); 16 | actionBar.setCustomView(R.layout.action_bar_layout); 17 | actionBar.setDisplayOptions(ActionBar.DISPLAY_SHOW_CUSTOM); 18 | 19 | TextView textView = (TextView) findViewById(R.id.action_bar_title); 20 | textView.setText(getTitle()); 21 | } 22 | 23 | @Override 24 | public boolean onCreateOptionsMenu(Menu menu){ 25 | getMenuInflater().inflate(R.menu.action_bar_menu_write_message, menu); 26 | return true; 27 | } 28 | 29 | @Override 30 | protected ProgressBar getProgressBar() { 31 | return (ProgressBar) findViewById(R.id.action_bar_progress_bar); 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /res/layout/action_bar_layout.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 12 | 20 | 24 | 29 | 30 | -------------------------------------------------------------------------------- /src/de/raptor2101/BattleWorldsKronos/Connector/Gui/Activities/GameListingActivity.java: -------------------------------------------------------------------------------- 1 | package de.raptor2101.BattleWorldsKronos.Connector.Gui.Activities; 2 | 3 | import android.app.ActionBar; 4 | import android.os.Bundle; 5 | import android.view.Menu; 6 | import android.view.View; 7 | import android.widget.ProgressBar; 8 | import android.widget.TextView; 9 | import de.raptor2101.BattleWorldsKronos.Connector.Gui.R; 10 | 11 | public class GameListingActivity extends AbstractGameListingActivity { 12 | 13 | @Override 14 | protected void onCreate(Bundle savedInstanceState) { 15 | super.onCreate(savedInstanceState); 16 | ActionBar actionBar = getActionBar(); 17 | actionBar.setCustomView(R.layout.action_bar_layout); 18 | actionBar.setDisplayOptions(ActionBar.DISPLAY_SHOW_CUSTOM); 19 | 20 | TextView textView = (TextView) findViewById(R.id.action_bar_title); 21 | textView.setText(R.string.title_activity_games); 22 | } 23 | 24 | @Override 25 | protected ProgressBar getProgressBar() { 26 | return (ProgressBar) findViewById(R.id.action_bar_progress_bar); 27 | } 28 | 29 | @Override 30 | public boolean onCreateOptionsMenu(Menu menu){ 31 | getMenuInflater().inflate(R.menu.action_bar_menu, menu); 32 | return true; 33 | } 34 | 35 | @Override 36 | protected View getTitleImageButton() { 37 | return findViewById(R.id.advanced_title_bar_button); 38 | } 39 | } 40 | -------------------------------------------------------------------------------- /src/de/raptor2101/BattleWorldsKronos/Connector/Gui/Activities/MessageListingActivity.java: -------------------------------------------------------------------------------- 1 | package de.raptor2101.BattleWorldsKronos.Connector.Gui.Activities; 2 | 3 | import de.raptor2101.BattleWorldsKronos.Connector.Data.Entities.Message; 4 | import de.raptor2101.BattleWorldsKronos.Connector.Gui.R; 5 | import android.app.ActionBar; 6 | import android.content.Intent; 7 | import android.os.Bundle; 8 | import android.view.Menu; 9 | import android.view.View; 10 | import android.widget.ProgressBar; 11 | import android.widget.TextView; 12 | 13 | public class MessageListingActivity extends AbstractMessageListingActivity{ 14 | 15 | @Override 16 | protected void onCreate(Bundle savedInstanceState) { 17 | super.onCreate(savedInstanceState); 18 | ActionBar actionBar = getActionBar(); 19 | actionBar.setCustomView(R.layout.action_bar_layout); 20 | actionBar.setDisplayOptions(ActionBar.DISPLAY_SHOW_CUSTOM); 21 | 22 | TextView textView = (TextView) findViewById(R.id.action_bar_title); 23 | textView.setText(getTitle()); 24 | } 25 | 26 | @Override 27 | protected ProgressBar getProgressBar() { 28 | return (ProgressBar) findViewById(R.id.action_bar_progress_bar); 29 | } 30 | 31 | @Override 32 | public boolean onCreateOptionsMenu(Menu menu){ 33 | getMenuInflater().inflate(R.menu.action_bar_menu_messages, menu); 34 | return true; 35 | } 36 | 37 | @Override 38 | protected void startWriteMessageActivity(Message message) { 39 | Intent intent = new Intent(this, WriteMessageActivity.class); 40 | intent.putExtra(WriteMessageActivity.INTENT_EXTRA_MESSAGE_RESPOND_TO, message); 41 | startActivity(intent); 42 | } 43 | 44 | @Override 45 | protected View getTitleImageButton() { 46 | return findViewById(R.id.advanced_title_bar_button); 47 | } 48 | } 49 | -------------------------------------------------------------------------------- /res/layout/general_overview_widget.xml: -------------------------------------------------------------------------------- 1 | 2 | 10 | 11 | 12 | 17 | 22 | 23 | 28 | 33 | 34 | 39 | 44 | 45 | 50 | 55 | -------------------------------------------------------------------------------- /res/layout/settings_activity.xml: -------------------------------------------------------------------------------- 1 | 6 | 7 | 11 | 12 | 18 | 19 | 23 | 24 | 28 | 29 | 34 | 35 | 40 | 41 | 42 | 46 | 47 | 52 | 53 | 58 | 59 | 60 | 66 | 67 | 71 | 72 | 77 | 78 | 83 | 84 | 88 | 89 | 93 | 94 | 98 | 99 |