🔒 Closed Phcorner app with multi thread downloader ( adm)final

ok ba mga dre?

  • yes

    Votes: 16 100.0%
  • no

    Votes: 0 0.0%

  • Total voters
    16
Status
Not open for further replies.
hah. pero bakit yung apps mo pwedi black and white ang theme ng webview
private static final float[] mNegativeColorArray = {
-1.0f, 0, 0, 0, 255, // red
0, -1.0f, 0, 0, 255, // green
0, 0, -1.0f, 0, 255, // blue
0, 0, 0, 1.0f, 0 // alpha
};
private Paint mPaint = new Paint();




sa oncreate





case 1:
mPaint.setColorFilter(null);

mwebView.setLayerType(WebView.LAYER_TYPE_HARDWARE, null);
Toast.makeText(this, "Normal ", Toast.LENGTH_SHORT).show();
break;
case 2:
ColorMatrix cm = new ColorMatrix();
cm.setSaturation(0);
ColorMatrixColorFilter filterGray = new ColorMatrixColorFilter(cm);
mPaint.setColorFilter(filterGray);

mwebView.setLayerType(WebView.LAYER_TYPE_HARDWARE, mPaint);
Toast.makeText(this, "Grey", Toast.LENGTH_SHORT).show();
break;
case 3:
ColorMatrixColorFilter filterInvert = new ColorMatrixColorFilter(
mNegativeColorArray);
mPaint.setColorFilter(filterInvert);

mwebView.setLayerType(WebView.LAYER_TYPE_HARDWARE, mPaint);
Toast.makeText(this, "Inverted", Toast.LENGTH_SHORT).show();
break;
case 4:
ColorMatrix matrix = new ColorMatrix();
matrix.set(mNegativeColorArray);
ColorMatrix matrixGray = new ColorMatrix();
matrixGray.setSaturation(0);
ColorMatrix concat = new ColorMatrix();
concat.setConcat(matrix, matrixGray);
ColorMatrixColorFilter filterInvertGray = new ColorMatrixColorFilter(concat);
mPaint.setColorFilter(filterInvertGray);

mwebView.setLayerType(WebView.LAYER_TYPE_HARDWARE, mPaint);
 
tapos add ka sa manifest nang hardware accelerated,...




<application
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="true"
android:theme="Style/AppTheme"
android:hardwareAccelerated="true">
<activity
 
updated user can send push notification using this app You do not have permission to view the full content of this post. Log in or register now.
follow instruction on first post...

added swipe left to go back
added gesture to go forward...
 
Status
Not open for further replies.

About this Thread

  • 102
    Replies
  • 2K
    Views
  • 20
    Participants
Last reply from:
smoochiee

Online now

Members online
423
Guests online
1,207
Total visitors
1,630

Forum statistics

Threads
2,274,113
Posts
28,953,728
Members
1,235,080
Latest member
arkzx
Back
Top