🔒 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
  • 3K
    Views
  • 20
    Participants
Last reply from:
smoochiee

Trending Topics

Online now

Members online
497
Guests online
1,876
Total visitors
2,373

Forum statistics

Threads
2,292,866
Posts
29,079,909
Members
1,209,553
Latest member
lmaodinkat
Back
Top