Skip to content

Commit

Permalink
fix #9 #21 #19
Browse files Browse the repository at this point in the history
  • Loading branch information
HITGIF committed Sep 24, 2017
1 parent 806e641 commit 019b014
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 12 deletions.
11 changes: 1 addition & 10 deletions textfieldboxes/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,10 +1 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"

package="studio.carbonylgroup.textfieldboxes">

<application android:allowBackup="true" android:label="@string/app_name"
android:supportsRtl="true">

</application>

</manifest>
<manifest package="studio.carbonylgroup.textfieldboxes"/>
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
import android.graphics.Rect;
import android.graphics.RectF;
import android.util.AttributeSet;
import android.view.View;
import android.widget.RelativeLayout;

/**
Expand Down Expand Up @@ -42,6 +43,7 @@ public ClipToBoundsView(Context context, AttributeSet attrs, int defStyleAttr) {
}

protected void init() {
this.setLayerType(View.LAYER_TYPE_SOFTWARE, null);
cornerRadius = context.getResources().getDimension(R.dimen.text_field_boxes_corner_radius);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -402,6 +402,17 @@ protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) {
this.panel.getLayoutParams().height = ViewGroup.LayoutParams.WRAP_CONTENT;
this.rightShell.getLayoutParams().height = ViewGroup.LayoutParams.WRAP_CONTENT;
this.upperPanel.getLayoutParams().height = ViewGroup.LayoutParams.WRAP_CONTENT;

((RelativeLayout.LayoutParams) this.bottomPart.getLayoutParams())
.addRule(RelativeLayout.BELOW, R.id.text_field_boxes_panel);
((RelativeLayout.LayoutParams) this.bottomLine.getLayoutParams())
.addRule(RelativeLayout.BELOW, R.id.text_field_boxes_upper_panel);
((RelativeLayout.LayoutParams) this.bottomPart.getLayoutParams())
.addRule(RelativeLayout.ALIGN_PARENT_BOTTOM, 0);
((RelativeLayout.LayoutParams) this.bottomLine.getLayoutParams())
.addRule(RelativeLayout.ALIGN_PARENT_BOTTOM, 0);
((RelativeLayout.LayoutParams) this.panel.getLayoutParams())
.addRule(RelativeLayout.ABOVE, 0);
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,10 @@
android:clickable="true"
android:clipChildren="true"
android:clipToPadding="true"
android:foreground="?attr/selectableItemBackground">
android:foreground="?attr/selectableItemBackground"
android:layout_alignParentTop="true"
android:layout_alignParentLeft="true"
android:layout_alignParentStart="true">

<FrameLayout
android:id="@+id/bg_bottom_line"
Expand Down Expand Up @@ -66,7 +69,7 @@
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="bottom"
android:layout_marginBottom="8dp"
android:paddingBottom="8dp"
android:layout_marginTop="32dp">

<RelativeLayout
Expand Down

0 comments on commit 019b014

Please sign in to comment.