Skip to content

Commit 7f8bb4d

Browse files
committed
fixed missing bubble
1 parent d3688c5 commit 7f8bb4d

File tree

5 files changed

+7
-5
lines changed

5 files changed

+7
-5
lines changed

.idea/caches/build_file_checksums.ser

0 Bytes
Binary file not shown.

documentscanner/src/main/java/com/haotran/documentscanner/activity/ScanActivity.java

+3
Original file line numberDiff line numberDiff line change
@@ -332,10 +332,13 @@ public void onNope(long name) {
332332
public void onYep(long name) {
333333
saveForTheNextCapture(name);
334334
// update view... (bubble view)
335+
// Toast.makeText(this, "onYep...", Toast.LENGTH_SHORT).show();
335336
int count = getNumberOfPhotos();
336337
if (count != 0) {
337338
((TextView)findViewById(R.id.bubble)).setText(count + "");
338339

340+
// ((TextView)findViewById(R.id.bubble)).setBackground(getResources().getDrawable(R.drawable.circle_buble));
341+
339342
// set View = Visible
340343
findViewById(R.id.bubble).setVisibility(View.VISIBLE);
341344
findViewById(R.id.bunch).setVisibility(View.VISIBLE);

documentscanner/src/main/java/com/haotran/documentscanner/view/PolygonView.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,7 @@ private ImageView getImageView(int x, int y) {
288288
ImageView imageView = new ImageView(context);
289289
LayoutParams layoutParams = new LayoutParams(ViewGroup.LayoutParams.WRAP_CONTENT, ViewGroup.LayoutParams.WRAP_CONTENT);
290290
imageView.setLayoutParams(layoutParams);
291-
imageView.setImageResource(R.drawable.circle);
291+
imageView.setImageResource(R.drawable.circle_buble);
292292
imageView.setX(x);
293293
imageView.setY(y);
294294
imageView.setOnTouchListener(new TouchListenerImpl());
@@ -299,7 +299,7 @@ private ImageView getImageViewTransparent(int x, int y) {
299299
ImageView imageView = new ImageView(context);
300300
LayoutParams layoutParams = new LayoutParams(ViewGroup.LayoutParams.WRAP_CONTENT, ViewGroup.LayoutParams.WRAP_CONTENT);
301301
imageView.setLayoutParams(layoutParams);
302-
imageView.setImageResource(R.drawable.circle);
302+
imageView.setImageResource(R.drawable.circle_buble);
303303
imageView.setX(x);
304304
imageView.setY(y);
305305
// imageView.setOnTouchListener(new MidPointTouchListenerImpl());

documentscanner/src/main/res/drawable/circle.xml documentscanner/src/main/res/drawable/circle_buble.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<shape xmlns:android="http://schemas.android.com/apk/res/android"
33
android:shape="oval">
44

5-
<solid android:color="@color/colorPrimaryDark" />
5+
<solid android:color="#5AF629" />
66

77
<size
88
android:width="38dp"

documentscanner/src/main/res/layout/activity_scan.xml

+1-2
Original file line numberDiff line numberDiff line change
@@ -191,10 +191,9 @@
191191
android:translationX="-8dp"
192192
android:translationY="2dp"
193193
android:visibility="gone"
194-
android:background="@drawable/circle"
194+
android:background="@drawable/circle_buble"
195195
android:scaleType="fitXY"
196196
android:text="1"
197-
198197
android:gravity="center"
199198
app:layout_constraintBottom_toTopOf="@+id/bunch"
200199
app:layout_constraintStart_toEndOf="@+id/bunch"

0 commit comments

Comments
 (0)