mirror of
https://github.com/ankidroid/Anki-Android.git
synced 2024-09-20 12:02:16 +02:00
Removed status bar from all activities.
This commit is contained in:
parent
99092c7487
commit
0a8dd0d727
BIN
res/drawable-hdpi/ic_menu_archive.png
Normal file
BIN
res/drawable-hdpi/ic_menu_archive.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 2.0 KiB |
BIN
res/drawable-hdpi/ic_menu_download.png
Normal file
BIN
res/drawable-hdpi/ic_menu_download.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 3.4 KiB |
BIN
res/drawable-hdpi/ic_menu_refresh.png
Normal file
BIN
res/drawable-hdpi/ic_menu_refresh.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 4.1 KiB |
BIN
res/drawable-mdpi/ic_menu_archive.png
Normal file
BIN
res/drawable-mdpi/ic_menu_archive.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.3 KiB |
BIN
res/drawable-mdpi/ic_menu_download.png
Normal file
BIN
res/drawable-mdpi/ic_menu_download.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 2.8 KiB |
BIN
res/drawable-mdpi/ic_menu_refresh.png
Normal file
BIN
res/drawable-mdpi/ic_menu_refresh.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 2.4 KiB |
@ -46,67 +46,76 @@
|
||||
</FrameLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/remembered_layout"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content">
|
||||
<EditText android:id="@+id/answer_field"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical"
|
||||
android:background="#ffffff">
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/remembered_layout"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:maxLines="2"/>
|
||||
<Button
|
||||
android:id="@+id/ease1"
|
||||
android:padding="3dip"
|
||||
android:layout_height="wrap_content">
|
||||
<EditText android:id="@+id/answer_field"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:maxLines="2"/>
|
||||
<Button
|
||||
android:id="@+id/ease1"
|
||||
android:padding="3dip"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_weight="1.2"
|
||||
android:layout_height="fill_parent"
|
||||
android:text="@string/again" />
|
||||
<Button
|
||||
android:id="@+id/ease2"
|
||||
android:padding="3dip"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_weight="1.2"
|
||||
android:layout_height="fill_parent"
|
||||
android:text="@string/hard" />
|
||||
<Button
|
||||
android:id="@+id/ease3"
|
||||
android:padding="3dip"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_weight="1.2"
|
||||
android:layout_height="fill_parent"
|
||||
android:text="@string/good" />
|
||||
<Button
|
||||
android:id="@+id/ease4"
|
||||
android:padding="3dip"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_weight="1.2"
|
||||
android:layout_height="fill_parent"
|
||||
android:text="@string/easy" />
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/chrono_buttons_layout"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_weight="1.2"
|
||||
android:layout_height="fill_parent"
|
||||
android:text="@string/again" />
|
||||
<Button
|
||||
android:id="@+id/ease2"
|
||||
android:padding="3dip"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_weight="1.2"
|
||||
android:layout_height="fill_parent"
|
||||
android:text="@string/hard" />
|
||||
<Button
|
||||
android:id="@+id/ease3"
|
||||
android:padding="3dip"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_weight="1.2"
|
||||
android:layout_height="fill_parent"
|
||||
android:text="@string/good" />
|
||||
<Button
|
||||
android:id="@+id/ease4"
|
||||
android:padding="3dip"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_weight="1.2"
|
||||
android:layout_height="fill_parent"
|
||||
android:text="@string/easy" />
|
||||
</LinearLayout>
|
||||
android:layout_height="wrap_content">
|
||||
<ToggleButton
|
||||
android:id="@+id/toggle_overlay"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_weight="1.2"
|
||||
android:layout_height="fill_parent"
|
||||
android:textOn="@string/overlay_on"
|
||||
android:textOff="@string/overlay_off" />
|
||||
<ToggleButton
|
||||
android:id="@+id/flip_card"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="fill_parent"
|
||||
android:layout_weight="1.2"
|
||||
android:background="@android:drawable/btn_default_small"
|
||||
android:textOn="@string/show_question"
|
||||
android:textOff="@string/show_answer" />
|
||||
<Chronometer
|
||||
android:id="@+id/card_time"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_weight="1"
|
||||
android:layout_height="fill_parent"
|
||||
android:gravity="center_vertical|center_horizontal"
|
||||
android:textColor="#000000" />
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/chrono_buttons_layout"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content">
|
||||
<ToggleButton
|
||||
android:id="@+id/toggle_overlay"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_weight="1.2"
|
||||
android:layout_height="fill_parent"
|
||||
android:textOn="@string/overlay_on"
|
||||
android:textOff="@string/overlay_off" />
|
||||
<ToggleButton
|
||||
android:id="@+id/flip_card"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="fill_parent"
|
||||
android:layout_weight="1.2"
|
||||
android:background="@android:drawable/btn_default_small"
|
||||
android:textOn="@string/show_question"
|
||||
android:textOff="@string/show_answer" />
|
||||
<Chronometer
|
||||
android:id="@+id/card_time"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_weight="1"
|
||||
android:layout_height="fill_parent"
|
||||
android:gravity="center_vertical|center_horizontal" />
|
||||
</LinearLayout>
|
||||
</LinearLayout>
|
||||
|
@ -19,6 +19,7 @@ package com.ichi2.anki;
|
||||
import android.app.Activity;
|
||||
import android.database.SQLException;
|
||||
import android.os.Bundle;
|
||||
import android.view.WindowManager;
|
||||
import android.webkit.WebView;
|
||||
|
||||
/**
|
||||
@ -28,9 +29,13 @@ public class About extends Activity
|
||||
{
|
||||
|
||||
@Override
|
||||
public void onCreate(Bundle savedInstanceState) throws SQLException
|
||||
public void onCreate(Bundle savedInstanceState) throws SQLException
|
||||
{
|
||||
super.onCreate(savedInstanceState);
|
||||
// Remove the status bar and make title bar progress available
|
||||
getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN);
|
||||
//requestWindowFeature(Window.FEATURE_INDETERMINATE_PROGRESS);
|
||||
|
||||
setContentView(R.layout.about);
|
||||
WebView webview = (WebView) findViewById(R.id.about);
|
||||
webview.loadDataWithBaseURL("", getResources().getString(R.string.about_content), "text/html", "utf-8", null);
|
||||
|
@ -181,7 +181,7 @@ public class AnkiDroidProxy {
|
||||
|
||||
public String getDecks()
|
||||
{
|
||||
Log.i(TAG, "user = " + username + ", password = " + password);
|
||||
Log.i(TAG, "getDecks - user = " + username + ", password = " + password);
|
||||
String decksServer = "{}";
|
||||
|
||||
try {
|
||||
@ -201,7 +201,7 @@ public class AnkiDroidProxy {
|
||||
InputStream content = entityResponse.getContent();
|
||||
Log.i(TAG, "Content = " + content.toString());
|
||||
decksServer = Utils.convertStreamToString(new InflaterInputStream(content));
|
||||
Log.i(TAG, "String content = " + decks);
|
||||
Log.i(TAG, "String content = " + decksServer);
|
||||
|
||||
} catch (UnsupportedEncodingException e) {
|
||||
e.printStackTrace();
|
||||
|
@ -8,6 +8,8 @@ import android.app.Activity;
|
||||
import android.content.Context;
|
||||
import android.os.Bundle;
|
||||
import android.view.View;
|
||||
import android.view.Window;
|
||||
import android.view.WindowManager;
|
||||
import android.widget.Button;
|
||||
import android.widget.EditText;
|
||||
import android.widget.LinearLayout;
|
||||
@ -44,6 +46,10 @@ public class CardEditor extends Activity {
|
||||
protected void onCreate(Bundle savedInstanceState) {
|
||||
// TODO Auto-generated method stub
|
||||
super.onCreate(savedInstanceState);
|
||||
//Remove the status bar and make title bar progress available
|
||||
getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN);
|
||||
//requestWindowFeature(Window.FEATURE_INDETERMINATE_PROGRESS);
|
||||
|
||||
setContentView(R.layout.card_editor);
|
||||
|
||||
fieldsLayoutContainer = (LinearLayout) findViewById(R.id.CardEditorEditFieldsLayout);
|
||||
|
@ -44,6 +44,8 @@ import android.os.Message;
|
||||
import android.preference.PreferenceManager;
|
||||
import android.util.Log;
|
||||
import android.view.View;
|
||||
import android.view.Window;
|
||||
import android.view.WindowManager;
|
||||
import android.widget.AdapterView;
|
||||
import android.widget.ListView;
|
||||
import android.widget.ProgressBar;
|
||||
@ -99,6 +101,10 @@ public class DeckPicker extends Activity implements Runnable
|
||||
Log.i(TAG, "DeckPicker - onCreate");
|
||||
super.onCreate(savedInstanceState);
|
||||
|
||||
// Remove the status bar and make title bar progress available
|
||||
getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN);
|
||||
requestWindowFeature(Window.FEATURE_INDETERMINATE_PROGRESS);
|
||||
|
||||
registerExternalStorageListener();
|
||||
|
||||
mSelf = this;
|
||||
|
@ -30,6 +30,8 @@ import android.preference.CheckBoxPreference;
|
||||
import android.preference.Preference;
|
||||
import android.preference.PreferenceActivity;
|
||||
import android.util.Log;
|
||||
import android.view.Window;
|
||||
import android.view.WindowManager;
|
||||
|
||||
/**
|
||||
* Preferences for the current deck.
|
||||
@ -236,6 +238,10 @@ public class DeckPreferences extends PreferenceActivity implements OnSharedPrefe
|
||||
}
|
||||
else
|
||||
{
|
||||
// Remove the status bar and make title bar progress available
|
||||
getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN);
|
||||
//requestWindowFeature(Window.FEATURE_INDETERMINATE_PROGRESS);
|
||||
|
||||
this.pref = new DeckPreferenceHack();
|
||||
this.pref.registerOnSharedPreferenceChangeListener( this );
|
||||
|
||||
|
@ -14,6 +14,8 @@ import android.preference.CheckBoxPreference;
|
||||
import android.preference.Preference;
|
||||
import android.preference.PreferenceActivity;
|
||||
import android.util.Log;
|
||||
import android.view.Window;
|
||||
import android.view.WindowManager;
|
||||
|
||||
public class DeckProperties extends PreferenceActivity implements OnSharedPreferenceChangeListener {
|
||||
|
||||
@ -206,6 +208,10 @@ public class DeckProperties extends PreferenceActivity implements OnSharedPrefer
|
||||
}
|
||||
else
|
||||
{
|
||||
// Remove the status bar and make title bar progress available
|
||||
getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN);
|
||||
//requestWindowFeature(Window.FEATURE_INDETERMINATE_PROGRESS);
|
||||
|
||||
this.pref = new DeckPreferenceHack();
|
||||
this.pref.registerOnSharedPreferenceChangeListener( this );
|
||||
|
||||
|
@ -11,6 +11,8 @@ import android.content.SharedPreferences;
|
||||
import android.content.res.Resources;
|
||||
import android.os.Bundle;
|
||||
import android.view.View;
|
||||
import android.view.Window;
|
||||
import android.view.WindowManager;
|
||||
import android.widget.AdapterView;
|
||||
import android.widget.ArrayAdapter;
|
||||
import android.widget.ListView;
|
||||
@ -40,6 +42,11 @@ public class PersonalDeckPicker extends Activity {
|
||||
@Override
|
||||
protected void onCreate(Bundle savedInstanceState) {
|
||||
super.onCreate(savedInstanceState);
|
||||
|
||||
// Remove the status bar and make title bar progress available
|
||||
getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN);
|
||||
//requestWindowFeature(Window.FEATURE_INDETERMINATE_PROGRESS);
|
||||
|
||||
setContentView(R.layout.main);
|
||||
|
||||
initAlertDialogs();
|
||||
|
@ -19,6 +19,8 @@ package com.ichi2.anki;
|
||||
import android.content.Intent;
|
||||
import android.os.Bundle;
|
||||
import android.preference.PreferenceActivity;
|
||||
import android.view.Window;
|
||||
import android.view.WindowManager;
|
||||
|
||||
import com.tomgibara.android.veecheck.Veecheck;
|
||||
import com.tomgibara.android.veecheck.util.PrefSettings;
|
||||
@ -33,6 +35,11 @@ public class Preferences extends PreferenceActivity
|
||||
protected void onCreate(Bundle savedInstanceState)
|
||||
{
|
||||
super.onCreate(savedInstanceState);
|
||||
|
||||
// Remove the status bar and make title bar progress available
|
||||
getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN);
|
||||
//requestWindowFeature(Window.FEATURE_INDETERMINATE_PROGRESS);
|
||||
|
||||
getPreferenceManager().setSharedPreferencesName(PrefSettings.SHARED_PREFS_NAME);
|
||||
addPreferencesFromResource(R.layout.preferences);
|
||||
}
|
||||
|
@ -10,6 +10,8 @@ import android.content.Intent;
|
||||
import android.content.res.Resources;
|
||||
import android.os.Bundle;
|
||||
import android.view.View;
|
||||
import android.view.Window;
|
||||
import android.view.WindowManager;
|
||||
import android.widget.AdapterView;
|
||||
import android.widget.ListView;
|
||||
import android.widget.SimpleAdapter;
|
||||
@ -35,6 +37,11 @@ public class SharedDeckPicker extends Activity {
|
||||
@Override
|
||||
protected void onCreate(Bundle savedInstanceState) {
|
||||
super.onCreate(savedInstanceState);
|
||||
|
||||
// Remove the status bar and make title bar progress available
|
||||
getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN);
|
||||
//requestWindowFeature(Window.FEATURE_INDETERMINATE_PROGRESS);
|
||||
|
||||
setContentView(R.layout.main);
|
||||
|
||||
initAlertDialogs();
|
||||
|
Loading…
Reference in New Issue
Block a user