Skip to content

Commit

Permalink
fixed size controlling updated to v0.6.45
Browse files Browse the repository at this point in the history
  • Loading branch information
jjhesk committed Mar 3, 2016
1 parent 43f826a commit f49eb9e
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 10 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
```gradle
dependencies {
compile 'com.hkm.advancedtoolbar:advancedtoolbar:0.6.2'
compile 'com.hkm.advancedtoolbar:advancedtoolbar:0.6.45'
}
```
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.AppCompatButton;
import android.support.v7.widget.Toolbar;
import android.util.TypedValue;
import android.view.Display;
import android.view.LayoutInflater;
import android.view.View;
Expand Down Expand Up @@ -173,7 +174,7 @@ public static BeastBar withToolbar(AppCompatActivity res, Toolbar original, fina
bb.setup = beastbuilder;
display.getSize(bb.size);
bb.init();
bb.adjustmentTV();

return bb;
}

Expand All @@ -186,12 +187,6 @@ private BeastBar setToolBar(Toolbar tb) {
return this;
}

private void adjustmentTV() {
mtv.requestLayout();
if (setup.tb_textsize > 0) {
mtv.setTextSize(mContext.getResources().getDimensionPixelSize(setup.tb_textsize));
}
}

private void animationTitle() {
if (!isTitleShown) {
Expand Down Expand Up @@ -274,6 +269,12 @@ private void init() {
mtv.setSingleLine(false);
mtv.setMaxLines(setup.title_line_config);
}

if (setup.tb_textsize > 0) {
mtv.setTextSize(TypedValue.COMPLEX_UNIT_PX, mContext.getResources().getDimensionPixelSize(setup.tb_textsize));
}
mtv.requestLayout();

if (setup.ic_search != 0) {
mSearchButton.setImageResource(setup.ic_search);
isSearchButtonShown = true;
Expand Down
3 changes: 3 additions & 0 deletions app/app.iml
Original file line number Diff line number Diff line change
Expand Up @@ -71,10 +71,13 @@
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/exploded-aar/com.android.support/appcompat-v7/23.1.1/jars" />
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/exploded-aar/com.android.support/support-v4/23.1.1/jars" />
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/incremental" />
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/jniLibs" />
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/manifests" />
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/pre-dexed" />
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/res" />
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/rs" />
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/symbols" />
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/transforms" />
<excludeFolder url="file://$MODULE_DIR$/build/outputs" />
<excludeFolder url="file://$MODULE_DIR$/build/tmp" />
</content>
Expand Down
4 changes: 2 additions & 2 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
VERSION_NAME=0.6.44
VERSION_CODE=69
VERSION_NAME=0.6.45
VERSION_CODE=70

ANDROID_BUILD_MIN_SDK_VERSION=17
ANDROID_BUILD_TARGET_SDK_VERSION=22
Expand Down

0 comments on commit f49eb9e

Please sign in to comment.