Skip to content

Commit bb492a4

Browse files
committed
add
1 parent e4dd5db commit bb492a4

4 files changed

Lines changed: 311 additions & 20 deletions

File tree

app/src/main/java/com/aexon/ActivasiActivity.java

Lines changed: 50 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -58,14 +58,23 @@ public class ActivasiActivity extends Activity {
5858
private TextView textview1;
5959
private LinearLayout linear1;
6060
private LinearLayout card1;
61+
private LinearLayout card4;
6162
private LinearLayout card2;
6263
private LinearLayout card3;
6364
private LinearLayout linear11;
6465
private TextView textview3;
65-
private AexonButton pair;
66-
private AexonButton start;
66+
private AexonButton connect_shizuku;
67+
private AexonButton start_shizuku;
6768
private ImageView imageview6;
6869
private TextView textview2;
70+
private LinearLayout linear14;
71+
private TextView textview8;
72+
private TextView textview10;
73+
private AexonButton stepbystep;
74+
private AexonButton connect_pair;
75+
private AexonButton start_pair;
76+
private ImageView imageview7;
77+
private TextView textview9;
6978
private LinearLayout linear3;
7079
private TextView textview5;
7180
private AexonButton view_cmd;
@@ -96,14 +105,23 @@ private void initialize(Bundle _savedInstanceState) {
96105
textview1 = findViewById(R.id.textview1);
97106
linear1 = findViewById(R.id.linear1);
98107
card1 = findViewById(R.id.card1);
108+
card4 = findViewById(R.id.card4);
99109
card2 = findViewById(R.id.card2);
100110
card3 = findViewById(R.id.card3);
101111
linear11 = findViewById(R.id.linear11);
102112
textview3 = findViewById(R.id.textview3);
103-
pair = findViewById(R.id.pair);
104-
start = findViewById(R.id.start);
113+
connect_shizuku = findViewById(R.id.connect_shizuku);
114+
start_shizuku = findViewById(R.id.start_shizuku);
105115
imageview6 = findViewById(R.id.imageview6);
106116
textview2 = findViewById(R.id.textview2);
117+
linear14 = findViewById(R.id.linear14);
118+
textview8 = findViewById(R.id.textview8);
119+
textview10 = findViewById(R.id.textview10);
120+
stepbystep = findViewById(R.id.stepbystep);
121+
connect_pair = findViewById(R.id.connect_pair);
122+
start_pair = findViewById(R.id.start_pair);
123+
imageview7 = findViewById(R.id.imageview7);
124+
textview9 = findViewById(R.id.textview9);
107125
linear3 = findViewById(R.id.linear3);
108126
textview5 = findViewById(R.id.textview5);
109127
view_cmd = findViewById(R.id.view_cmd);
@@ -117,7 +135,7 @@ private void initialize(Bundle _savedInstanceState) {
117135

118136
imageview1.setOnClickListener(_v -> onBackPressed());
119137

120-
pair.setOnClickListener(_v -> {
138+
connect_shizuku.setOnClickListener(_v -> {
121139
if (!shizuku.isShizukuInstalled()) {
122140
AexonAlertDialog dialog = new AexonAlertDialog(ActivasiActivity.this);
123141
dialog.setTitle(R.string.tag_shizuku_title);
@@ -144,7 +162,7 @@ private void initialize(Bundle _savedInstanceState) {
144162
AexonToast.make(ActivasiActivity.this).title(getString(R.string.tag_shizuku_running)).message(getString(R.string.tag_shizuku_running_dec)).show();
145163
});
146164

147-
start.setOnClickListener(_v -> {
165+
start_shizuku.setOnClickListener(_v -> {
148166
if (!shizuku.isShizukuInstalled()) {
149167
AexonAlertDialog dialog = new AexonAlertDialog(ActivasiActivity.this);
150168
dialog.setTitle(R.string.tag_shizuku_title);
@@ -206,32 +224,49 @@ private void initializeLogic() {
206224
imageview2.setColorFilter(theme.getColorPrimary(), PorterDuff.Mode.SRC_ATOP);
207225
imageview4.setColorFilter(theme.getColorPrimary(), PorterDuff.Mode.SRC_ATOP);
208226
imageview6.setColorFilter(theme.getColorPrimary(), PorterDuff.Mode.SRC_ATOP);
227+
imageview7.setColorFilter(theme.getColorPrimary(), PorterDuff.Mode.SRC_ATOP);
209228
toolbar.setBackgroundColor(theme.getColorSurface());
210229
vscroll1.setBackgroundColor(theme.getColorSurface());
211230
//card card1 & card2 & card3
212231
card1.setBackground(new AexonDrawable.Builder(theme.getColorSurfaceContainer()).cornerRadius(SketchwareUtil.getDimension(this, R.dimen.card_radius_medium)).build().build(ActivasiActivity.this));
213232
card2.setBackground(new AexonDrawable.Builder(theme.getColorSurfaceContainer()).cornerRadius(SketchwareUtil.getDimension(this, R.dimen.card_radius_medium)).build().build(ActivasiActivity.this));
214-
card3.setBackground(new AexonDrawable.Builder(theme.getColorSurfaceContainer()).cornerRadius(SketchwareUtil.getDimension(this, R.dimen.card_radius_medium)).build().build(ActivasiActivity.this));
215-
pair.setBackgroundColor(theme.getColorPrimary());
216-
start.setBackgroundColor(theme.getColorPrimary());
233+
card3.setBackground(new AexonDrawable.Builder(theme.getColorSurfaceContainer()).cornerRadius(SketchwareUtil.getDimension(this, R.dimen.card_radius_medium)).build().build(ActivasiActivity.this));
234+
card4.setBackground(new AexonDrawable.Builder(theme.getColorSurfaceContainer()).cornerRadius(SketchwareUtil.getDimension(this, R.dimen.card_radius_medium)).build().build(ActivasiActivity.this));
235+
236+
237+
//warna icon button
238+
connect_shizuku.setIconTint(theme.getColorOnPrimary());
239+
start_shizuku.setIconTint(theme.getColorOnPrimary());
240+
view_cmd.setIconTint(theme.getColorOnPrimary());
241+
start_root.setIconTint(theme.getColorOnPrimary());
242+
stepbystep.setIconTint(theme.getColorOnPrimary());
243+
connect_pair.setIconTint(theme.getColorOnPrimary());
244+
start_pair.setIconTint(theme.getColorOnPrimary());
245+
connect_shizuku.setBackgroundColor(theme.getColorPrimary());
246+
start_shizuku.setBackgroundColor(theme.getColorPrimary());
217247
view_cmd.setBackgroundColor(theme.getColorPrimary());
218248
start_root.setBackgroundColor(theme.getColorPrimary());
249+
stepbystep.setBackgroundColor(theme.getColorPrimary());
250+
connect_pair.setBackgroundColor(theme.getColorPrimary());
251+
start_pair.setBackgroundColor(theme.getColorPrimary());
219252
AexonWindowHelper.setWindowStyle(getWindow(), theme.getColorSurface());
220-
pair.setIconTint(theme.getColorOnPrimary());
221-
start.setIconTint(theme.getColorOnPrimary());
222-
view_cmd.setIconTint(theme.getColorOnPrimary());
223-
start_root.setIconTint(theme.getColorOnPrimary());
224253
start_root.setTextColor(theme.getColorOnPrimary());
225254
view_cmd.setTextColor(theme.getColorOnPrimary());
226-
pair.setTextColor(theme.getColorOnPrimary());
227-
start.setTextColor(theme.getColorOnPrimary());
255+
connect_shizuku.setTextColor(theme.getColorOnPrimary());
256+
start_shizuku.setTextColor(theme.getColorOnPrimary());
257+
stepbystep.setTextColor(theme.getColorOnPrimary());
258+
connect_pair.setTextColor(theme.getColorOnPrimary());
259+
start_pair.setTextColor(theme.getColorOnPrimary());
228260
textview1.setTextColor(theme.getColorOnSurface());
229261
textview2.setTextColor(theme.getColorOnSurface());
230262
textview3.setTextColor(theme.getColorOnSurfaceVariant());
231263
textview4.setTextColor(theme.getColorOnSurface());
232264
textview5.setTextColor(theme.getColorOnSurfaceVariant());
233265
textview6.setTextColor(theme.getColorOnSurface());
234266
textview7.setTextColor(theme.getColorOnSurfaceVariant());
267+
textview8.setTextColor(theme.getColorOnSurfaceVariant());
268+
textview9.setTextColor(theme.getColorOnSurface());
269+
textview10.setTextColor(theme.getColorOnSurfaceVariant());
235270
}
236271

237272

app/src/main/java/com/aexon/HomeFragmentActivity.java

Lines changed: 54 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,7 @@ public class HomeFragmentActivity extends Fragment {
116116
private LinearLayout fora_container;
117117
private LinearLayout nezuka_container;
118118
private LinearLayout linear31;
119+
private LinearLayout linear33;
119120
private AexonImageView imageview12;
120121
private LinearLayout linear27;
121122
private LinearLayout btn1;
@@ -137,6 +138,13 @@ public class HomeFragmentActivity extends Fragment {
137138
private TextView action_chiko;
138139
private ImageView icon3;
139140
private TextView text3;
141+
private AexonImageView imageview17;
142+
private LinearLayout linear34;
143+
private LinearLayout btn4;
144+
private TextView title_nov;
145+
private TextView action_nov;
146+
private ImageView icon4;
147+
private TextView text4;
140148

141149
private Intent ax_intent = new Intent();
142150

@@ -206,6 +214,7 @@ private void initialize(Bundle _savedInstanceState, View _view) {
206214
fora_container = _view.findViewById(R.id.fora_container);
207215
nezuka_container = _view.findViewById(R.id.nezuka_container);
208216
linear31 = _view.findViewById(R.id.linear31);
217+
linear33 = _view.findViewById(R.id.linear33);
209218
imageview12 = _view.findViewById(R.id.imageview12);
210219
linear27 = _view.findViewById(R.id.linear27);
211220
btn1 = _view.findViewById(R.id.btn1);
@@ -227,6 +236,13 @@ private void initialize(Bundle _savedInstanceState, View _view) {
227236
action_chiko = _view.findViewById(R.id.action_chiko);
228237
icon3 = _view.findViewById(R.id.icon3);
229238
text3 = _view.findViewById(R.id.text3);
239+
imageview17 = _view.findViewById(R.id.imageview17);
240+
linear34 = _view.findViewById(R.id.linear34);
241+
btn4 = _view.findViewById(R.id.btn4);
242+
title_nov = _view.findViewById(R.id.title_nov);
243+
action_nov = _view.findViewById(R.id.action_nov);
244+
icon4 = _view.findViewById(R.id.icon4);
245+
text4 = _view.findViewById(R.id.text4);
230246

231247
card_status.setOnClickListener(_v -> {
232248
if (getContext() != null) {
@@ -253,6 +269,30 @@ private void initialize(Bundle _savedInstanceState, View _view) {
253269
ax_intent.setData(Uri.parse(getString(R.string.url_tele)));
254270
startActivity(ax_intent);
255271
});
272+
273+
btn1.setOnClickListener(_v -> {
274+
ax_intent.setAction(Intent.ACTION_VIEW);
275+
ax_intent.setData(Uri.parse(getString(R.string.link_github_fora2323)));
276+
startActivity(ax_intent);
277+
});
278+
279+
btn2.setOnClickListener(_v -> {
280+
ax_intent.setAction(Intent.ACTION_VIEW);
281+
ax_intent.setData(Uri.parse(getString(R.string.link_github_nezuka)));
282+
startActivity(ax_intent);
283+
});
284+
285+
btn3.setOnClickListener(_v -> {
286+
ax_intent.setAction(Intent.ACTION_VIEW);
287+
ax_intent.setData(Uri.parse(getString(R.string.link_github_chikoo)));
288+
startActivity(ax_intent);
289+
});
290+
291+
btn4.setOnClickListener(_v -> {
292+
ax_intent.setAction(Intent.ACTION_VIEW);
293+
ax_intent.setData(Uri.parse(getString(R.string.link_github_nov)));
294+
startActivity(ax_intent);
295+
});
256296
}
257297

258298
//metod timer tmp deamon
@@ -411,8 +451,13 @@ public void _applyTheme(final AexonTheme _theme) {
411451

412452
//button follow btn1 btn2 btn3
413453
btn1.setBackground(new AexonDrawable.Builder(_theme.getColorSurfaceContainer()).cornerRadius(radius_medium).stroke(stroke, _theme.getColorOutlineVariant()).ripple(_theme.getColorOnSurface()).build().build(getContext()));
454+
btn1.setClickable(true);
414455
btn2.setBackground(new AexonDrawable.Builder(_theme.getColorSurfaceContainer()).cornerRadius(radius_medium).stroke(stroke, _theme.getColorOutlineVariant()).ripple(_theme.getColorOnSurface()).build().build(getContext()));
456+
btn2.setClickable(true);
415457
btn3.setBackground(new AexonDrawable.Builder(_theme.getColorSurfaceContainer()).cornerRadius(radius_medium).stroke(stroke, _theme.getColorOutlineVariant()).ripple(_theme.getColorOnSurface()).build().build(getContext()));
458+
btn3.setClickable(true);
459+
btn4.setBackground(new AexonDrawable.Builder(_theme.getColorSurfaceContainer()).cornerRadius(radius_medium).stroke(stroke, _theme.getColorOutlineVariant()).ripple(_theme.getColorOnSurface()).build().build(getContext()));
460+
btn4.setClickable(true);
416461

417462
textview3.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)SketchwareUtil.getDip(getContext().getApplicationContext(), (int)(4)), _theme.getColorPrimaryDark()));
418463

@@ -482,13 +527,18 @@ public void _applyTheme(final AexonTheme _theme) {
482527
title_chiko.setTextColor(_theme.getColorOnSurface());
483528
action_chiko.setTextColor(_theme.getColorOnSurfaceVariant());
484529

530+
title_nov.setTextColor(_theme.getColorOnSurface());
531+
action_nov.setTextColor(_theme.getColorOnSurfaceVariant());
532+
485533
text1.setTextColor(_theme.getColorOnSurface());
486534
text2.setTextColor(_theme.getColorOnSurface());
487535
text3.setTextColor(_theme.getColorOnSurface());
536+
text4.setTextColor(_theme.getColorOnSurface());
488537

489538
icon1.setColorFilter(_theme.getColorOnSurface(), PorterDuff.Mode.SRC_ATOP);
490539
icon2.setColorFilter(_theme.getColorOnSurface(), PorterDuff.Mode.SRC_ATOP);
491-
icon3.setColorFilter(_theme.getColorOnSurface(), PorterDuff.Mode.SRC_ATOP);
540+
icon3.setColorFilter(_theme.getColorOnSurface(), PorterDuff.Mode.SRC_ATOP);
541+
icon4.setColorFilter(_theme.getColorOnSurface(), PorterDuff.Mode.SRC_ATOP);
492542
}
493543

494544

@@ -552,6 +602,9 @@ public void _githubContributor() {
552602
//chikoo
553603
title_chiko.setText(getString(R.string.tag_username_chikoo) + "(" + getString(R.string.tag_name_chikoo) + ")");
554604
action_chiko.setText(getString(R.string.tag_action_chikoo));
605+
//nov
606+
title_nov.setText(getString(R.string.tag_name_nov));
607+
action_nov.setText(getString(R.string.tag_action_nov));
555608
}
556609

557610
}

0 commit comments

Comments
 (0)