diff --git a/android/.classpath b/android/.classpath new file mode 100644 index 0000000..26bdfa6 --- /dev/null +++ b/android/.classpath @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/android/.project b/android/.project new file mode 100644 index 0000000..3792486 --- /dev/null +++ b/android/.project @@ -0,0 +1,34 @@ + + + Bashgid + + + HorizontalListViewLibrary + + + + com.android.ide.eclipse.adt.ResourceManagerBuilder + + + + + com.android.ide.eclipse.adt.PreCompilerBuilder + + + + + org.eclipse.jdt.core.javabuilder + + + + + com.android.ide.eclipse.adt.ApkBuilder + + + + + + com.android.ide.eclipse.adt.AndroidNature + org.eclipse.jdt.core.javanature + + diff --git a/android/.settings/org.eclipse.jdt.core.prefs b/android/.settings/org.eclipse.jdt.core.prefs new file mode 100644 index 0000000..48ab4c6 --- /dev/null +++ b/android/.settings/org.eclipse.jdt.core.prefs @@ -0,0 +1,4 @@ +eclipse.preferences.version=1 +org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.6 +org.eclipse.jdt.core.compiler.compliance=1.6 +org.eclipse.jdt.core.compiler.source=1.6 diff --git a/android/AndroidManifest.xml b/android/AndroidManifest.xml new file mode 100644 index 0000000..f1cf86c --- /dev/null +++ b/android/AndroidManifest.xml @@ -0,0 +1,41 @@ + + + + + + + + + + + + + + + + + + + + + + + diff --git a/android/ic_launcher-web.png b/android/ic_launcher-web.png new file mode 100644 index 0000000..a18cbb4 Binary files /dev/null and b/android/ic_launcher-web.png differ diff --git a/android/libs/android-support-v4.jar b/android/libs/android-support-v4.jar new file mode 100644 index 0000000..c31cede Binary files /dev/null and b/android/libs/android-support-v4.jar differ diff --git a/android/lint.xml b/android/lint.xml new file mode 100644 index 0000000..ee0eead --- /dev/null +++ b/android/lint.xml @@ -0,0 +1,3 @@ + + + \ No newline at end of file diff --git a/android/proguard-project.txt b/android/proguard-project.txt new file mode 100644 index 0000000..f2fe155 --- /dev/null +++ b/android/proguard-project.txt @@ -0,0 +1,20 @@ +# To enable ProGuard in your project, edit project.properties +# to define the proguard.config property as described in that file. +# +# Add project specific ProGuard rules here. +# By default, the flags in this file are appended to flags specified +# in ${sdk.dir}/tools/proguard/proguard-android.txt +# You can edit the include path and order by changing the ProGuard +# include property in project.properties. +# +# For more details, see +# http://developer.android.com/guide/developing/tools/proguard.html + +# Add any project specific keep options here: + +# If your project uses WebView with JS, uncomment the following +# and specify the fully qualified class name to the JavaScript interface +# class: +#-keepclassmembers class fqcn.of.javascript.interface.for.webview { +# public *; +#} diff --git a/android/project.properties b/android/project.properties new file mode 100644 index 0000000..cac0d3f --- /dev/null +++ b/android/project.properties @@ -0,0 +1,15 @@ +# This file is automatically generated by Android Tools. +# Do not modify this file -- YOUR CHANGES WILL BE ERASED! +# +# This file must be checked in Version Control Systems. +# +# To customize properties used by the Ant build system edit +# "ant.properties", and override values to adapt the script to your +# project structure. +# +# To enable ProGuard to shrink and obfuscate your code, uncomment this (available properties: sdk.dir, user.home): +#proguard.config=${sdk.dir}/tools/proguard/proguard-android.txt:proguard-project.txt + +# Project target. +target=android-20 +android.library.reference.1=../appcompat_v7 diff --git a/android/res/animator/language_flag_in.xml b/android/res/animator/language_flag_in.xml new file mode 100644 index 0000000..afc08f8 --- /dev/null +++ b/android/res/animator/language_flag_in.xml @@ -0,0 +1,12 @@ + + + + + + + diff --git a/android/res/drawable-hdpi/drawer_shadow.9.png b/android/res/drawable-hdpi/drawer_shadow.9.png new file mode 100644 index 0000000..236bff5 Binary files /dev/null and b/android/res/drawable-hdpi/drawer_shadow.9.png differ diff --git a/android/res/drawable-hdpi/ic_drawer.png b/android/res/drawable-hdpi/ic_drawer.png new file mode 100644 index 0000000..c59f601 Binary files /dev/null and b/android/res/drawable-hdpi/ic_drawer.png differ diff --git a/android/res/drawable-hdpi/ic_launcher.png b/android/res/drawable-hdpi/ic_launcher.png new file mode 100644 index 0000000..288b665 Binary files /dev/null and b/android/res/drawable-hdpi/ic_launcher.png differ diff --git a/android/res/drawable-mdpi/drawer_shadow.9.png b/android/res/drawable-mdpi/drawer_shadow.9.png new file mode 100644 index 0000000..ffe3a28 Binary files /dev/null and b/android/res/drawable-mdpi/drawer_shadow.9.png differ diff --git a/android/res/drawable-mdpi/ic_drawer.png b/android/res/drawable-mdpi/ic_drawer.png new file mode 100644 index 0000000..1ed2c56 Binary files /dev/null and b/android/res/drawable-mdpi/ic_drawer.png differ diff --git a/android/res/drawable-mdpi/ic_launcher.png b/android/res/drawable-mdpi/ic_launcher.png new file mode 100644 index 0000000..6ae570b Binary files /dev/null and b/android/res/drawable-mdpi/ic_launcher.png differ diff --git a/android/res/drawable-xhdpi/drawer_shadow.9.png b/android/res/drawable-xhdpi/drawer_shadow.9.png new file mode 100644 index 0000000..fabe9d9 Binary files /dev/null and b/android/res/drawable-xhdpi/drawer_shadow.9.png differ diff --git a/android/res/drawable-xhdpi/ic_drawer.png b/android/res/drawable-xhdpi/ic_drawer.png new file mode 100644 index 0000000..a5fa74d Binary files /dev/null and b/android/res/drawable-xhdpi/ic_drawer.png differ diff --git a/android/res/drawable-xhdpi/ic_launcher.png b/android/res/drawable-xhdpi/ic_launcher.png new file mode 100644 index 0000000..d4fb7cd Binary files /dev/null and b/android/res/drawable-xhdpi/ic_launcher.png differ diff --git a/android/res/drawable-xxhdpi/drawer_shadow.9.png b/android/res/drawable-xxhdpi/drawer_shadow.9.png new file mode 100644 index 0000000..b91e9d7 Binary files /dev/null and b/android/res/drawable-xxhdpi/drawer_shadow.9.png differ diff --git a/android/res/drawable-xxhdpi/ic_drawer.png b/android/res/drawable-xxhdpi/ic_drawer.png new file mode 100644 index 0000000..9c4685d Binary files /dev/null and b/android/res/drawable-xxhdpi/ic_drawer.png differ diff --git a/android/res/drawable-xxhdpi/ic_launcher.png b/android/res/drawable-xxhdpi/ic_launcher.png new file mode 100644 index 0000000..85a6081 Binary files /dev/null and b/android/res/drawable-xxhdpi/ic_launcher.png differ diff --git a/android/res/drawable/background.png b/android/res/drawable/background.png new file mode 100644 index 0000000..7d139e6 Binary files /dev/null and b/android/res/drawable/background.png differ diff --git a/android/res/drawable/china_icon.png b/android/res/drawable/china_icon.png new file mode 100644 index 0000000..5050f54 Binary files /dev/null and b/android/res/drawable/china_icon.png differ diff --git a/android/res/drawable/china_icon_button.xml b/android/res/drawable/china_icon_button.xml new file mode 100644 index 0000000..7322353 --- /dev/null +++ b/android/res/drawable/china_icon_button.xml @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/android/res/drawable/china_icon_darken.png b/android/res/drawable/china_icon_darken.png new file mode 100644 index 0000000..143483e Binary files /dev/null and b/android/res/drawable/china_icon_darken.png differ diff --git a/android/res/drawable/h_line.png b/android/res/drawable/h_line.png new file mode 100644 index 0000000..d56d99e Binary files /dev/null and b/android/res/drawable/h_line.png differ diff --git a/android/res/drawable/logo.png b/android/res/drawable/logo.png new file mode 100644 index 0000000..d7fe201 Binary files /dev/null and b/android/res/drawable/logo.png differ diff --git a/android/res/drawable/russia_icon.png b/android/res/drawable/russia_icon.png new file mode 100644 index 0000000..c3747f7 Binary files /dev/null and b/android/res/drawable/russia_icon.png differ diff --git a/android/res/drawable/russia_icon_button.xml b/android/res/drawable/russia_icon_button.xml new file mode 100644 index 0000000..a958f91 --- /dev/null +++ b/android/res/drawable/russia_icon_button.xml @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/android/res/drawable/russia_icon_darken.png b/android/res/drawable/russia_icon_darken.png new file mode 100644 index 0000000..3ce3362 Binary files /dev/null and b/android/res/drawable/russia_icon_darken.png differ diff --git a/android/res/drawable/transparent.png b/android/res/drawable/transparent.png new file mode 100644 index 0000000..bd5feb1 Binary files /dev/null and b/android/res/drawable/transparent.png differ diff --git a/android/res/drawable/united_states_icon.png b/android/res/drawable/united_states_icon.png new file mode 100644 index 0000000..9506482 Binary files /dev/null and b/android/res/drawable/united_states_icon.png differ diff --git a/android/res/drawable/united_states_icon_button.xml b/android/res/drawable/united_states_icon_button.xml new file mode 100644 index 0000000..5e2cda8 --- /dev/null +++ b/android/res/drawable/united_states_icon_button.xml @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/android/res/drawable/united_states_icon_darken.png b/android/res/drawable/united_states_icon_darken.png new file mode 100644 index 0000000..d478e78 Binary files /dev/null and b/android/res/drawable/united_states_icon_darken.png differ diff --git a/android/res/layout/activity_main.xml b/android/res/layout/activity_main.xml new file mode 100644 index 0000000..3c05411 --- /dev/null +++ b/android/res/layout/activity_main.xml @@ -0,0 +1,6 @@ + + + \ No newline at end of file diff --git a/android/res/layout/fragment_main.xml b/android/res/layout/fragment_main.xml new file mode 100644 index 0000000..af517cd --- /dev/null +++ b/android/res/layout/fragment_main.xml @@ -0,0 +1,28 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/android/res/layout/fragment_main_page.xml b/android/res/layout/fragment_main_page.xml new file mode 100644 index 0000000..2903e99 --- /dev/null +++ b/android/res/layout/fragment_main_page.xml @@ -0,0 +1,19 @@ + + + + + + diff --git a/android/res/layout/fragment_welcome.xml b/android/res/layout/fragment_welcome.xml new file mode 100644 index 0000000..a437ebc --- /dev/null +++ b/android/res/layout/fragment_welcome.xml @@ -0,0 +1,69 @@ + + + + + + + + + + + + + + + + diff --git a/android/res/layout/teaser_list_element.xml b/android/res/layout/teaser_list_element.xml new file mode 100644 index 0000000..7998428 --- /dev/null +++ b/android/res/layout/teaser_list_element.xml @@ -0,0 +1,107 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/android/res/menu/global.xml b/android/res/menu/global.xml new file mode 100644 index 0000000..9e8236e --- /dev/null +++ b/android/res/menu/global.xml @@ -0,0 +1,10 @@ + + + + + diff --git a/android/res/menu/main.xml b/android/res/menu/main.xml new file mode 100644 index 0000000..69d1953 --- /dev/null +++ b/android/res/menu/main.xml @@ -0,0 +1,16 @@ + + + + + + diff --git a/android/res/values-v11/styles.xml b/android/res/values-v11/styles.xml new file mode 100644 index 0000000..6dfb113 --- /dev/null +++ b/android/res/values-v11/styles.xml @@ -0,0 +1,11 @@ + + + + + + diff --git a/android/res/values-v14/styles.xml b/android/res/values-v14/styles.xml new file mode 100644 index 0000000..0d6721c --- /dev/null +++ b/android/res/values-v14/styles.xml @@ -0,0 +1,12 @@ + + + + + + diff --git a/android/res/values-w820dp/dimens.xml b/android/res/values-w820dp/dimens.xml new file mode 100644 index 0000000..f9f069f --- /dev/null +++ b/android/res/values-w820dp/dimens.xml @@ -0,0 +1,10 @@ + + + + 64dp + + diff --git a/android/res/values/colors.xml b/android/res/values/colors.xml new file mode 100644 index 0000000..9983ad5 --- /dev/null +++ b/android/res/values/colors.xml @@ -0,0 +1,13 @@ + + + + Bashgid + + +#60E0E0E0 + +#60d0d0d0 + + + + diff --git a/android/res/values/dimens.xml b/android/res/values/dimens.xml new file mode 100644 index 0000000..1ea857e --- /dev/null +++ b/android/res/values/dimens.xml @@ -0,0 +1,13 @@ + + + + 16dp + 16dp + + + 240dp + + diff --git a/android/res/values/integers.xml b/android/res/values/integers.xml new file mode 100644 index 0000000..abff865 --- /dev/null +++ b/android/res/values/integers.xml @@ -0,0 +1,5 @@ + + + + 500 + diff --git a/android/res/values/strings.xml b/android/res/values/strings.xml new file mode 100644 index 0000000..679d4cd --- /dev/null +++ b/android/res/values/strings.xml @@ -0,0 +1,23 @@ + + + + Bashgid + Section 1 + Section 2 + Section 3 + Open navigation drawer + Close navigation drawer + Example action + Settings + + English + Russian + Chinese + + + + + Coat of Bashkortostan + + + diff --git a/android/res/values/styles.xml b/android/res/values/styles.xml new file mode 100644 index 0000000..60a7e68 --- /dev/null +++ b/android/res/values/styles.xml @@ -0,0 +1,20 @@ + + + + + + + + + diff --git a/android/src/fishrungames/bashgid/MainActivity.java b/android/src/fishrungames/bashgid/MainActivity.java new file mode 100644 index 0000000..345ed96 --- /dev/null +++ b/android/src/fishrungames/bashgid/MainActivity.java @@ -0,0 +1,89 @@ +package fishrungames.bashgid; + +import android.app.Activity; +import android.support.v7.app.ActionBarActivity; +import android.support.v7.app.ActionBar; +import android.support.v4.app.Fragment; +import android.support.v4.app.FragmentManager; +import android.content.Context; +import android.content.Intent; +import android.os.Build; +import android.os.Bundle; +import android.view.Gravity; +import android.view.LayoutInflater; +import android.view.Menu; +import android.view.MenuItem; +import android.view.View; +import android.view.ViewGroup; +import android.support.v4.widget.DrawerLayout; +import android.widget.ArrayAdapter; +import android.widget.TextView; + + +public class MainActivity extends ActionBarActivity { + + + @Override + protected void onCreate(Bundle savedInstanceState) { + super.onCreate(savedInstanceState); + + setContentView(R.layout.activity_main); + + + getSupportActionBar().hide(); + + getSupportFragmentManager().beginTransaction().add(R.id.fragment_proto_container, new WelcomeFragment()).commit(); + + + } + + + + public void OnSelectEnglish(View view) + { + OpenMainScreen(); + } + + public void OnSelectRussian(View view) + { + OpenMainScreen(); + } + + public void OnSelectChinese(View view) + { + OpenMainScreen(); + } + + public void OpenMainScreen() + { + + getSupportActionBar().show(); + + getSupportFragmentManager().beginTransaction().replace(R.id.fragment_proto_container, new MainFragment()).commit(); + + getSupportFragmentManager().beginTransaction().add(R.id.fragment_container, new MainPageFragment()).commit(); + + + } + + + @Override + public boolean onCreateOptionsMenu(Menu menu) { + + return super.onCreateOptionsMenu(menu); + } + + @Override + public boolean onOptionsItemSelected(MenuItem item) { + // Handle action bar item clicks here. The action bar will + // automatically handle clicks on the Home/Up button, so long + // as you specify a parent activity in AndroidManifest.xml. + int id = item.getItemId(); + if (id == R.id.action_settings) { + return true; + } + return super.onOptionsItemSelected(item); + } + + +} diff --git a/android/src/fishrungames/bashgid/MainFragment.java b/android/src/fishrungames/bashgid/MainFragment.java new file mode 100644 index 0000000..3f784c0 --- /dev/null +++ b/android/src/fishrungames/bashgid/MainFragment.java @@ -0,0 +1,17 @@ +package fishrungames.bashgid; + +import android.os.Bundle; +import android.support.v4.app.Fragment; +import android.view.LayoutInflater; +import android.view.View; +import android.view.ViewGroup; + +public class MainFragment extends Fragment { + + @Override + public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { + View rootView = inflater.inflate(R.layout.fragment_main, container, false); + + return rootView; + } +} diff --git a/android/src/fishrungames/bashgid/MainPageFragment.java b/android/src/fishrungames/bashgid/MainPageFragment.java new file mode 100644 index 0000000..46553bd --- /dev/null +++ b/android/src/fishrungames/bashgid/MainPageFragment.java @@ -0,0 +1,65 @@ +package fishrungames.bashgid; + +import android.content.Context; +import android.os.Bundle; +import android.support.v4.app.Fragment; +import android.view.LayoutInflater; +import android.view.View; +import android.view.ViewGroup; +import android.widget.BaseAdapter; +import android.widget.ListView; + +public class MainPageFragment extends Fragment { + + ListView teaserListView; + + @Override + public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { + View rootView = inflater.inflate(R.layout.fragment_main_page, container, false); + + + teaserListView = (ListView) rootView.findViewById(R.id.teaserListView); + + teaserListView.setAdapter(new SlideListAdapter(getActivity())); + + return rootView; + } + + + public class SlideListAdapter extends BaseAdapter { + private Context mContext; + + public SlideListAdapter(Context c) { + mContext = c; + } + + public int getCount() { + return 7; + } + + public Object getItem(int position) { + return null; + } + + public long getItemId(int position) { + return 0; + } + + // create a new ImageView for each item referenced by the Adapter + public View getView(int position, View convertView, ViewGroup parent) { + + + View view; + if (convertView == null) { // if it's not recycled, initialize some attributes + LayoutInflater inflater = (LayoutInflater) mContext.getSystemService(Context.LAYOUT_INFLATER_SERVICE); + view = inflater.inflate(R.layout.teaser_list_element, null); + } else { + view = convertView; + } + + + return view; + } + + } +} diff --git a/android/src/fishrungames/bashgid/WelcomeFragment.java b/android/src/fishrungames/bashgid/WelcomeFragment.java new file mode 100644 index 0000000..b209e0c --- /dev/null +++ b/android/src/fishrungames/bashgid/WelcomeFragment.java @@ -0,0 +1,16 @@ +package fishrungames.bashgid; + +import android.os.Bundle; +import android.support.v4.app.Fragment; +import android.view.LayoutInflater; +import android.view.View; +import android.view.ViewGroup; + +public class WelcomeFragment extends Fragment { + + @Override + public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { + View rootView = inflater.inflate(R.layout.fragment_welcome, container, false); + return rootView; + } +}