Skip to content

Commit

Permalink
* small layout tweaks
Browse files Browse the repository at this point in the history
* toolbar overlaid with autohide
  • Loading branch information
fr3ts0n committed Apr 28, 2016
1 parent 57ce850 commit 20a3170
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
1 change: 1 addition & 0 deletions AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
android:allowBackup="true"
android:icon="@drawable/ic_launcher"
android:label="@string/app_name"
android:description="@string/app_description"
android:theme="@style/AppTheme">
<activity
android:name="com.fr3ts0n.ecu.gui.androbd.MainActivity"
Expand Down
3 changes: 2 additions & 1 deletion res/layout/obd_item.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_margin="5dp"
android:layout_marginLeft="5dp"
android:layout_marginRight="5dp"
>

<CheckBox
Expand Down
4 changes: 4 additions & 0 deletions src/com/fr3ts0n/ecu/gui/androbd/MainActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
import android.view.Window;
import android.view.WindowManager;
import android.widget.AdapterView;
import android.widget.ListView;
Expand Down Expand Up @@ -651,6 +652,9 @@ protected void onCreate(Bundle savedInstanceState)
prefs = PreferenceManager.getDefaultSharedPreferences(this);
// register for later changes
prefs.registerOnSharedPreferenceChangeListener(this);
// Overlay feature has to be set before window content is set
if(prefs.getBoolean(PREF_AUTOHIDE,false))
getWindow().requestFeature(Window.FEATURE_ACTION_BAR_OVERLAY);

// set up log4j logging ...
logCfg = new LogConfigurator();
Expand Down

0 comments on commit 20a3170

Please sign in to comment.