diff --git a/res/drawable-hdpi/ic_action_plus.png b/res/drawable-hdpi/ic_action_plus.png new file mode 100644 index 0000000..aa7cf4f Binary files /dev/null and b/res/drawable-hdpi/ic_action_plus.png differ diff --git a/res/drawable-hdpi/ic_action_star.png b/res/drawable-hdpi/ic_action_star.png new file mode 100644 index 0000000..7ce1a0e Binary files /dev/null and b/res/drawable-hdpi/ic_action_star.png differ diff --git a/res/drawable-mdpi/ic_action_plus.png b/res/drawable-mdpi/ic_action_plus.png new file mode 100644 index 0000000..99b189a Binary files /dev/null and b/res/drawable-mdpi/ic_action_plus.png differ diff --git a/res/drawable-mdpi/ic_action_star.png b/res/drawable-mdpi/ic_action_star.png new file mode 100644 index 0000000..11e628d Binary files /dev/null and b/res/drawable-mdpi/ic_action_star.png differ diff --git a/res/drawable-xhdpi/ic_action_plus.png b/res/drawable-xhdpi/ic_action_plus.png new file mode 100644 index 0000000..9d6af04 Binary files /dev/null and b/res/drawable-xhdpi/ic_action_plus.png differ diff --git a/res/drawable-xhdpi/ic_action_star.png b/res/drawable-xhdpi/ic_action_star.png new file mode 100644 index 0000000..6e55497 Binary files /dev/null and b/res/drawable-xhdpi/ic_action_star.png differ diff --git a/res/drawable-xxhdpi/ic_action_plus.png b/res/drawable-xxhdpi/ic_action_plus.png new file mode 100644 index 0000000..3ec4d3a Binary files /dev/null and b/res/drawable-xxhdpi/ic_action_plus.png differ diff --git a/res/drawable-xxhdpi/ic_action_star.png b/res/drawable-xxhdpi/ic_action_star.png new file mode 100644 index 0000000..17cb4c8 Binary files /dev/null and b/res/drawable-xxhdpi/ic_action_star.png differ diff --git a/res/layout/activity_main.xml b/res/layout/activity_main.xml index 0b9f4ec..47a4fa5 100644 --- a/res/layout/activity_main.xml +++ b/res/layout/activity_main.xml @@ -1,6 +1,4 @@ - + - - - - - - - + android:orientation="horizontal" > + + + + + + + android:dividerHeight="1dp" + android:listSelector="@drawable/list_bg" /> - - + android:orientation="horizontal" > + + + + + + + android:dividerHeight="1dp" + android:listSelector="@drawable/list_bg" /> diff --git a/res/layout/bookmark_list_item.xml b/res/layout/bookmark_list_item.xml index 3d50ec2..66c4f60 100644 --- a/res/layout/bookmark_list_item.xml +++ b/res/layout/bookmark_list_item.xml @@ -23,6 +23,7 @@ android:layout_width="match_parent" android:layout_height="wrap_content" android:gravity="center_vertical" + android:fontFamily="sans-serif-light" android:maxLines="1" android:minHeight="?android:attr/listPreferredItemHeightSmall" android:paddingRight="4dp" diff --git a/res/layout/tab_list_item.xml b/res/layout/tab_list_item.xml index d1001c4..bbc13a0 100644 --- a/res/layout/tab_list_item.xml +++ b/res/layout/tab_list_item.xml @@ -2,20 +2,20 @@ @@ -24,11 +24,12 @@ android:id="@+id/text1" android:layout_width="match_parent" android:layout_height="wrap_content" - android:gravity="center_vertical" android:layout_centerVertical="true" - android:maxLines="1" - android:layout_toRightOf="@+id/favicon1" android:layout_toLeftOf="@+id/delete1" + android:layout_toRightOf="@+id/favicon1" + android:fontFamily="sans-serif-light" + android:gravity="center_vertical" + android:maxLines="1" android:minHeight="?android:attr/listPreferredItemHeightSmall" android:textAppearance="?android:attr/textAppearanceListItemSmall" android:textColor="@color/dark_text" /> @@ -36,15 +37,15 @@ diff --git a/res/values/styles.xml b/res/values/styles.xml index 8f0214d..265d017 100644 --- a/res/values/styles.xml +++ b/res/values/styles.xml @@ -43,6 +43,7 @@ \ No newline at end of file diff --git a/src/acr/browser/lightning/BrowserActivity.java b/src/acr/browser/lightning/BrowserActivity.java index 21fe602..f563b90 100644 --- a/src/acr/browser/lightning/BrowserActivity.java +++ b/src/acr/browser/lightning/BrowserActivity.java @@ -107,7 +107,7 @@ public class BrowserActivity extends Activity implements BrowserController { private RelativeLayout mDrawer; private LinearLayout mDrawerRight; private ListView mDrawerListRight; - private TextView mNewTab; + private RelativeLayout mNewTab; private ActionBarDrawerToggle mDrawerToggle; private List mWebViews = new ArrayList(); private List mIdList = new ArrayList(); @@ -187,7 +187,7 @@ public class BrowserActivity extends Activity implements BrowserController { mBrowserFrame = (FrameLayout) findViewById(R.id.content_frame); mProgress = (ProgressBar) findViewById(R.id.activity_bar); mProgress.setVisibility(View.GONE); - mNewTab = (TextView) findViewById(R.id.new_tab_button); + mNewTab = (RelativeLayout) findViewById(R.id.new_tab_button); mDrawer = (RelativeLayout) findViewById(R.id.drawer); mDrawerLayout = (DrawerLayout) findViewById(R.id.drawer_layout); mDrawerList = (ListView) findViewById(R.id.left_drawer); @@ -850,7 +850,15 @@ public class BrowserActivity extends Activity implements BrowserController { if (mCurrentView != null) { mCurrentView.loadUrl(mBookmarkList.get(position).getUrl()); } - mDrawerLayout.closeDrawer(mDrawerRight); + // keep any jank from happening when the drawer is closed after the + // URL starts to load + final Handler handler = new Handler(); + handler.postDelayed(new Runnable() { + @Override + public void run() { + mDrawerLayout.closeDrawer(mDrawerRight); + } + }, 150); } } @@ -1050,10 +1058,10 @@ public class BrowserActivity extends Activity implements BrowserController { mDrawerList.setItemChecked(position, true); showTab(mWebViews.get(position)); - - //Use a delayed handler to make the transition smooth - //otherwise it will get caught up with the showTab code - //and cause a janky motion + + // Use a delayed handler to make the transition smooth + // otherwise it will get caught up with the showTab code + // and cause a janky motion final Handler handler = new Handler(); handler.postDelayed(new Runnable() { @Override