• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Apps I am having some problems with a custom TextView

Hi everyone,

I am creating a custom TextView on my project, in order to apply different fill and stroke characteristics on each TextView. I am overriding the onDraw method on each View and setting the layout xml file accordingly. Here is the xml file (customTxtView):

<gr.***.***.Guess.GuessQuestion.customTxtView
android:id="@+id/txtViewGuessQuestion"
android:layout_width="867dp"
android:layout_height="52dp"
android:layout_marginTop="8dp"
android:layout_marginBottom="8dp"
android:autoText="false"
android:freezesText="false"
android:gravity="center_horizontal|center_vertical"
android:includeFontPadding="false"
android:isScrollContainer="false"
android:keepScreenOn="false"
android:longClickable="false"
android:text="TEST"
android:textSize="40sp"
android:textStyle="bold"
android:shadowColor="#000"
android:shadowDx="2"
android:shadowDy="2"
android:shadowRadius="1.5"
app:barrierAllowsGoneWidgets="false"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="0.505"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintVertical_bias="0.19" />

and the customView as defined programmatically:

//custom textview class
class customTxtView extends TextView {

public customTxtView(Context context, AttributeSet attrs) {
super(context, attrs);

}

//override the onDraw canvas methdo
protected void onDraw(Canvas pCanvas) {

//set the stroke color for the text
int strokeColor = Color.WHITE;
setTextColor(strokeColor);
getPaint().setStrokeWidth(5);
getPaint().setStyle(Paint.Style.STROKE);
super.onDraw(pCanvas);
//set the fill color for the text
int fillColor = Color.BLUE;
setTextColor(fillColor);
getPaint().setStrokeWidth(0);
getPaint().setStyle(Paint.Style.FILL);
super.onDraw(pCanvas);
}

}

While i am inflating the layout i am getting the error:

android.view.InflateException: Binary XML file line #9: Binary XML file line #9: Error inflating class gr.***.***.Guess.GuessQuestion.customTxtView

*Added_Info: Caused by: java.lang.ClassNotFoundException: Didn't find class "gr.***.aia_project.Guess.GuessQuestion.customTxtView" on path:


Can you help me to identify the cause of the issue?

Thank you in advance,
Lampros

[APP][Free] PhotoBoard - Combine & crop your photos in one photo

Choose your board as background for your photo, then add other photos and crop them to create your own photo. You can able to add texts or emojis to your photo.
You can also choose your photo as board then add chat-box to your photo
Save and share your photo with your friends.

Download link: https://play.google.com/store/apps/details?id=khairalla.mutaz.PhotoBoard

22.png
33.png
44.png
99.png
55.png
77.png

Developer options--in Chrome

Am I the only one who didn't know that, like Android, Chrome has 'developer options' you can enable? :o

I found out quite by accident today. :)

If you're unaware of how to enable this, from within Chrome:

Menu [3 dots] | Settings | About Chrome | Application Version [your version number will be under this; start tapping on it; it'll tell you how many more taps are needed]

Done! Back up so you're on Chrome's main "Settings" page, and scroll down; right above "About Chrome" you should see a new entry, "Developer Options."

FWIW, I'm using v75.0.3770.101 on Oreo v8.0.0.

Help Settings are ignored

Some of my settings are being ignored. For example, Simplified view for web pages is unchecked, yet when I'm on a site, like IMDb, that supports simplified viewing, the prompt comes up asking if I want to view the simplified version. Why, NO, actually, I don't--that's why I disabled it in settings! Ugh.

Under Downloads, there's Ask where to save files, which I have set to 'on.' But I'm NEVER prompted for a destination directory. Its downloads arbitrarily go into /storage/emulated/0/Download. Ugh.

Chrome v75.0.3770.101
Android v8.0.0
Moto Z² Force Edition

Ideas? :)

Amazon Alexa on lock screen

Hello I have a galaxy s10+ and I just bought zungle smart glasses so I putted a button to open amazon alexa and speak from my glasses.I have a little problem, to use(speak) to alexa my phone must be unlocked.Is there a way that can I use amazon alexa on my lockscreen?without to unlock my phone just press the button on glasses give the command and done?

Thanks

ARCore Required option on Google Play once the app is already published on the store?

Can we select ARCore Required option on Google Play once the app is already published on the store?

Hi guys,
My app is already published on Google Play and needs AR Core to run.
We didn't add "AR Required" to the manifest.
> https://developers.google.com/ar/develop/c/enable-arcore
Is there any way to enable this filter on Google Play directly?
It's possible to exclude non-friendly ARCore smartphones by hand but it will take forever.

Thank you all for your help!

OxygenOS update 9.0.15 for 6T & 9.0.7 for 6

ONEPLUS JUST KEEPS PUSHING OUT THE UPDATES AND FEATURES :D

OnePlus has begun the OTA, (Over The Air), rollout of their new stable OxygenOS firmware, 9.0.15, for OnePlus 6T and McLaren and 9.0.7 for OnePlus 6 users.

As always, there will be a limited roll out initially, followed by the global roll out in a few days.

Changelog:

System
  • Updated Android security patch to 2019.6 (JUNE)
  • Improved screen rotation
  • Added Screen recorder feature (Quick Settings - Screen Recorder)

Communication
  • Support VoLTE/VoWiFi for Telia Denmark
Camera version is still 3.0.16

This is the 10th official, stable, update for the 6T in 239 days

(N.B. OxygenOS 9.0.15 is not available for the T-Mobile carrier minority variant)

Help Android Deletes All My Playlists

Hello!

I use a third party mp3 player to listen to music on my One Plus 6. I have a big problem however. Whenever I create a playlist it gets delteted after some days, and its really frustrating.
I've seen a lot of people with a varity of android devices, and mp3-player apps, who all came across this problem. From what I understand, the problem is the way Android stores the playlist itself. Is it possible to change the file-type of the playlist maybe?

Would really appreciate some help, thanks.

Default Messaging App - Crashes when inserting Gif

Is there any way to update the default "Messaging" app that came on my ZTE Zmax Pro? I use the Google Keyboard which has a feature to insert a gif but every time I try to insert one, the messaging app crashes.
I have tried using other messaging apps, but then I find that I miss out on MMS messages that seemingly never make it to my phone. Very infuriating!!
Thanks in advance

Filter

Back
Top Bottom